[Angular] Introduction to Angular Internationalization (i18n)
Angular to Introduction I18N
2023-09-14 09:00:49 时间
To add translation to the application:
<button (click)="onEditCourse()" i18n>Edit button</button>
'i18n' is for Angular CLI to extract all the string which need to be translated.
Run:
ng xi18n
It will generate messages.xif, this file will be sent to the translator interface, then we can add translation for the application.
It is possible to provide custom message, description or even id for the translation, but it is not recommended.
相关文章
- Angular HTTP 请求自定义 timeout 值的一种实现思路
- vue相比jquery_angular和vue哪个厉害
- uat环境和生产环境的区别_angular 生产环境 相对路径无效
- 使用 Angular Universal 进行服务器端渲染的防御性编程思路
- To add browser notifications to an online customer support live chat service system - gofly - self h
- Angular 应用 tsconfig.json 文件里的 typeRoots 属性讲解
- 基于 Spartacus 的 Angular Storefront 性能优化建议
- Angular 项目中 angular.json builder 字段的可选项介绍
- 微软与 Google 将共同打造 Angular 2
- Angular 框架将进入 2.0 时代