https://github.com/widen/i18next-print-keys
i18next preprocessor to print translation keys including interpolated values.
https://github.com/widen/i18next-print-keys
frontend i18next i18next-plugin i18next-postprocessor
Last synced: 2 months ago
JSON representation
i18next preprocessor to print translation keys including interpolated values.
- Host: GitHub
- URL: https://github.com/widen/i18next-print-keys
- Owner: Widen
- License: isc
- Created: 2021-03-25T20:24:51.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-15T21:06:30.000Z (6 months ago)
- Last Synced: 2025-04-13T07:18:12.499Z (3 months ago)
- Topics: frontend, i18next, i18next-plugin, i18next-postprocessor
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/i18next-print-keys
- Size: 22 MB
- Stars: 1
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# i18next-print-keys
[](https://github.com/Widen/i18next-print-keys/actions/workflows/build.yml)
[](https://www.npmjs.com/package/i18next-print-keys)
[](https://github.com/atlassian/changesets)[i18next](https://www.i18next.com) preprocessor to print translation keys
including interpolated values.## Installation
### npm
```sh
npm install i18next-print-keys
```### Yarn
```
yarn add i18next-print-keys
```## Usage
```js
import i18next from 'i18next'
import printKeys from 'i18next-print-keys'i18next.use(printKeys).init({
postProcess: 'printKeys',
})
```### Example
```js
i18next.t('key') // key
i18next.t('key', { count: 1 }) // key {"count":1}
```