Created
August 4, 2017 05:59
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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