2.0.1 • Published 2 years ago

@certik/i18next-lokalise v2.0.1

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

Internationalization Framework for 2B and 2C

Install

Run the following command to install:

yarn add @certik/i18next-lokalise

Usage

For frontend:

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

For backend / server side:

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

For script:

const { 
  downloadTranslations, 
  preprocessTranslations
} = require("@certik/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.

Linting and Formatting

yarn lint
yarn format

Publish

Compile source code by running:

yarn build

Then publish package:

yarn publish --access public
1.2.0

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.2.9

2 years ago

1.2.12

2 years ago

1.2.10

2 years ago

1.2.11

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.1.2

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago