edison-i18n
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

edison-i18n

A string library for edison

Getting Started

Add the package with: yarn add https://github.com/Always-Near/edison-i18n.git

Example:

import i18next from "i18next";
import { EN } from "edison-i18n";

i18next.init(
  {
    lng: "en",
    debug: true,
    resources: {
      en: {
        translation: EN,
      },
    },
  },
  function (err, t) {
    document.getElementById("output").innerHTML = i18next.t("welcome");
  }
);

Upgrade

yarn upgrade edison-i18n

Readme

Keywords

none

Package Sidebar

Install

npm i edison-i18n

Weekly Downloads

6

Version

0.0.6

License

UNLICENSED

Unpacked Size

267 kB

Total Files

6

Last publish

Collaborators

  • edison_npm