angular/aio/content/examples/i18n
Doug Parker a6b875225a docs: update examples to use buildTarget instead of browserTarget (#52361)
`browserTarget` is deprecated and `buildTarget` is the newly preferred name.

PR Close #52361
2023-11-01 16:24:42 -07:00
..
doc-files docs: Migrate i18n guide pages and code to Standalone (#51589) 2023-09-12 12:20:45 -07:00
e2e/src test(docs-infra): disable the Selenium Promise Manager in docs examples e2e tests (#39818) 2020-11-24 14:56:14 -08:00
src docs: Migrate i18n guide pages and code to Standalone (#51589) 2023-09-12 12:20:45 -07:00
angular.json docs: update examples to use buildTarget instead of browserTarget (#52361) 2023-11-01 16:24:42 -07:00
BUILD.bazel build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
example-config.json build(bazel): incrementally run aio example e2e tests 2022-11-22 13:51:16 -07:00
readme.md docs: Migrate i18n guide pages and code to Standalone (#51589) 2023-09-12 12:20:45 -07:00
stackblitz.json build(docs-infra): fixed i18n broken stackblitz example (#42001) 2021-05-10 16:11:34 -04:00

Angular i18n Internationalization Example

This sample comes from the Angular documentation's "Example Angular Internationalization application" 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"
  }
  1. 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.