Skip to main content
100%

Angular5による多言語サイトの構築方法 ref: https://qiita.com/SOhtsu/items/7e5d072e5ba6c7f0aad5

✓ Published0🌍 Public
OOhtsu
Last edited May 5, 2018
Created on May 5, 2018

This example demonstrates how to build a multilingual Angular 5 site using the built-in internationalization (i18n) tools, with separate build configurations for Japanese and French alongside the default English version. The setup uses Angular CLI commands like `ng serve` and custom npm scripts that invoke `ng build` with flags such as `--i18nFile`, `--i18nFormat=xlf`, and `--locale=ja` or `--locale=fr`, producing distinct output directories (`dist/ja`, `dist/fr`) with base-href adjustments. It shows the workflow of cloning a gist repository, installing dependencies via `npm install`, serving the development build, and then generating localized production bundles from source locale files.

AI-generated description

Similar vizzes