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?
- How can you check if you are in a particular page in the WP Admin section? For example how can I check if I am in the Users > Your Profile page?
- 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 to implement color picker from wordpress in my plugin?
- How can I run AJAX on a button click event?
- Add async script
- Can I use the wp media uploader for my own plugin?
- How-to implement admin Ajax inside an admin WP_List_Table?
- API to trigger prompt on leaving page
- Customizing the 3.5 “Add Media” popup (Backbone.js)
- Test to see if jQuery or Prototype is queued by another plugin?
- Include third party Javascript library which is not included in WordPress
- jQuery in header or footer
- Hook the Keydown Event in the TinyMCE Post Editor
- Preparing a string in an array for localization
- How to Add a .js file Only in one specific Page Dynamically to Head
- lodash dependency in a Gutenberg plugin
- wp_localize_script $handle
- Shortcodes, output buffering, and WordPress functions
- How to prevent loading of all plugin’s resources?
- How to trap “Publish” button to check for meta box validation?
- Multiple textdomains
- How to properly load text domain of custom mu plugin
- Pass javascript result to shortcode executer function
- The changes I make to an external JS file of my WP plugin are only applied after I clear my browser’s cache
- How does gettext works for translating readme file of plugin?
- Use js script from one plugin in another plugin
- WordPress Localization and Templating
- How to properly load text domain of custom mu plugin
- 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
- Making a custom widget that includes a tinymce and works in Site Origin Page Builder
- Singular name Plugin localization
- Looking for callback function after Gutenberg is rendered?
- use __($str) to translate strings (symfony/twig)
- Plugin Localization
- What’s the better way to add an inline script?
- 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?
- Gutenberg: useDispatch is not a function – @wordpress/data included
- Make a list with header and subtext in Gutenberg blocks
- Translate strings not recognised in plugin
- Problem with Poedit [closed]
- How do I use (or mimic) document.getElementById() on a page loaded from WordPress database?
- How to translate WP plugin name?
- How can i add insertion point between inner blocks in my custom block like core blocks
- How do I access the contents of WordPress Classic editor in admin area with JavaScript?
- 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?
- How react js and other Javascript Technologies works on WordPress plugin?
- get the queried_object of an url
- Trigger a JavaScript function based on the data fetched from Woo commerce hook
- How can create a custom plugin to call my webapi after any registration or membership plugin functionality
- React Plugin Settings Page Localization
- Trouble Importing whatsapp-web.js in a WordPress Plugin Development
- Insert meta-description into Yoast-SEO input-field via JavaScript
- Reinitiate Gutenburg’s blocks using javascript
- How to get locale within WP REST Request?
- how to add contact form 7 shortcode in javascript variable
- Insert text programmatically in WordPress Gutenberg Editor
- 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?
- Plugin Internationalisation and textdomain
- How to use useSelect to retrieve the currently default fontFamily?
- Event when Modal is opened/visible
- How to apply a javascript code on certain parts of elementor made pages?
- Cannot call a class as a function in block plugin react component
- Extend backbone for add new custom Rest Api
- useBlockProps() nests wrapper with class name inside block wrapper in the editor
- Gutenberg move post/page title to Editor sidebar document panel
- configure additonal build files in the @wordpress/create-block
- Is It Possible to Use the Block Editor’s Notification Feature to Send Another Notification After the Post Is Saved?
- WordPress Plugin, Elementor and the ReferenceError nightmare
- 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)