Skip to content

elium-i18n 5.2.4

Install from the command line:
Learn more about npm packages
$ npm install @whatever-company/elium-i18n@5.2.4
Install via package.json:
"@whatever-company/elium-i18n": "5.2.4"

About this version

Extraction

Sentences to translate are extracted using our AST Parser that parses JS/JSX files and match the following structures.

import i18n from 'libs/i18n'
const text = i18n.t('My string to translate') || t('My string to translate when using the HOC translate()')
const interpolation = t('{{ number }} is my number', { number: 42 })
const plural = t('one object', { plural: '{{ count }} objects', count })
const context = t('string with context', { context: 'ctx' })
const comp = (
	<Translate>
		<span>
			This <b>will be</b> <i>extracted</i>
		</span>
	</Translate>
)

Details


Assets

  • elium-i18n-5.2.4.tgz

Download activity

  • Total downloads 7,725
  • Last 30 days 801
  • Last week 142
  • Today 2