.json translation files are generated without text-domain in child-theme folder
-
I tried to translate a theme related js file with loco and so far everything seemed fine, just the translations weren’t showing in the frontend. After debugging I found out that the standard WordPress loader is somehow only looking for files that have the syntax $textdomain-$locale-md5.json as long as the text-domain isn’t “default” and loco is generating the file without the text-domain.
I added the text-domain in front of the generated filename and everything was working immediately. (mo and po files are loaded correctly with just the domain name)Am I missing something? Is there something I can do to fix that on my own? Didn’t find any filters on my own.
Thanks in advance!
- The topic ‘.json translation files are generated without text-domain in child-theme folder’ is closed to new replies.