Skip to content

Releases: bigBear713/nb-trans

18.0.0

03 Jul 07:55
9f58bd0
Compare
Choose a tag to compare

破坏性更新

  • feat: angular升级到v18;
  • feat: @bigbear713/nb-common升级到^18.0.0;

Breaking Changes

  • feat: Upgrade angular to v18;
  • feat: Upgrade @bigbear713/nb-common to ^18.0.0;

17.0.0

14 Jan 13:59
6666d2c
Compare
Choose a tag to compare

v17.0.0

Breaking Changes

  • feat: Upgrade angular to v17;

v17.0.0

破坏性更新

  • feat: angular升级到v17;

16.0.0

18 May 14:31
269d2eb
Compare
Choose a tag to compare

Breaking Changes

  • feat: Upgrade angular to ^16.0.0;
  • feat: Upgrade @bigbear713/nb-common to ^16.0.0;
  • feat: INbTransParams - Limit the naming rules about params's key: Consists of letters, numbers, _, and $, and the number can't be the first character;
  • feat: <nb-trans /> - The key prop is required: issue/25

Dependencies

  • chore: Remove uuid lib;

Services

  • refactor: NbTransService - Refactor the function for handling the dynamic params in translated string;
  • fix: NbTransService - Fix the bug abouf will get object data when the trans key is incomplete: issue/27;
  • feat: NbTransService - Support for spaces between dynamic params and {{}} in translated string: issue/34;

Components

  • feat: [nb-trans] - Add the component which the selector is [nb-trans]: issue/22;
  • perf: <nb-trans /> - Use the UnsubscribeService to manage the rxjs subscription;
  • fix: <nb-trans /> - Fix the bug about the trans result is wrong in some case: issue/28

Pipes

  • feat: nbTrans - Use the UnsubscribeService to manage the rxjs subscription;

Tokens


破坏性更新

  • feat: angular升级到^16.0.0;
  • feat: @bigbear713/nb-common升级到^16.0.0;
  • feat: INbTransParams - 限制 params 中的 key 的命名规则:由字母数字_$ 组成,且 数字 不能为第一个字符;
  • feat: <nb-trans /> - key属性添加必填校验:issue/25

依赖

  • chore: 移除 uuid 库;

Services

  • refactor: NbTransService - 重构翻译文本中动态参数的处理方式;
  • fix: NbTransService - 修复当 params 的 key 值不完整时会得到object类型的数据的问题:issue/27
  • feat: NbTransService - 支持在翻译文本中,动态参数{{}}之间存在空格:issue/34;

Components

Pipes

  • feat: nbTrans - 使用 UnsubscribeService 管理rxjs的订阅事件;

Tokens

v15.1.0

12 Mar 03:35
f1e0b1e
Compare
Choose a tag to compare

Components

Pipes

  • feat: nbTrans - 支持以standalone component的方式引入

Components

Pipes

  • feat: nbTrans - Support to be imported as a standalone component

v15.0.0

30 Dec 12:07
e00220e
Compare
Choose a tag to compare

破坏性更新

  • feat: angular升级到^15.0.0;
  • feat: @bigbear713/nb-common升级到^15.0.0;

依赖

  • feat: uuid升级到^9.0.0;

Tokens

Enums

Services

Pipes


Breaking Changes

  • feat: Upgrade angular to ^15.0.0;
  • feat: Upgrade @bigbear713/nb-common to ^15.0.0;

Dependencies

  • feat: Upgrade uuid to ^9.0.0;

Tokens

Enums

Services

Pipes

v14.0.0

31 Jul 06:22
1329292
Compare
Choose a tag to compare

破坏性更新

  • feat: angular升级到v14;

Breaking Changes

  • feat: Upgrade angular to v14;

v13.0.1

10 May 13:50
a5bf23d
Compare
Choose a tag to compare

依赖

  • fix: nb-common版本调整为^13.0.0;

Dependencies

  • fix: Update the version of nb-common as ^13.0.0;

v13.0.0

02 May 13:07
fd94b82
Compare
Choose a tag to compare

破坏性更新

  • feat: angular升级到v13;

Breaking Changes

  • feat: Upgrade angular to v13;

v12.1.0

27 Mar 08:22
14dca21
Compare
Choose a tag to compare

Services

NbTransService

  • feat: NbTransService.getBrowserLang()可以直接获取浏览器的首选语言;
  • depr: getBrowserLang()被标志为deprecated;
  • feat: NbTransService.getBrowserLangs()可以直接获取一个用户已知语言的数组;
  • depr: getBrowserLangs()被标志为deprecated;

Services

NbTransService

  • feat: NbTransService.getBrowserLang() can the first language of browser directly
  • depr: getBrowserLang() has been marked as deprecated;
  • feat: NbTransService.getBrowserLangs() can a language array known directly
  • depr: getBrowserLangs() has been marked as deprecated;

v12.0.0

11 Mar 14:18
Compare
Choose a tag to compare

Module

Services

Components

  • feat: <nb-trans></nb-trans> - 当翻译文本中含有组件等复杂场景时使用的组件
  • feat: [nb-trans-subcontent] - 当翻译文本中含有组件嵌套时使用的一种官方提供的方案(可根据需要有自己的实现方式),会将嵌套的组件内容渲染出来

Pipes

  • feat: nbTrans - 翻译文本的管道

Tokens

Interfaces

Enums


Module

Services

Components

  • feat: <nb-trans></nb-trans> - when you need to translate the sentence which include components
  • feat: [nb-trans-subcontent] - it is a common solution when the sentence include some nested componets (you can impletement yourself to meet the requirement)

Pipes

  • feat: nbTrans - the pipe which to tranlate the text

Tokens

Interfaces

Enums