Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 14 hours 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 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-04T16:53:18.000Z (over 2 years ago)
- Last Synced: 2024-11-10T12:52:16.456Z (9 days 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: 9
- 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
[![Build](https://github.com/Widen/i18next-print-keys/actions/workflows/build.yml/badge.svg)](https://github.com/Widen/i18next-print-keys/actions/workflows/build.yml)
[![npm](https://img.shields.io/npm/v/i18next-print-keys)](https://www.npmjs.com/package/i18next-print-keys)
[![changesets](https://img.shields.io/badge/maintained%20with-changesets-blue)](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}
```