This repository was archived by the owner on Dec 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Support Localization #88
Copy link
Copy link
Open
Labels
Description
I have an application that requires localization. I'd like to be able to deliver a manifest that changes based on user locale. There's a minimal amount of content in the manifest itself that would require translation (name, short_name, description, maybe icons), but what would be nice is if that content could live in my existing translation workflow and I could populate the manifest at build time.
I think an approach could be something like:
- detect supported languages
- assume a supported addon like ember-intl or ember-i18n
- generate a manifest for each supported locale
- use the addon to lookup a translation, something like
const name = get(this, 'intl').t('ember-web-app.name'); - update the manifest values with translations
- use the addon to lookup a translation, something like
- user receives the manifest for their specific locale
What I'm not sure of, if this is something this addon should have as a feature or if there's another addon here that extends this one? I'm open to suggestions or ideas. I also have some cycles coming up that I could work on one or the other.
Reactions are currently unavailable