i18next-typescript-parser
v0.3.0
Published
Extract i18next keys from TypeScript
Readme
i18next-typescript-parser
Extract i18next keys from a TypeScript codebase.
Unlike i18next-parser, this package operates on a typed syntax tree rather than lexer tokens. As a result, it's more reliable and precise.
Installation
npm install --save-dev i18next-typescript-parserUsage
import { extractKeys } from 'i18next-typescript-parser';
const keys = extractKeys();
for (const { namespace, key } of keys) {
console.log(namespace, key);
}License
MIT
