Skip to content

Files

Latest commit

author
Mark Skelton
Mar 4, 2022
44b2ec2 · Mar 4, 2022

History

History
40 lines (28 loc) · 893 Bytes
·

README.md

File metadata and controls

40 lines (28 loc) · 893 Bytes
·

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}