forked from mashpie/i18n-node
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Support language fallbacks #104
Comments
Actually last try doesn't work at all. Now we are using soft links (en-*.json -> en.json). |
I have a use case for a fallback from de to en. And yes, in both cases I want to support de and en not being specific about a certain area. |
UPDATE: Soft links are also not working. |
As I don't really have much time for this project, I'd say PR welcome :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looking for a way to fallback
en-*
toen
.We have
en
language translated, but we don't have language files ofen-US
,en-CA
etc.[DOESN'T WORK] Right now we can only define all locales like this:
Then have the base function to slice all locales
base: locale => locale.slice(0, 2)
.However this isn't ideal, it would be better to support fallbacks officially.
The text was updated successfully, but these errors were encountered: