Get started with the documentation.
npm install transax
transax
is a JavaScript/TypeScript library for content internationalization & localization.
The project is a pure JavaScript solution, so it can be used directly, or integrated with virtually any framework or library.
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.
Originally written in TypeScript, the package comes bundled with transpiled JavaScript versions for both CommonJS and ESM uses.
Able to analyze your code and look for translation calls, transax
will then report back with untranslated and
obsolete keys.
Once created your translation dictionary is compiled to a highly optimized and highly performant JavaScript object, ready to be used in production.
At runtime, transax
uses the compiled dictionary to translate keys into the desired language, performing powerful
string interpolation & formatting of passed data.