leolabs/json-autotranslate

how solve this issue about new type of json for autotranslate?

Closed this issue ยท 2 comments

https://gist.github.com/ab1bc793fd801ebf3c125520229f0584

๐Ÿ” Looking for key-value inconsistencies in source files...
โ”œโ”€โ”€ en.json contains 459 inconsistent key(s)
โ””โ”€โ”€ Found key-value inconsistencies in 1 file(s).

I have same problem, my keys in source JSON file have periods, and json-autotranslate refuses to process it.
I'm using command
npx json-autotranslate --type key-based --matcher i18next --input locales --config locales/key.json

๐Ÿ” Looking for invalid keys in source files...
โ”œโ”€โ”€ translation.json contains 829 invalid key(s)
โ””โ”€โ”€ Found invalid keys in 1 file(s)

@leolabs any sollution? :)

I think I found a fix for this and just pushed a new version. Let me know if this fixes the issue on your end as well :)