-
-
Notifications
You must be signed in to change notification settings - Fork 410
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
Don't include default_locale in list of fallbacks #338
Comments
@kiramclean a possible solution is to set the
Then create the empty locale file (config/locales/empty.yml):
|
I tried this and still found that I got an english translation instead of a missing translation exception. |
@ngan The problem is I don't actually want the |
Then set fallbacks to
Then either, specify all your
or just set Then the fallback logic will be automatic:
|
Just a tidbit:
|
Thanks everyone. I think @ngan's workaround is great. If someone wants to submit a PR to fix this, then I'd be open to that. |
Hi everyone,
Is it currently possible to not include the default locale in the list of fallbacks? I'm working on a Rails app and right now I have this in my app config:
But the the fallback for 'fr-CA' is actually:
I don't want
en-CA
oren
to be there, because I want i18n to raise aMissingTranslationData
exception so that I know where I have translations missing (actionview
wraps these in a.translation-missing
span which makes it easy to find the missing translations).Is this currently possible? Or would it require a custom implementation of the
Fallbacks
class?The text was updated successfully, but these errors were encountered: