Widen / i18next-print-keys

i18next preprocessor to print translation keys including interpolated values.

Home Page:https://www.npmjs.com/package/i18next-print-keys

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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}

About

i18next preprocessor to print translation keys including interpolated values.

https://www.npmjs.com/package/i18next-print-keys

License:ISC License


Languages

Language:TypeScript 96.8%Language:JavaScript 3.2%