Replies: 1 comment
-
@MoonSoD Yes,
Another option we implemented in Next-translate 1.0.8-canary.1 is the availability from the server to force a language change rewriting |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been experimenting with next-translate for some days now to dynamically load available locales from our ecommerce API, so clients can add/remove their own languages. The
loadLocaleFrom
property in the config is handy but the staticlocales
anddefaultLocale
properties defeat it's whole purpose IMO. I've managed to hack my way through with a custom app wrapper and loading namespaces which ofc resulted in locale routes not working. Didn't want them anyway, just used a cookie for language but I would really like to see dynamic loading of locales out of the box, like fetching them from an API just like the locales themselves. Very certain that many people would appreciate that. I have a feeling that this has more to do with nextjs than with the plugin itself looking at the config but didn't come that far with my research. Please let me know some of your opinions on this 😊.Beta Was this translation helpful? Give feedback.
All reactions