File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
docs/documentation/stories Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11# Internationalization (i18n)
22
3- If you are working on internationalization, the CLI can help you with the following steps:
3+ If you are working on internationalization, the CLI can help you with the following steps:
44- extraction
55- serve
66- build
@@ -23,7 +23,7 @@ ng xi18n --output-path src/locale
2323
2424### Serve
2525Now that you have generated a messages bundle source file, you can translate it.
26- Let's say that your file containing the french translations is named ` messages.fr.xlf `
26+ Let's say that your file containing the french translations is named ` messages.fr.xlf `
2727and is located in the ` src/locale ` folder.
2828If you want to use it when you serve your application you can use the 4 following commands:
2929- ` --i18n-file ` Localization file to use for i18n.
@@ -64,7 +64,7 @@ For example if the french version of your application is served from https://mya
6464then you would build the french version like this:
6565
6666``` sh
67- ng build --aot --output-path dist/fr --base-href fr --locale fr --i18n-format xlf --i18n-file src/locale/messages.fr.xlf --missing-translation error
67+ ng build --aot --output-path dist/fr --base-href /fr/ --locale fr --i18n-format xlf --i18n-file src/locale/messages.fr.xlf --missing-translation error
6868```
6969
7070If you need more details about how to create scripts to generate the app in multiple
You can’t perform that action at this time.
0 commit comments