Spaces:
Paused
Paused
rick
commited on
update ui lang support...
Browse files
scripts/ui_lang_updater.py
CHANGED
|
@@ -128,7 +128,7 @@ def generate_ui_lang_support(
|
|
| 128 |
for key, text_ui in traductions_ui_dict[base_ui_lang].items():
|
| 129 |
it_cnt += 1
|
| 130 |
print(f" \033[93m[{it_cnt}/{len(traductions_ui_dict[base_ui_lang].keys())}]\033[0m \033[92mTranslating UI text value of key \033[0m\033[96m'{key}'...\033[0m")
|
| 131 |
-
if (f"{key}" not in traductions_ui_dict[to_lang].keys() ) or (skip_translated):
|
| 132 |
operation_prompt = f"Translate(\'{base_ui_lang}\' to \'{to_lang}\')"
|
| 133 |
traduction_text_ui = remove_response_separator(
|
| 134 |
create_chat_completion(
|
|
|
|
| 128 |
for key, text_ui in traductions_ui_dict[base_ui_lang].items():
|
| 129 |
it_cnt += 1
|
| 130 |
print(f" \033[93m[{it_cnt}/{len(traductions_ui_dict[base_ui_lang].keys())}]\033[0m \033[92mTranslating UI text value of key \033[0m\033[96m'{key}'...\033[0m")
|
| 131 |
+
if (f"{key}" not in traductions_ui_dict[to_lang].keys() ) or (not skip_translated):
|
| 132 |
operation_prompt = f"Translate(\'{base_ui_lang}\' to \'{to_lang}\')"
|
| 133 |
traduction_text_ui = remove_response_separator(
|
| 134 |
create_chat_completion(
|