/i18next-print-keys

i18next preprocessor to print translation keys including interpolated values.

Primary LanguageTypeScriptISC LicenseISC

i18next-print-keys

Build npm changesets

i18next preprocessor to print translation keys including interpolated values.

Installation

npm

npm install i18next-print-keys

Yarn

yarn add i18next-print-keys

Usage

import i18next from 'i18next'
import printKeys from 'i18next-print-keys'

i18next.use(printKeys).init({
  postProcess: 'printKeys',
})

Example

i18next.t('key') // key
i18next.t('key', { count: 1 }) // key {"count":1}