Closed matzeso closed 11 months ago
Same here. Initially I thought it can be achieved by having a custom loader. but it turns out, it can't be.
It can absolutely be achieved using a custom loader. What makes you think it can't?
@tamzid-skavl, @Susccy is right this definitely can be achieved by creating a custom loader. The reason things get prefixed by their file name. That way you'll never have collisions in your translations keys.
Marking this as solved. Feel free to reopen if the suggested stuffs don't work out
Hey there, I currently have only a single JSON file per language. Unfortunately, if I just add the
en.json
into thei18n
folder it won't get picked up. If I add it intoen/en.json
, all keys are prefixed withen
. Is there any way that I can use just a single JSON with the current JSON loader, without the keys getting prefixed by the filename?Any hint is much appreciated :-)
Best regards, Matthias