Showing results for 
Search instead for 
Did you mean: 

Translations in javascript not working M2.4.5

Translations in javascript not working M2.4.5

Hi everyone


I'm running Magento 2.4.5


I ran into an annoying issue. I'm doing translation in JS but not all translated strings are present.

I have a custom theme (luma child), the js-translations.json there doesn't contain the string.


I'm using splendid/de_DE module & I added the string there. Additionally I created a de_DE.csv with the string to translate in my custom theme in the i18n directory. 


bin/magento setup:static-content:deploy -f de_DE


The js-translations.json gets a new timestamp as it is regenerated but still not containing the string. 


What's wrong here?