Skip to main content

Installation

Install dependencies (and peer dependencies)​

Use npm​

npm i @antscorp/antsomi-locales

Use yarn​

yarn add @antscorp/antsomi-locales

Usage​

import { translate, translations } from '@antscorp/antsomi-locales'

translate(translations._ACT_ACTION, 'Action')

Language will be auto detect by find the key i18nextLng in localStorage (back by i18next-browser-languagedetector)