Open jegork opened 1 year ago
The plugin indeed needs more flexibility with namespaces.
Our current setup is locales/«locale»/translation.json
, where translation
is supposedly our default and only namespace, and thus is not needed. However, it gets shoved in the keys when checking the table view, what makes it mostly useless for us right now. This also causes all translations to look like they're not filled, since the end key generated by the plugin differs from what's on the files.
I'm not sure if this is also related, but the plugin shows autocomplete options even where it makes no sense at all:
PS: notice the unnecessary namespaces, weirdly escaped.
I am using the plugin together with tolgee-js library for Next.js.
Currently, if I use the hook
then, when using the
t
function, in the suggestions popup, I will have something likens:key1
, however the correct suggestion would be justkey1
(no need to provide namespace, it doesn't work like that)Example: