File tree Expand file tree Collapse file tree
remove-json-keys/src/remove_json_keys/lib
translate-messages/src/translate_messages/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ def get_msgs(cli: sn, lang_code: str = 'en') -> sn:
6767 mod_root_path / '_locales/en/messages.json' ))
6868
6969 if not lang_code .startswith ('en' ): # fetch non-English msgs from jsDelivr
70- # Check if terminal supports non-Latin scripts
7170 non_latin_locales = data .json .read (mod_root_path / 'assets/data/non_latin_locales.json' )
7271 if lang_code .split ('-' )[0 ] in non_latin_locales and not env .can_render_non_latin_scripts ():
7372 return sn (** msgs ) # en ones
Original file line number Diff line number Diff line change @@ -99,7 +99,6 @@ def get_msgs(cli: sn, lang_code: str = 'en') -> sn:
9999 mod_root_path / '_locales/en/messages.json' ))
100100
101101 if not lang_code .startswith ('en' ): # fetch non-English msgs from jsDelivr
102- # Check if terminal supports non-Latin scripts
103102 non_latin_locales = data .json .read (mod_root_path / 'assets/data/non_latin_locales.json' )
104103 if lang_code .split ('-' )[0 ] in non_latin_locales and not env .can_render_non_latin_scripts ():
105104 return sn (** msgs ) # en ones
You can’t perform that action at this time.
0 commit comments