Skip to content

Latest commit

 

History

History
105 lines (76 loc) · 2.41 KB

README.CN.md

File metadata and controls

105 lines (76 loc) · 2.41 KB

@bigbear713/nb-trans

Angular translation lib by bigBear713.

Online Demo

Bug Report

Feature Request

SSR Demo

Document


Changelog


Readme


Feature

  • 支持翻译文本懒加载,或者急性加载;
  • 支持切换语言时,不刷新页面自动更新翻译文本;
  • 支持设置翻译文本加载失败时的重试次数;
  • 支持翻译文本中带有参数;
  • 支持翻译文本中带有组件的复杂场景;
  • 支持组件的更新策略为ChangeDetectionStrategy.OnPush
  • 支持在standalone component中使用;
  • 支持以standalone component的方式引入;

Version

nb-trans的大版本和Angular的大版本保持对应关系
@bigbear713/nb-trans @angular/core
^12.0.0 ^12.0.0
^13.0.0 ^13.0.0
^14.0.0 ^14.0.0
^15.0.0 ^15.0.0
^16.0.0 ^16.0.0
^17.0.0 ^17.0.0

Installation

$ npm i @bigbear713/nb-trans
// or
$ yarn add @bigbear713/nb-trans

启动demo项目

  • 安装依赖:
npm i
  • 编译nb-trans库
npm run build:lib
  • 运行nb-trans单元测试
npm run test:lib
  • 启动demo项目
npm start
  • 部署demo
npm run build

贡献者

欢迎提feature和PR,一起使该项目更好

bigBear713


License

MIT