0.5.0 • Published 2 years ago

@vatr/i18n v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@vatr/fetch

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/@vatr/i18n';
initialI18n();

Localize in template string

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

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