Translations in JavaScript files

Would it be possible to apply translations to JavaScript files? If yes, how?

EDIT: Has been solved. However, ideas are welcome anyway.

I can’t think of anything else, other than this post

1 Like

Ah yes, you’re right. I didn’t remember. But I remember that elsewhere something like t('whatever') was possible in JavaScript as well.

BTW, do you know where in the PHP code that t() is defined?

1 Like