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
refact: use appConfig file for translations and adapt server.ts
- add option to use appConfig file for translations
- adapt server.ts to use appConfig file for translations
- adapt language.service to use appConfig file for translations and redirect to browser language in case it is in supported locales config file
Reviewed-by: acapai
Copy file name to clipboardExpand all lines: frontend/package.json
+1-6Lines changed: 1 addition & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,7 @@
20
20
"build:i18n-ssr": "npm run build:client-and-server-bundles-i18n && npm run compile:server",
21
21
"build:client-and-server-bundles": "ng build --prod && ng run frontend:server:production",
22
22
"build:client-and-server-bundles-i18n": "ng run frontend:build:fr && ng run frontend:build:en && ng run frontend:build:de && ng run frontend:server:production",
23
-
"extract-i18n": "ng xi18n frontend --i18n-format xlf --output-path i18n --i18n-locale fr && ng run frontend:xliffmerge",
24
-
"start:proxy": "ts-node tools/dev-i18n-proxy.ts",
25
-
"start:all": "concurrently -k \"ng serve -c fr --port 4200\"\"ng serve -c en --port 4201\"\"ng serve -c de --port 4202\"\"npm run start:proxy\""
23
+
"extract-i18n": "ng xi18n frontend --i18n-format xlf --output-path i18n --i18n-locale fr && ng run frontend:xliffmerge"
console.error('Build error: expected locale folders '+ALL_LOCALES.join(', ')+' but found '+supportedLocales.join(', ')+'. You may need to run `npm run build:i18n-ssr in case of multi-locale or change `supportedLocales` in app.config.ts to deploy mono locale.');
0 commit comments