Refactor i18n client code
This commit is contained in:
parent
71c6cf20d7
commit
fa4af5e5fe
1 changed files with 4 additions and 3 deletions
|
|
@ -70,16 +70,17 @@ i18n.use(backend)
|
|||
console.error(err);
|
||||
return;
|
||||
}
|
||||
i18nReady.set(true);
|
||||
console.log(`Language initialized: ${i18n.language}`);
|
||||
|
||||
// document.title = t('AppName');
|
||||
// Accounts translation
|
||||
// https://github.com/softwarerero/meteor-accounts-t9n
|
||||
// console.log("Language: " + i18n.language);
|
||||
T9n.setLanguage(i18n.language);
|
||||
// console.log(T9n.get('error.accounts.User not found'));
|
||||
|
||||
moment.locale(i18n.language);
|
||||
|
||||
i18nReady.set(true);
|
||||
|
||||
// cookies eu consent
|
||||
const cookiesOpt = {
|
||||
cookieTitle: t('Uso de Cookies'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue