1.2.0 • Published 3 years ago
quicki18n-react v1.2.0
QuickI18N

Translations fast and easy for React and NextJS projects.
Installation
Install with yarn or npm
npm i quicki18n-react
yarn add quicki18n-reactUsage
Create your translation files with this structure.
|-- public
|-- locales
|-- en
| |-- common.json
|-- es
| |-- common.jsonGo to the root of your application and do this:
import { QuickProvider } from 'quicki18n-react'
const MyApp = () => (
<QuickProvider locale='en'>
{ component }
</QuickProvider>
)Go to the component you need to insert a translation of and do this:
import { useQuick } from 'quicki18n-react'
const Component = () => {
const { t } = useQuick()
return (
<h1>{t('translation_key')}</h1>
)
}Made with ❤️ by Chris
1.2.0
3 years ago
1.1.9
3 years ago
1.1.8
3 years ago
1.1.7
4 years ago
1.1.6
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago