Spaces:
Paused
Paused
rick
commited on
start the dream...
Browse files
scripts/gen_ui_lang_support.py
CHANGED
|
@@ -66,8 +66,8 @@ def generate_ui_lang_support(
|
|
| 66 |
|
| 67 |
global traductions_ui_dict
|
| 68 |
# check if `base_ui_lang` is in `SUPPORTED_LANGUAGES`, if not raise an error
|
| 69 |
-
if base_ui_lang not in SUPPORTED_LANGUAGES:
|
| 70 |
-
|
| 71 |
|
| 72 |
# check if `target_ui_lang` is a list, if is a list, check if `base_ui_lang` is in the list, if true remove it from the list
|
| 73 |
if list == type(target_ui_lang):
|
|
|
|
| 66 |
|
| 67 |
global traductions_ui_dict
|
| 68 |
# check if `base_ui_lang` is in `SUPPORTED_LANGUAGES`, if not raise an error
|
| 69 |
+
#if base_ui_lang not in SUPPORTED_LANGUAGES:
|
| 70 |
+
# raise ValueError(f"La langue de l'interface {base_ui_lang} n'est pas supportée. Les langues supportées sont : {SUPPORTED_LANGUAGES}")
|
| 71 |
|
| 72 |
# check if `target_ui_lang` is a list, if is a list, check if `base_ui_lang` is in the list, if true remove it from the list
|
| 73 |
if list == type(target_ui_lang):
|