mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
E2E tests passed locally **Added `readme.md` to the example code** This explains how to build and run the example for both English and French. **Archived `i18n-optional-manual-runtime-locale.md`** I was asked to cut out a substantial swath of this page by reviewer "zip-fa". All that remained was a brief paragraph. I removed the page from the navigation after copying the remaining text to `i18n-optional-import-global-variants.md`. The page is still reachable by 3rd party links. PR Close #51589
865 B
865 B
Angular i18n Internationalization Example
This sample comes from the Angular documentation's "Example Angular Internationalization application" page.
Install and Run the Download
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.
Run in Stackblitz
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.