transax
v2.5.3
Published
Framework-agnostic JavaScript library for content internationalization.
Downloads
8
Readme
Transax
Get started with the documentation.
Quickstart
npm install transax
Introduction
transax
is a JavaScript/TypeScript library for content internationalization & localization.
Framework-agnostic
The project is a pure JavaScript solution, so it can be used directly, or integrated with virtually any framework or library.
Flavor-agnostic
Due to its simplicity transax
is able to recognize and extract keys from any JS-like syntax, including
JSX,
TSX, Vue SFCs
and maybe even future flavors.
Flexible
Originally written in TypeScript, the package comes bundled with transpiled JavaScript versions for both CommonJS and ESM uses.
Analysis
Able to analyze your code and look for translation calls, transax
will then report back with untranslated and
obsolete keys.
Compilation
Once created your translation dictionary is compiled to a highly optimized and highly performant JavaScript object, ready to be used in production.
Translation
At runtime, transax
uses the compiled dictionary to translate keys into the desired language, performing powerful
string interpolation & formatting of passed data.