Skip to content
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

Cant get Multiloading to work and translation key depth problem #294

Open
Creatium opened this issue Feb 21, 2024 · 0 comments
Open

Cant get Multiloading to work and translation key depth problem #294

Creatium opened this issue Feb 21, 2024 · 0 comments

Comments

@Creatium
Copy link

Hey,

Trying to make everything work, but have some problems.

  1. I have allowMultiloading set to true and my loadPath to /locales/resources.json?lng={{lng}}&ns={{ns}}. I also have multiple namespaces ns set (array with names). So plugin does load all namespaces, but does so in multiple requests. Not sure what I am missing. Trying many different options, with no success. What works though is if I set ns to string, instead of array, like so: ns1+ns2.

  2. Not related to first issue, but I have problems using the loaded translations. Not sure if this is related to your plugin or not. Loaded translations look like this: { "en": { "ns1": { "key": "Value" } } }. And so if I try to show this Value like this t('ns1:key') it will simply not work. The only way this works is by typing t('en.ns1.key'). What am I missing here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant