Skip to content

bigBear713/nb-trans

Repository files navigation

@bigbear713/nb-trans

Angular translation lib by bigBear713.

Online Demo

Bug Report

Feature Request

SSR Demo

Document


Changelog


Readme


Feature

  • Support to direct/lazing loading translation file;
  • Support to update translation content in page directly and no need to reload page;
  • Support to reset the max retry time when failure to load the translation file;
  • Support there are some params in translation sentence;
  • Support there are some components in the translation sentence;
  • Support the changeDetection of components as ChangeDetectionStrategy.OnPush;
  • Support to used in standalone component;
  • Support to be imported as a standalone component;

Version

The nb-trans's major version will keep up with the Angular's major version
@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
^17.0.0 ^17.0.0
^18.0.0 ^18.0.0

Installation

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

Start the demo project

  • Install the dependencies:
npm i
  • Build the nb-trans lib
npm run build:lib
  • Run the nb-trans unit test
npm run test:lib
  • Start the demo
npm start
  • build the demo
npm run build

Contribution

Feature and PR are welcome to make this project better together

bigBear713


License

MIT