Lisan (Turkish: lee · sun) is an i18n (internationalization) library.
It provides all essential tooling to have multiple languages in your applications and format numbers, currencies, ordinals & dates based on locale.
Lisan's biggest difference compared to traditional i18n libraries is taking advantage of ES6 Template Literals and using them to generate functions to interpolate strings.
What is Lisan trying to solve?
Most of the i18n libraries are based on some sort of template engine to interpolate strings and these template engines use regex or loops under the hood to find & replace the placeholders.
How lisan solves it?
Lisan adds an extra step to CI, but a giant performance gain to app kind!
It is that simple.
Enriched with plugins
Also, you can use existing plugins or write your plugins to extend the capabilities of Lisan.
lisan-plugin-l10n: adds localization formatters.
You can install lisan from the sources below, as you see fit.
npm install lisan
After adding the script tag above, all public variables
will be accessible via