Skip to content

Commit 4d866b0

Browse files
sarunintfilipesilva
authored andcommitted
docs(@angular/cli): change base href in i18n docs
1 parent f065a1e commit 4d866b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/documentation/stories/internationalization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
2525
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`
2727
and is located in the `src/locale` folder.
2828
If 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
6464
then 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

7070
If you need more details about how to create scripts to generate the app in multiple

0 commit comments

Comments
 (0)