2.0.1 • Published 7 months ago
@certik/i18next-lokalise v2.0.1
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
8 months ago
1.2.8
8 months ago
1.2.7
8 months ago
1.2.6
8 months ago
1.2.5
8 months ago
1.2.4
8 months ago
1.2.3
8 months ago
1.2.2
8 months ago
1.2.1
8 months ago
2.0.1
7 months ago
2.0.0
8 months ago
1.2.9
8 months ago
1.2.12
8 months ago
1.2.10
8 months ago
1.2.11
8 months ago
1.1.5
11 months ago
1.1.4
11 months ago
1.1.3
11 months ago
1.1.1
1 year ago
1.1.0
1 year ago
1.1.2
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago