This package has been deprecated

Author message:

All @vatr/* packages rename to @alwatr/*, please rename all your dependencies.

@vatr/i18n
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

@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>
  `;
}

Package Sidebar

Install

npm i @vatr/i18n

Weekly Downloads

2

Version

0.5.0

License

MIT

Unpacked Size

14 kB

Total Files

16

Last publish

Collaborators

  • alimd