Ember-intl: Multiple files per locale

Created on 6 Nov 2018  路  7Comments  路  Source: ember-intl/ember-intl

Coming from ember-i18n, I have 2 files for each locale, one shared with translators to maintain, and another with some core translations maintained by developers only. With ember-i18n I was importing both into my t.js. Is there a way to accomplish this somehow?

question

All 7 comments

I have 2 files for each locale, one shared with translators to maintain, and another with some core translations maintained by developers only

You can accomplish this with folders:
translations/shared/en-us.yml
translations/develeopers/en-us.yml

These two files will be merged together at build time.

Is this folder and merging behavior documented somewhere? If not, I would be happy to add it. This is exactly what I was looking for!

I don't believe this is well documented. The most appropriate place to add this I feel is https://ember-intl.github.io/ember-intl/docs/guide/translating-text

@jasonmit it looks like docs were added about the multiple directories in https://github.com/ember-intl/ember-intl/blob/master/tests/dummy/app/pods/docs/guide/translating-text/template.md and we just need a new addon docs deploy.

Odds, thought I had it auto deploying on git tag - I'll have to investigate what happened there.

Thanks @jasonmit! Really appreciate all you do here 馃槂

Was this page helpful?
0 / 5 - 0 ratings