i18next-print-keys
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

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}

/i18next-print-keys/

    Package Sidebar

    Install

    npm i i18next-print-keys

    Weekly Downloads

    0

    Version

    2.0.0

    License

    ISC

    Unpacked Size

    4.95 kB

    Total Files

    8

    Last publish

    Collaborators

    • widen-npm