-
Notifications
You must be signed in to change notification settings - Fork 11k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chinese Traditional(Taiwan) "繁体中文(台湾)" doesn't work. #4277
Comments
I think it might have something to do with the uppercase in the "zh-TW" since this happens with other languages that have "-" after its name |
Yes, the server got the @setLanguage = (language) ->
if !language
return
if loadedLanguages.indexOf(language) > -1
return
loadedLanguages.push language
if isRtl language
$('html').addClass "rtl"
else
$('html').removeClass "rtl"
language = language.split('-').shift() # startup.coffee#42
TAPi18n.setLanguage(language)
language = language.toLowerCase()
if language isnt 'en'
Meteor.call 'loadLocale', language, (err, localeFn) ->
Function(localeFn)()
moment.locale(language)
What would this split('-').shift() use for? Will something break if I remove this line? If remove it can fix this, I'll be happy to make the pull request. Thanks. |
Is there any update on this? |
Your Rocket.Chat version: (0.39.0)
After I check the language of "繁体中文(台湾)", it backs to Chinese Simplified(中文) instead of Chinese Traditional language(繁体).
I've checked the translation file, it's already there, but the interface failed to use it.
The text was updated successfully, but these errors were encountered: