@autodisol/i18n

[![npm](https://img.shields.io/npm/v/@autodisol/i18n.svg)](https://www.npmjs.com/package/@autodisol/i18n)

Stats

StarsIssuesVersionUpdatedCreatedSize
@autodisol/i18n
2.2.13 years ago3 years agoMinified + gzip package size for @autodisol/i18n in KB

Readme

ads-npm-i18n

npm

Server

const { setVocabulary } = require('@autodisol/i18n/server')
const { getVocabulary t, translate } = require('@autodisol/i18n')

setVocabulary('fr')
getVocabulary()    // => { brand: 'Marque', model: 'Modèle' } (Pass it down to the client)

translate('brand') // => 'Marque'
t('brand')         // => 'Marque'

Client

const { setVocabulary } = require('@autodisol/i18n/client')
const { t } = require('@autodisol/i18n')

setVocabulary({ brand: 'Marca' }) // (From the server)

t('brand') // => 'Marca'

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.