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 for defaultLocale #28
Comments
Hi Miha,
...and not exist in DE, the default output is in English version. But I understand that if you have this:
You would like that default translated output to be "Hello world" and not "hello_word". Ok, I'm going to work for add "defaultLocale" configuration's parameter. Best regards. |
But what if I want it the other way around? Scenario would be: Given app has 100% of German translations and 80% of English translations Meaning option to change defaultLocale. I can provide example to explain better if necessary. |
Also what you wrote is correct yes. |
Hi Miha, To be patient :) |
Hey no worries. Plese write if you need help, I'm happy to contribute. |
Hi, |
Hi, |
Is there a way to set
defaultLocale
which would basically default to a certain language if translation is not found?For eg. we have all translations for
en
but missing some forde
. In this case we would setdefaultLocale
toen
and make sure that user with localede
does not see empty text but ratheren
translations.Thank you for the response.
p.s.: As seen in https://www.npmjs.com/package/i18n
The text was updated successfully, but these errors were encountered: