You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, if your application relies heavily on this `concat` helper, then rewriting
@@ -100,9 +96,11 @@ export default {
100
96
This example will try to find translation files in `node_modules/my-addon/translations`.
101
97
Patterns supported by [`globby`](https://www.npmjs.com/package/globby) are also
102
98
possible here, e.g. this:
99
+
103
100
```js
104
-
externalPaths: ['@*/*']
101
+
externalPaths: ['@*/*'];
105
102
```
103
+
106
104
will look up translations in scoped addons like `node_modules/@company/scoped-addon/translations`.
107
105
108
106
### `translationFiles`
@@ -122,13 +120,24 @@ This example will try to find all `en.yaml` files in the different `translations
122
120
folders, but any patterns supported by [`globby`](https://www.npmjs.com/package/globby) are also
123
121
possible here.
124
122
123
+
### `wrapTranslationsWithNamespace`
124
+
125
+
If you are nesting your translations with `ember-intl`s [`wrapTranslationsWithNamespace`](https://ember-intl.github.io/ember-intl/docs/advanced/configuration#wraptranslationswithnamespace) you will need to set the corresponding property within your `ember-intl-analyzer` config file.
126
+
127
+
```js
128
+
exportdefault {
129
+
wrapTranslationsWithNamespace:true,
130
+
};
131
+
```
132
+
125
133
### `babelParserPlugins``extensions`
126
134
127
135
If your application uses doesn't parse correctly because it requires a specific babel plugin you can specifiy them in the config file under the key `babelParserPlugins` a list on plugins can be found [here](https://babeljs.io/docs/en/babel-parser#plugins).
128
136
129
137
For example if you would like typescript support you can specify the `typescript` plugin, although please note if the plugin introduces a new file extension you will also need to specifiy that in the `extensions` property. See the examples below.
130
138
131
139
Typescript example
140
+
132
141
```js
133
142
exportdefault {
134
143
babelParserPlugins: ['typescript'],
@@ -137,6 +146,7 @@ export default {
137
146
```
138
147
139
148
Jsx example
149
+
140
150
```js
141
151
exportdefault {
142
152
babelParserPlugins: ['jsx'],
@@ -145,6 +155,7 @@ export default {
145
155
```
146
156
147
157
Gts example
158
+
148
159
```js
149
160
exportdefault {
150
161
babelParserPlugins: ['typescript'],
@@ -153,6 +164,7 @@ export default {
153
164
```
154
165
155
166
### `--fix`
167
+
156
168
If your application has a lot of unused translations you can run the command with
157
169
the `--fix` to remove them. Remember to double check your translations as dynamic
158
170
translations need to be whitelisted or they will be removed!
0 commit comments