-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
in LocalizationAutoTranslate._on_translate_pressed(). the _from_code = _from_code.to_lower()
but in LoclizationData.translation_by_locale(key, locale). the translation.locale is not to_lower().
so if the local is zh_CN.
translation.locale = zh_CN
locale = zh_cn
translation.locale!=locale
maybe you need change it like this
func translation_by_locale(key, locale):
for translation in key.translations:
if translation.locale.to_lower() == locale:
return translation
return null
Reactions are currently unavailable