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
Using namespaces #12
Comments
Translation is the default namespace thus this one always works. If I understand correctly just adding the next to the setup should be enough:
not sure if you need to include translation as well, haven't tried it myself. |
thx, @zewa666 , just checked that instance.setup({
resGetPath: 'locale/__lng__/__ns__.json',
lng: 'de-DE',
attributes: ['t', 'i18n'],
getAsync: true,
sendMissing: false,
fallbackLng: 'en',
debug: false,
ns: {
namespaces: ['translation','nav'],
defaultNs: 'translation'
}
}); If we define |
perfect, good to know and thanks for sharing the insights ... may I ask you to create a PR updating the README and put that information in? Also make sure you you've signed our CLA |
add information on how to use multiple namespaces fixes issue #12
I do have following setup:
I have default
translation.json
andnav.json
Default namespace works fine:
but
nav
namespace do not:Have checked the log, but
nav.json
is never loaded.The text was updated successfully, but these errors were encountered: