angular/aio/content/examples/i18n
2024-04-12 14:57:05 -07:00
..
doc-files Revert "refactor: move example generation into adev, removing content from aio (#55263)" (#55326) 2024-04-12 14:57:05 -07:00
e2e/src Revert "refactor: move example generation into adev, removing content from aio (#55263)" (#55326) 2024-04-12 14:57:05 -07:00
src Revert "refactor: move example generation into adev, removing content from aio (#55263)" (#55326) 2024-04-12 14:57:05 -07:00
angular.json Revert "refactor: move example generation into adev, removing content from aio (#55263)" (#55326) 2024-04-12 14:57:05 -07:00
BUILD.bazel Revert "refactor: move example generation into adev, removing content from aio (#55263)" (#55326) 2024-04-12 14:57:05 -07:00
example-config.json Revert "refactor: move example generation into adev, removing content from aio (#55263)" (#55326) 2024-04-12 14:57:05 -07:00
readme.md Revert "refactor: move example generation into adev, removing content from aio (#55263)" (#55326) 2024-04-12 14:57:05 -07:00
stackblitz.json Revert "refactor: move example generation into adev, removing content from aio (#55263)" (#55326) 2024-04-12 14:57:05 -07: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.