EN FR
← Modules

jizy-translate

A simple JS translator.

Overview

A minimal translation engine for JavaScript applications. It manages per-language dictionaries, exposes getters and setters for single keys, and can automatically refresh DOM elements tagged with data-i18n attributes.

Features

  • Register translations for any number of language codes
  • Get and set translation keys with a default fallback
  • Switch the active language at runtime
  • Update DOM elements with data-i18n attributes automatically

Installation

npm install jizy-translate