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 get a translated string from a language other than the current one?
- How-to implement admin Ajax inside an admin WP_List_Table?
- Include third party Javascript library which is not included in WordPress
- Hook the Keydown Event in the TinyMCE Post Editor
- Preparing a string in an array for localization
- Shortcodes, output buffering, and WordPress functions
- Multiple textdomains
- 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
- How to properly load text domain of custom mu plugin
- use __($str) to translate strings (symfony/twig)
- 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?
- Translate strings not recognised in plugin
- Gutenberg – What is the best way to save/update post meta?
- What is the way to ship read-me strings like plugin-strings for internationalization?
- Prevent Javascript Facebook SDK Conflicts in plugin
- Print WordPress username id inside JavaScript
- Making my plugin translation ready. Poedit not working
- Mixing Regular Javascript With jQuery in a Plugin
- How to run a external JavaScript file on wp-admin if admin, and other if normal user?
- Some strings from a .mo file do not load
- Where to call wp_enqueue_script in a plugin with custom template?
- Plugin translations not installed but… strings are translated!
- .mo translation strings not loading in PHP scripts that handle AJAX calls
- WordPress Plugin with a shortcode that dynamically generates javascript. Can I use add_action without wrapping the javascript in a function?
- How to prevent UNDO on guternberg block editor
- Do I have to worry about useState causing a re-render?
- Creating a custom Gutenberg block with columns
- “import declarations may only appear at top level of a module” when importing WooCommerce API node module
- wp.template() returns tags in Ajax response
- My WordPress plugin cannot load my JavaScript file
- Plugin directory says that my plugin it’s not availabe in Spanish, but it is
- add javascript files only when plugin is called?
- How can I avoid conflicts between plugin and theme?
- How to control an elements classes from multiple Gutenberg sidebar controls?
- How should I go about registering JavaScript that isn’t a file? [duplicate]
- Return Value of load_plugin_textdomain
- Need help about understand api, wp, $ syntax in WordPress plugin script
- Translating plugin settings page – dropdown list
- Make dynamic string translatable
- Insert Into Post Not Working For Audio File Using jQuery
- Developing the save function in Gutenberg blocks
- Using HTML links within translatable string
- How to insert HTML/CSS/JS into my iframe plugin?
- Is there a WordPress plugin to design WebGL? [closed]
- How to write a shopping queue line plugin with a queue button?
- wp.media libary pdf type
- wp.media gallery collection sometimes undefined
- Getting incorrect filepath inside custom block front-end output using @wordpress/create-block tutorial
- Use localized plugin name and description even when the plugin is disabled
- Trigger function on Remove block or add new block in Gutenberg JavaScript
- Multiple TinyMCE on button click is initialized and appended but why only last one is writeable?
- Rerender core Templates with with ToggleControl but it doesnt recognize block type
- HTML Elements in my WP Plugin being generated in JS. Security and Translated Text Question about this method being used
- HTMLCollection not counting right in editor? / for loop not working on elements in DOM
- converting a node.js project into a wp plugin
- Is “document loaded” different on admin side than public side?
- How to use setAttributes outside of the edit function return
- why is apiFetch throwing Unhandled Promise Rejection: TypeError: Object is not a function
- Load script on frontend from widget plugin
- WordPress with React: Saving and Using Data Collected with fetch
- Using JavaScript in WordPress page to call for server data using AJAX
- How can I specify the plugin language in WordPress?
- Add a Script button in W3 Total Cache plugin not working due to conflicting jQuery version
- Uncaught ReferenceError: kpoejy is not defined
- Remove from a div by class name from post page if post author role is not administrator
- Load textdomain from global languages directory
- Translation not working in sprinf variable
- On one of my sites a file is shown as 404 but the file IS there
- How can i add insertion point between inner blocks in my custom block like core blocks
- 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 can create a custom plugin to call my webapi after any registration or membership plugin functionality
- React Plugin Settings Page Localization
- Insert meta-description into Yoast-SEO input-field via JavaScript
- Reinitiate Gutenburg’s blocks using javascript
- how to add contact form 7 shortcode in javascript variable