Title: Translate strings in JavaScript
Last modified: July 7, 2021

---

# Translate strings in JavaScript

 *  Resolved [financialcalculators](https://wordpress.org/support/users/financialcalculators/)
 * (@financialcalculators)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/translate-strings-in-javascript-6/)
 * Will Google Language Translator help me with translating strings in custom JavaScript?
 * If so, can you direct me to documentation as to how I need to prepare my script
   files?
 * TIA.

Viewing 1 replies (of 1 total)

 *  Plugin Author [edo888](https://wordpress.org/support/users/edo888/)
 * (@edo888)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/translate-strings-in-javascript-6/#post-14636336)
 * Hi,
 * In our free version we translate the rendered HTML after the page is ready. So
   if you have any text in javascript files which contribute to the final HTML, 
   it will be translated. Just try it and if you have issues, let us know to check.
 * Generally it is not recommended to have labels in javascript files and you should
   try to avoid that. Also, building logic based on fixed text must be avoided, 
   otherwise the logic will break when texts are translated.
 * Thanks! 🙂

Viewing 1 replies (of 1 total)

The topic ‘Translate strings in JavaScript’ is closed to new replies.

 * ![](https://ps.w.org/google-language-translator/assets/icon-256x256.png?rev=3007649)
 * [Translate WordPress - Google Language Translator](https://wordpress.org/plugins/google-language-translator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-language-translator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-language-translator/)
 * [Active Topics](https://wordpress.org/support/plugin/google-language-translator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-language-translator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-language-translator/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [edo888](https://wordpress.org/support/users/edo888/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/translate-strings-in-javascript-6/#post-14636336)
 * Status: resolved