i18next / i18next-parser

Parse your code to extract translation keys/values and manage your catalog files
MIT License
472 stars 192 forks source link

I don't get any output #941

Closed gofreddo closed 6 months ago

gofreddo commented 9 months ago

🐛 Bug Report

I don't get any output from i18next-parser. It says 'Stats: 90 files were parsed' but that is it. No resource files are generated.

To Reproduce

i18next --config ./i18next --config i18next-parser.config.mjs --output locales/$LOCALE/$NAMESPACE.json "src/*/.{ts,tsx}" Default config file.

Expected behavior

I expect it to generate resource files.

Your Environment

schnogz commented 6 months ago

having same issue. any ideas as to why?

schnogz commented 6 months ago

@gofreddo i realized that you need to first manually go through your app and actually wrap some of your strings using react-i18next. Once i did that, i got the output as expected

example here: https://codesandbox.io/p/sandbox/1zxox032q?file=%2Fsrc%2Fapp.js%3A6%2C3-6%2C40

karellm commented 6 months ago

Closing by lack of information. Reopen with more detailed information if the issue persists.