i18n-extract icon indicating copy to clipboard operation
i18n-extract copied to clipboard

Manage localization with static analysis. :mag:

Results 12 i18n-extract issues
Sort by recently updated
recently updated
newest added

Added a TS declaration file on my own fork. Not sure if this repository is still being monitored, but in any case, this can serve as reference to anyone who...

Hello, I've been getting this error in my React Native project **Code:** ``` usedKeys = extractor.extractFromFiles(['./src/**/*.js'], { marker: 't', }); ``` **Error:** ``` [BABEL] unknown: Preset /* your preset */...

It will be nice use some exclude/ignore pattern for paths or external resolver like `anymatch`

I have this ```js const title = condition ? 'key:one' : 'key:two' return t(title) ``` This is parsed as a dynamic key (`'*'`) and catch all the keys for the...

enhancement

Some node have no arguments and it leads to an error in getKeys method.

I use react-native and in my code I have exported the I18n.t() function as _t(). Could I use your project ? Thank you in advance

We recently switched to a `babel.config.js` config instead of a `.babelrc.js` config, we're getting the following error: ``` (node:16257) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'end' of undefined at CallExpression (/Users/peterp/Chatterbug/chatterbug/node_modules/i18n-extract/lib/extractFromCode.js:166:42)...

I extract from .flow.js files, and babel parses these quite well. But if I make a syntax error, the output isnt very helpful (see below). Could we catch the SyntaxError...

enhancement

Tried the same example as GitHub- const unused = findUnused({ key1: 'key 1', key2: 'key 2', }, ['key1']); /node_modules/i18n-extract/lib/findUnused.js:18 if (keyUsed.includes('*')) { ^ TypeError: Cannot read property 'includes' of undefined

Hi all, I've been using `polyglot` with Vue as a Vue mixin, and tried using this tool to analyze `.vue` components as well as plain `.js` modules. It works wonderfully...