// translations/main.en-US.json
{
"locale": "en-US",
"entries": {
"helloWorld": "Hello World",
"helloPerson": "Hello ${name}"
}
}
Store your translations as JSON,
// dictionaries/main.en-US.js
module.exports = {
locale: "en-US",
entries: {
"helloWorld": "Hello World",
"helloPerson": ({ name }) => `Hello ${name}`
}
};
Use them as pure JS functions.
![](/img/rocket.png)
Blazing Fast
Blazing Fast
Lisan is ~50x faster than traditional i18n libraries on average!
![](/img/moyai.png)
Framework Agnostic
Framework Agnostic
Lisan only provides plain Javascript objects and pure functions.
![](/img/astronaut.png)
Modular
Modular
Store your translations as separate dictionaries and load only the ones you need.
![](/img/globe.png)
Pluralization & Localization
Pluralization & Localization
Set Date/Time, Numbers, Currency formats for any region, with ease.