I have no words 🤦♂️
A simple change
dirname(plugin_basename(__FILE__)) . '/languages/'insidewp_set_script_translations()function (3rd argument)
to
plugin_dir_path(__FILE__) . 'languages/'
fixed the problem
Related Posts:
- How to provide translations for a WordPress TinyMCE plugin?
- Plugin language always shows WP site language, not profile language
- Is hint for translator compulsory while internationalizing a string containing variables?
- How to make a WordPress plugin translation ready?
- Problems with localization
- Can’t we use strings defined as PHP constants if we want to translate them in a plugin?
- WordPress: After Gutenberg plugin migration to block.json the localization/ translations with PolyGlot in JavaScript does not work anymore
- Is it possible to check is loaded language files correctly with WordPress plugin?
- How to i18n text coming from the db or from an external source
- Should I always prefer esc_attr_e & esc_html_e instead of _e?
- Should shorcodes in i18n plugins be translated and if so, how?
- Generate JSON files for language translation from po file without wp-cli i18n make-json
- How to prevent someone from entering strings without making it available for translation?
- Translate javascript with WordPress built-in localization API for static strings
- How to translate wordpress backend to another language
- Load custom translation in custom plugin fails
- Add language localisation to javascript alert?
- Translation not working for Constant strings in Plugin
- Save translation file of third party plugin in a custom plugin?
- Is it possible to reuse wp.media.editor Modal for dialogs other than media
- How to include jQuery and JavaScript files correctly?
- How to get a translated string from a language other than the current one?
- How can I run AJAX on a button click event?
- Can I use the wp media uploader for my own plugin?
- Customizing the 3.5 “Add Media” popup (Backbone.js)
- Test to see if jQuery or Prototype is queued by another plugin?
- jQuery in header or footer
- Hook the Keydown Event in the TinyMCE Post Editor
- lodash dependency in a Gutenberg plugin
- wp_localize_script $handle
- Shortcodes, output buffering, and WordPress functions
- How to properly load text domain of custom mu plugin
- WordPress Localization and Templating
- How do I only load js on the post-new.php and post.php pages in admin?
- creating elements/innerblocks via rangecontrol
- How to update the language used by wordpress from a plugin
- Singular name Plugin localization
- use __($str) to translate strings (symfony/twig)
- Why load_textdomain work but not load_plugin_textdomain?
- Can’t get JS code to work with shortcode
- Language Translation is not working?
- How do I add a javascript file to all admin pages via a plugin?
- How to Load Plugin JS in theme’s footer section
- Some strings from a .mo file do not load
- variables in translatable text
- Widget translation on my plugin
- Frontend language per user
- WordPress Plugin with a shortcode that dynamically generates javascript. Can I use add_action without wrapping the javascript in a function?
- Creating a custom Gutenberg block with columns
- Gutenberg: import dependency or assign from global variable?
- Is there a way to test that readme looks in other language before submitting translation?
- Translation per IP location [closed]
- Shortcode returning localized HTML part
- add javascript files only when plugin is called?
- Translate MCE button text/tooltip in custom plugin
- What action hook can I use to add a JavaScript to a page post using a theme template that is not including get_header() nor get_footer()?
- should i be checking for jquery before enqueing it in a plugin
- Loading custom js file on the admin page through plugin
- esc_html__() and __() not working within arrays
- Internationalizing Plugin
- Run JavaScript validation script on form submit in plugin
- Custom Plugin – CSS works, JS doesn’t
- How to add a panel/box/widget/are/screen to the right side of edit post/page confusion
- Service Worker Uncaught (in promise) DOMException
- Gutenberg – is it ok to load dependencies multiple times?
- Preventing double loading JS scripts (like React) when developing for Gutenberg
- Translation issue with global variables
- How to ignore extra whitespaces in translation functions like _e?
- Plugin not properly prepared for localization
- About a programming language starts with [closed]
- Referencing files in JavaScript in WordPress Plugin
- Should I put my plugin javascript inline?
- Borrowing of Previously Translated Strings by Child Plugin
- Query String Filtering API
- Multiple TinyMCE on button click is initialized and appended but why only last one is writeable?
- Do I lose translations when I change my Text domain for my plugin on wp.org?
- What happens/fires when you select a block in the editor?
- jQueryUI draggable doesn’t work in WordPress plugin
- Transform internationalized plugin into internationalized mu-plugin?
- Append php file to footer
- XMLHttpRequest to open PHP file responds with Missing Page
- WordPress in French Language [closed]
- Replace the WordPress Media Library Uploader
- Filterable posts using categories
- How to display archive by selecting year and then selecting month
- Plugin translation not being displayed
- Problem with Poedit [closed]
- How to translate WP plugin name?
- Import js variables loaded via wp_localize_script() into js module without global scope connection
- How to get the value entered in the input field in wordpres
- How are themes and plugins localized using the gettext GNU framework?
- React Plugin Settings Page Localization
- Insert meta-description into Yoast-SEO input-field via JavaScript
- Translations not making it into Block UI but work in the rest of the plugin
- Javascript function defined in view.js not reachable from save.js
- How to move custom gutenberg block controls from settings to styles tab?
- How to apply a javascript code on certain parts of elementor made pages?
- useBlockProps() nests wrapper with class name inside block wrapper in the editor
- How to use native wordpress translation domain inside a custom plugin?
- My wordpress plugin defaults to English (US) I would like it to default to English (UK)