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 1
1
# Internationalization (i18n)
2
2
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:
4
4
- extraction
5
5
- serve
6
6
- build
@@ -23,7 +23,7 @@ ng xi18n --output-path src/locale
23
23
24
24
### Serve
25
25
Now 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 `
27
27
and is located in the ` src/locale ` folder.
28
28
If you want to use it when you serve your application you can use the 4 following commands:
29
29
- ` --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
64
64
then you would build the french version like this:
65
65
66
66
``` 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
68
68
```
69
69
70
70
If 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