Skip to content

Commit b7739e4

Browse files
Ismael Ramosiramos
authored andcommitted
FEAT(ANGULAR): fix extract-i18n script
1 parent 9bd365f commit b7739e4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

angular.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
"i18n": {
88
"locales": {
99
"en": {
10-
"translation": "src/i18n/messages.xlf",
10+
"translation": "src/locale/messages.xlf",
1111
"baseHref": "/"
1212
},
13-
"es": "src/i18n/messages.es.xlf"
13+
"es": "src/locale/messages.es.xlf"
1414
}
1515
},
1616
"projectType": "application",
@@ -194,8 +194,8 @@
194194
"options": {
195195
"xliffmergeOptions": {
196196
"i18nFormat": "xlf",
197-
"srcDir": "src/i18n",
198-
"genDir": "src/i18n",
197+
"srcDir": "src/locale",
198+
"genDir": "src/locale",
199199
"defaultLanguage": "en",
200200
"languages": [
201201
"en",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"start": "ng serve --open",
88
"start:es": "ng serve --configuration=es --open",
99
"dev:ssr": "ng run angularexampleapp:serve-ssr",
10-
"extract-i18n": "ng xi18n angularexampleapp --i18n-format xlf --output-path i18n --i18n-locale en && ngx-extractor --input=\"src/**/*.ts\" --format=xlf --out-file=src/i18n/messages.xlf && ng run angularexampleapp:xliffmerge",
10+
"extract-i18n": "ng xi18n angularexampleapp --format xlf --output-path src/locale --i18n-locale en && ngx-extractor --input=\"src/**/*.ts\" --format=xlf --out-file=src/locale/messages.xlf && ng run angularexampleapp:xliffmerge",
1111
"lint": "ng lint",
1212
"test": "ng test angularexampleapp --code-coverage --no-watch",
1313
"test:app:watch": "ng test angularexampleapp --code-coverage --watch=true",

0 commit comments

Comments
 (0)