linagora/hublin

Change UI language

Closed this issue · 5 comments

Hey,
I'm using the master branch version.
Followed the installation instructions, but couldn't find any way to change the UI language.
There's a part in the documentation that declares you need to change it in the "configuration" collection (on the DB), but there is no such collection.

Any suggestions?

Hi @LiorHaim , the UI language is automatically changed to match your browser locale. Just change your browser's locale then hubl.in will show the corresponding language (if supported).

@heroandtn3 I got this same question,how am i supposed to change language,i set the i18n default config like this:
i18n.configure(
{
defaultLocale: 'zh',
locales: ['de', 'en', 'fr', 'vi', 'zh'],
directory: __dirname + '/locales',
updateFiles: false,
indent: ' ',
extension: '.json',
cookie: 'locale'
}
);

but it did not work,and my brower language is definately zh,what is wrong with this?Thank you!

@detectiveHLH it seems to be a bug of i18n system in hubl.in, we will check to see what's wrong. Btw, can you try with https://hubl.in/ to see if the language changed?

@heroandtn3
I try with https,but i can not open either.It looks like the only way for me is to modify the source code to change the language...Anyway,thank you

@detectiveHLH the bug is fixed, now hublin will change the language to match your browser language. I will close this issue.