1.0.13 • Published 1 year ago

@ziyi-zhang-1130/i18next-lokalise v1.0.13

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Internationalization Framework for 2B and 2C

Install

Run the following command to install:

yarn add @ziyi-zhang-1130/i18next-lokalise

Usage

For frontend:

import {
  Trans,
  useTranslation,
  t,
  getLocale,
  withI18nApp,
  i18next,
  initReactI18next,
  usePlurals
} from "@ziyi-zhang-1130/i18next-lokalise/i18n";

For backend / server side:

import { 
  withI18n, 
  Translation, 
  reportMissing
} from "@ziyi-zhang-1130/i18next-lokalise/i18n.ssr";

For script:

const { 
  downloadTranslations, 
  preprocessTranslations
} = require("@ziyi-zhang-1130/i18next-lokalise/script");

Development

Edit source code in /src directory. Support Javascript, Typescript, JSX, and TSX. Please note:

  • For frontend-only code (React components, hooks), put it in /src/i18n.tsx only.
  • Javascript/Typescript files outside /src directory are generated based on code /src directory, so don't modify manually.

Publish

Compile source code by running:

yarn build

Then publish package:

yarn publish --access public
1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago