Replies: 1 comment 11 replies
-
Did you try something like this? const fetch = require('isomorphic-unfetch')
// ...
{
// ...rest of config
"loadLocaleFrom": (lang, ns) =>
fetch(`${API_URL}/myTranslationsFiles/${lang}/${ns}`).then((r) => r.json()),
} |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm dealing with a CMS that gives me all the translation dynamically via API, how to deal with this type of translation file if the file does not exist in the local directory?
My mind telling me to fetch the translation JSON as is, and find a way to save it in my local directory, but I don't have the right answer for this case.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions