Would it be possible to apply translations to JavaScript files? If yes, how?
EDIT: Has been solved. However, ideas are welcome anyway.
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
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?