JSPM

  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q51377F
  • License MIT

Elegant powerful translation module (i18n/l10n) with dynamic json storage written in tiny TypeScript, ES module.

Package Exports

  • @alwatr/i18n
  • @alwatr/i18n/i18n.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@alwatr/i18n) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@alwatr/i18n

Elegant powerful translation module (i18n/l10n) with dynamic json storage written in tiny TypeScript, ES module.

Example usage

Initialize

import {initialI18n} from 'https://esm.run/@alwatr/i18n';
initialI18n();

Localize in template string

import {localize} from 'https://esm.run/@alwatr/i18n';

render() {
  return html`
    <p>${localize('Hello_World')}</p>
  `;
}