I've got an ajax call that loads some info and a js file with something like Drupal.t('CLOSE HISTORY')

That string, although properly loaded in the database, does not get translated when loaded through ajax.

Are there any issues translating js files that are loaded through ajax?

Any ideas are appreciated!


Answer was simple - the js translation file that drupal generates was "stuck". Seems to have been a browser caching issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.