Skip to content

Instantly share code, notes, and snippets.

@dixonsiu
Created August 4, 2017 05:59
Show Gist options
  • Save dixonsiu/0ffa3c2cf7c483f8bd43b43d89267c7c to your computer and use it in GitHub Desktop.
Save dixonsiu/0ffa3c2cf7c483f8bd43b43d89267c7c to your computer and use it in GitHub Desktop.
Look up special cookie instead of i18next to avoid conflicting settings in same domain
i18next
.use(i18nextXHRBackend)
.use(i18nextBrowserLanguageDetector)
.init({
detection: {
lookupCookie: "i18nextFujitsu"
},
fallbackLng: 'en',
debug: true,
backend: {
loadPath: '../appcell-resources/locales/{{lng}}/translation.json'
,crossDomain: true
}
}, function(err, t) {
initJqueryI18next();
initContent();
updateContent();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment