You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chinese translation have 2 codes - zh-CN and zh. This makes confusion. .detect method returns zh-CN for Chinese language.
But this code(zh-CN) is not present in list of .translations_available.
The .translations_available method have zh code for chinese translation.
I think .translations_available this should have zh-CN too.
OR .detect method should return zh so that below statement will return true. EasyTranslate.translations_available.include?(EasyTranslate.detect('简体中文')) => false.
Issue ->
EasyTranslate.translations_available.include?(EasyTranslate.detect('简体中文')) => false
Reason ->
EasyTranslate.translations_available
returns array with language codes. For Chinese it returns 'zh'EasyTranslate.detect('简体中文') => 'zh-CN'
But
EasyTranslate::LANGUAGES.include?('zh-CN') => true
Why like this? and what is solution?
The text was updated successfully, but these errors were encountered: