https://github.com/sanotsu/angular-i18n-demo
angular国际化 (i18n)的示例项目。
https://github.com/sanotsu/angular-i18n-demo
Last synced: 3 months ago
JSON representation
angular国际化 (i18n)的示例项目。
- Host: GitHub
- URL: https://github.com/sanotsu/angular-i18n-demo
- Owner: Sanotsu
- Created: 2019-12-18T07:42:31.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-18T07:53:31.000Z (almost 6 years ago)
- Last Synced: 2025-02-23T06:12:46.603Z (7 months ago)
- Language: TypeScript
- Size: 189 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AngularI18nDemo
这是一个 angular i18n 的示例项目,画面为一个常见的注册页面。
## 使用测试
- 运行`npm run zh-Hans`,浏览器打开显示中文简体的注册页面;
- 运行`npm run zh-Han`,浏览器打开显示中文繁体的注册页面;
- 运行`npm run en-US`,浏览器打开显示英语的注册页面;
- 运行`npm run ja-JP`,浏览器打开显示日语(百度翻译所得)的注册页面;
- 运行`npm build`,在 dist 得到 4 份不同语言的编译后文件夹;`ng serve`默认显示英语的注册页面。
## 多国语言效果
中文简体版本:

中文繁体版本:

美国英语版本:

百度翻译日文版本:
