Files
Ward Bell f6ccb163aa docs: Migrate i18n guide pages and code to Standalone (#51589)
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
2023-09-12 12:20:45 -07:00

27 lines
865 B
Markdown

# Angular i18n Internationalization Example
This sample comes from the Angular documentation's "[Example Angular Internationalization application](https://angular.io/guide/i18n-example)" page.
## Install and Run the Download
1. `npm install` the node_module packages
2. `npm start` to see it run in English
3. `npm run start:fr` to see it run with French translation.
>See the scripts in `package.json` for 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:
1. Open the `project.json` file and add the following to the bottom:
```
, "stackblitz": {
"startCommand": "npm run start:fr"
}
```
2. 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.