This sample comes from the Angular documentation's "Example Angular Internationalization application" page.
npm installthe node_module packagesnpm startto see it run in Englishnpm run start:frto see it run with French translation.
See the scripts in
package.jsonfor an explanation of these commands.
Stackblitz compiles and runs the English version by default.
To see the example translate to French with Angular i18n:
- Open the
project.jsonfile and add the following to the bottom:
, "stackblitz": {
"startCommand": "npm run start:fr"
}
- Click the "Fork" button in the stackblitz header. That makes a new copy for you with this change and re-runs the example in French.