forked from ember-tooling/ember-language-server
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 🧪 Support folder namespaces for intl (#389)
Fixes #344 Ember Intl exposes a configuration file which allows you to configure the localization setup. One such setting is `wrapTranslationsWithNamespace` which determines whether translation keys should have the folder names within the key names. #### `wrapTranslationsWithNamespace: false` (default) ```yml # translations/sub-folder/en-us.yml subFolder: foo: bar ``` ```js this.intl.t('subFolder.foo'); ``` #### `wrapTranslationsWithNamespace: true` ```yml # translations/sub-folder/en-us.yml subFolder: foo: bar ``` ```js this.intl.t('sub-folder.subFolder.foo'); ``` `wrapTranslationsWithNamespace: true` is not currently supported by this extension. This PR adds the ability, when `wrapTranslationsWithNamespace: true` is set in `app/config/ember-intl.js`, to support keys which have folders in their key names. Co-authored-by: Pat O'Callaghan <pat@intercom.io>
- Loading branch information
1 parent
83651b4
commit 9099c60
Showing
2 changed files
with
548 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.