如何详细配置Angular多语言支持?
- 内容介绍
- 文章标签
- 相关推荐
本文共计227个文字,预计阅读时间需要1分钟。
Angular 国际化方案,采用 ngx-translate 实现。
安装模块:bashnpm install @ngx-translate/core --save
在根模块中导入:javascript// other moduleimport { TranslateModule } from '@ngx-translate/core';
@NgModule({ declarations: [ 'AppComponent' ]})export class AppModule { }
angular的国际化方案,采用ngx-translate来实现。
本文共计227个文字,预计阅读时间需要1分钟。
Angular 国际化方案,采用 ngx-translate 实现。
安装模块:bashnpm install @ngx-translate/core --save
在根模块中导入:javascript// other moduleimport { TranslateModule } from '@ngx-translate/core';
@NgModule({ declarations: [ 'AppComponent' ]})export class AppModule { }
angular的国际化方案,采用ngx-translate来实现。

