Lisan

Lisan

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

›Guides & Tips

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

Multiple Lisan Instances

Lisan provides a default lisan instance for convenience which can be imported from the module as below.

const { lisan } = require('lisan');

Custom Instance

If you need to have multiple lisan instances for any reason, you can import Lisan class from the lisan package and create a new lisan instance.

This instance will not inherit any entries or installed plugins from the default lisan instance.

const { Lisan } = require('lisan');

const myLisanInstance = new Lisan();

module.exports = myLisanInstance;
Last updated on 3/21/2020
← JSX InterpolationWrite Plugins →
  • Custom Instance
Lisan
Docs
AboutComponentsPluginsGuide & TipsAPI Reference
Ecosystem
LisanLisan LocalesLisan CompilerLisan CLILocalization PluginLoader PluginLisan Types
More
IssuesGitHubSupport Us