Lisan

Lisan

  • Docs
  • API
  • Try it out
  • Examples
  • GitHub

›About

About

  • Lisan
  • How it works?
  • Performance
  • Lisan Compiler
  • Lisan CLI
  • Lisan Locales
  • Plugins
  • Adapters

Components

  • Translations
  • Dictionary
  • Conditional Groups
  • Formatters

Plugins

  • Localization
  • Loader

Guides & Tips

  • Pluralization
  • JSX Interpolation
  • Multiple Instances
  • Write Plugins

API

  • Lisan
  • Lisan Compiler
  • Lisan CLI
Edit

Plugins

Lisan was designed to be as small and light as possible to provide the best performance and user experience.

Lisan, at its core, only manages dictionary entries. That's all.

If you do not need more features you don't have to increase your bundle size. However, its functionalities can be extended by adding plugins.

Lisan provides a lisan.use() method to create better abstraction.

You can learn more about writing your plugins, See: How to write Lisan plugins?

Official Plugins

Localization Plugin

Since localization can be achieved in different ways, like using Javascript's Intl API or with another third party solution, Lisan does not have a built-in localization capability.

However, it provides probably the most performant localization plugin.

Visit here to learn more: lisan-plugin-l10n

Loader Plugin

Since Lisan uses javascript objects that contain functions, and not plain JSON objects, the dictionaries have to be stored in Javascript files.

So, if you have an application that does lazy loading, you'll need to import those dictionary files dynamically.

Again, since there are plenty of ways to dynamically import javascript files like using import() expression,
ES Modules in Browsers or a third-party library like requireJS etc., instead of forcing developers to use one builtin solution, Lisan provides a loader plugin.

Visit here to learn more: lisan-plugin-loader

Last updated on 3/21/2020
← Lisan LocalesAdapters →
  • Official Plugins
    • Localization Plugin
    • Loader Plugin
Lisan
Docs
AboutComponentsPluginsGuide & TipsAPI Reference
Ecosystem
LisanLisan LocalesLisan CompilerLisan CLILocalization PluginLoader PluginLisan Types
More
IssuesGitHubSupport Us