Hi.
I'm thinking about best way to translate js files.
In my previous project, I use to have server side generated js file for
translation, looked like
var STR1 = <?= $this->translate('str.') ?>;
var STR2 = <?= $this->translate('str2.') ?>;
// ...
But is this really required, maybe writing manual this files and then just
include one depending on lang settings, for better performances, but, this
one can be cached also if you mess with headers a bit.
How do you handle this?
Regards,
Sasa Stamenkovic.