Title: Textdomain JS
Last modified: October 14, 2022

---

# Textdomain JS

 *  Resolved [themefour wp](https://wordpress.org/support/users/masouddarvishi1992/)
 * (@masouddarvishi1992)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/textdomain-js/)
 * Hello. I want to translate the plugin into another language. But the strings 
   you defined in the javascript files are not added to the poedit software! I also
   checked the smart-manager-for-wp-e-commerce.pot file, I saw that these strings
   are not in this file. It seems you forgot something. please check it.
 * JavaScript file strings:
 * admin.js
    smart-manager.js smart-manager-product.js
 * tnx.

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [storeapps](https://wordpress.org/support/users/storeapps/)
 * (@storeapps)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/textdomain-js/#post-16116775)
 * [@masouddarvishi1992](https://wordpress.org/support/users/masouddarvishi1992/),
 * Ideally Smart Manager should show all the strings from JavaScript files in smart-
   manager-for-wp-e-commerce.pot file. Could you please update the Smart Manager
   plugin to latest version – v7.0.0 if you haven’t already and then let us know
   how it goes for you?
 * If still some of the strings are not available then request you to please get
   back to us with list of JavaScript strings that are missed in smart-manager-for-
   wp-e-commerce.pot file.
 *  Thread Starter [themefour wp](https://wordpress.org/support/users/masouddarvishi1992/)
 * (@masouddarvishi1992)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/textdomain-js/#post-16120311)
 * [@storeapps](https://wordpress.org/support/users/storeapps/)
 * Hello. I also tested with version 7.0. None of the strings related to js files
   are added to the language file! This problem does not exist in other plugins.
   But in your plugin, there is this problem. Even your default smart-manager-for-
   wp-e-commerce.pot file does not contain js file strings.
    -  This reply was modified 3 years, 7 months ago by [themefour wp](https://wordpress.org/support/users/masouddarvishi1992/).
 *  Plugin Author [storeapps](https://wordpress.org/support/users/storeapps/)
 * (@storeapps)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/textdomain-js/#post-16121736)
 * [@masouddarvishi1992](https://wordpress.org/support/users/masouddarvishi1992/),
 * That’s strange.
 * Could you please get back with list of JavaScript strings that are missing in
   smart-manager-for-wp-e-commerce.pot file? So that we can have check and resolve
   the issue for you.
 *  Thread Starter [themefour wp](https://wordpress.org/support/users/masouddarvishi1992/)
 * (@masouddarvishi1992)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/textdomain-js/#post-16121965)
 * You can check yourself that in the smart-manager-for-wp-e-commerce.pot file, 
   none of the strings in the files:
    admin.js smart-manager.js smart-manager-product.
   js do not exist! Poedit software does not add the text strings of those files.
 *  Plugin Author [storeapps](https://wordpress.org/support/users/storeapps/)
 * (@storeapps)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/textdomain-js/#post-16141581)
 * [@masouddarvishi1992](https://wordpress.org/support/users/masouddarvishi1992/),
 * Thank you for getting back to us.
 * As rechecked, even using the Poedit application we are able to translate all 
   the JavaScript strings in Smart Manager plugin.
 * Could you try using the [Loco Translate](https://wordpress.org/plugins/loco-translate/)
   plugin for translating the same strings and do let us know if that works for 
   your you or not. Click [here](https://www.storeapps.org/docs/how-to-translate-storeapps-plugins/)
   for further reference on the same.
 *  Thread Starter [themefour wp](https://wordpress.org/support/users/masouddarvishi1992/)
 * (@masouddarvishi1992)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/textdomain-js/#post-16144170)
 * [@storeapps](https://wordpress.org/support/users/storeapps/)
    I guess you manually
   removed the js option in the poedit software so that all strings of js files 
   are added to the language file.
 * Yes, strings are added with this! But if we translate the strings, the translation
   will not be applied to the plugin! Translate several js strings into one language
   with this software, then refresh the settings or plugin editor, see if the translation
   is applied or not! I’m sure, translation is not applied. I tested several times.
   I’m sure your plugin has a bug.
 * [https://ibb.co/GPkcQcx](https://ibb.co/GPkcQcx)
 * I downloaded the new version of the plugin and tested it again with poedit software.
   It doesn’t add any js strings!!
 * [https://ibb.co/GpScH15](https://ibb.co/GpScH15)
    -  This reply was modified 3 years, 7 months ago by [themefour wp](https://wordpress.org/support/users/masouddarvishi1992/).
    -  This reply was modified 3 years, 7 months ago by [themefour wp](https://wordpress.org/support/users/masouddarvishi1992/).
 *  Plugin Author [storeapps](https://wordpress.org/support/users/storeapps/)
 * (@storeapps)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/textdomain-js/#post-16151308)
 * Hi there,
 * Would like to update you that in order to translate JavaScript strings, you need
   to have JSON files along with .po and .mo files as described [here](https://developer.wordpress.org/block-editor/how-to-guides/internationalization/#create-translation-file).
   Poedit software only includes .po and .mo files.
 * Explaining further, so it seems like Poedit is not automatically generating the
   same JSON files. As suggested in our earlier response, suggest you to use [Loco Translate](https://wordpress.org/plugins/loco-translate/)
   for the same translations as it does handle JavaScript strings without any issues.
 * Request you to have a check with the above steps and do let us know if that works
   for you or not.
 *  Thread Starter [themefour wp](https://wordpress.org/support/users/masouddarvishi1992/)
 * (@masouddarvishi1992)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/textdomain-js/#post-16152567)
 * [@storeapps](https://wordpress.org/support/users/storeapps/)
    You can’t generate
   the json file?
 *  Plugin Author [storeapps](https://wordpress.org/support/users/storeapps/)
 * (@storeapps)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/textdomain-js/#post-16159175)
 * [@masouddarvishi1992](https://wordpress.org/support/users/masouddarvishi1992/),
 * We can surely generate the JSON files. But as you are trying to update the plugin
   into another language, its advised that you generate the same JSON file when 
   generating the ‘.po’ and ‘.mo’ files for the same language else it would not 
   be in sync.
 * So, if you are finding it difficult using WP-CLI (as described [here](https://developer.wordpress.org/block-editor/how-to-guides/internationalization/#create-translation-file)),
   hence we are suggesting you to use plugins like [Loco Translate](https://wordpress.org/plugins/loco-translate/)
   for the same translations as it will automatically generate the required JSON
   files when generating the ‘.po’ and ‘.mo’ files for the same language.
 * Request you to kindly give it a try and do let us know your views.
 *  Thread Starter [themefour wp](https://wordpress.org/support/users/masouddarvishi1992/)
 * (@masouddarvishi1992)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/textdomain-js/#post-16160090)
 * [@storeapps](https://wordpress.org/support/users/storeapps/)
    I tested. Only 
   by translating from within the Loco Translate plugin, the texts and strings of
   your plugin can be translated.
 * I think it is better to put the json files in the plugin folder yourself. Like
   dokan and yoast plugins
    -  This reply was modified 3 years, 7 months ago by [themefour wp](https://wordpress.org/support/users/masouddarvishi1992/).
 *  Plugin Author [storeapps](https://wordpress.org/support/users/storeapps/)
 * (@storeapps)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/textdomain-js/#post-16167633)
 * [@masouddarvishi1992](https://wordpress.org/support/users/masouddarvishi1992/),
 * Thank you for the update! 🙂
 * Yes, we do understand your concerns and have made a note of adding JSON files
   for existing translated languages within the plugin itself and will surely update
   you once we have added support for the same.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Textdomain JS’ is closed to new replies.

 * ![](https://ps.w.org/smart-manager-for-wp-e-commerce/assets/icon-256x256.png?
   rev=2356252)
 * [Smart Manager - Advanced WooCommerce Bulk Edit & Inventory Management](https://wordpress.org/plugins/smart-manager-for-wp-e-commerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-manager-for-wp-e-commerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-manager-for-wp-e-commerce/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-manager-for-wp-e-commerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-manager-for-wp-e-commerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-manager-for-wp-e-commerce/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [storeapps](https://wordpress.org/support/users/storeapps/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/textdomain-js/#post-16167633)
 * Status: resolved