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
Feature request: Multiple base locales #1667
Comments
As an alternative solution for the time being, we're handling this merging on the backend for now, allowing us to parse the data as required and letting the UI only make a simple api request, but having this ability in the ember-intl lib would make that redundant and would make ember-intl so much more powerful as this is a common issue Ive run into on multiple Ember projects! |
This sounds like a backend or build-time concern to me. You'd just add the fallback strings to your translation data as you please (we do something similar). Unless I've missed something, I'd say that this doesn't really fit into ember-intl. |
Having built more than one of these implementations I can say the requirement is pretty similar and simple - having this ability on the UI would eliminate the need for the backend dependency and allow for tapping into some of the nice ember-intl functionality which is only possible if the translations live on the UI, so still think this is a valid feature request! |
I would upvote this feature request myself. Our app uses an |
Hi there! This is a feature request for having multiple base locales.
In short, we have multiple
en
andfr
based locales, with their region specific overrides. Egfr
andfr-fr
,en
anden-gb
For the
fr-
locales we want to usefr
as thefallbackLocale
and foren-
we want to useen
as thefallbackLocale
.Addtionally we want to ensure that our developers can still only add the initial
en
translations during development, but that there's a way for hydrating the other base locales with these new keys. In other words, ensure thatfr
contains allen
keys even if just the English ones for now.So to summarise:
fallbackLocale
at build timeen
locales with missingen
keysThanks!
Discord chat here: https://discord.com/channels/480462759797063690/487648547685269515/973167561376141352
The text was updated successfully, but these errors were encountered: