i18next-typescript-parser
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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.

Usage

import { extractKeys } from 'i18next-typescript-parser';

const keys = extractKeys();
for (const { namespace, key } of keys) {
  console.log(namespace, key);
}

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.03latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.03

Package Sidebar

Install

npm i i18next-typescript-parser

Weekly Downloads

3

Version

0.1.0

License

MIT

Unpacked Size

6.57 kB

Total Files

5

Last publish

Collaborators

  • emersion