This is, in fact, already available by default. If specific locale isn’t available in plugin’s folder WordPress will try to fallback to languages directory.
It is defined by WP_LANG_DIR constant and for plugins the default location would be wp-content/languages/plugins. Note that name is expected to follow the specific format: name-locale.mo.
Related Posts:
- Translate a plugin using .po .mo files
- [Plugin WPML] : How to create a translation of a post using the WPML API?
- __(): What if I have to pass in a variable?
- Overriding single plugin translation
- Can’t set proper WooCommerce language translation [closed]
- Adding a text domain to every __(), _e() and __n() gettext call without a plan to create own translations
- Force Plugin to English Translation
- Overwrite textdomain of plugins by default – Lost Translation
- Why can I not use a class constant as text domain?
- What is the purpose of adding a .po file?
- translation does not work with text_domain
- Custom values are not translated
- Plugin translations problem
- Translate wordpress plugin [closed]
- Suggestions for i18n plugin [closed]
- Language Translation is not working?
- How WordPress knows where to find locale files?
- Automatically translating from existing .po and .mo files?
- Are contributed plugin translations automatically installed in WordPress?
- Prepare plugin options for multi-lingual support
- What is the way to ship read-me strings like plugin-strings for internationalization?
- Translating plugin inside the theme [closed]
- Override plugin text domain in child theme
- Making my plugin translation ready. Poedit not working
- Internationalization: Not loading plugin translated text
- load_theme_textdomain path
- Read text defined under __()
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- Internationalization autocomplete JS variable
- How to add links in .po (language) file in wordpress?
- Change the backend language of a single plugin
- Two text domains in one plugin
- Use translated taxonomy labels in plugin
- Translating long texts with html formatting
- How to translate __(”) strings in admin [closed]
- Working with .po and .mo files translation
- How to merge two .PO language files?
- What can be reason for no plugin-strings available under stable section on translate.wordpress.org?
- A new translation folder overrides my usual translation from “nowhere”
- Is there a way to test that readme looks in other language before submitting translation?
- Is there any way to use google input tool or any other language keyboard with WordPress [closed]
- Translation for the plugin using redux framework does not work
- Using wordpress translations strings in plugin
- Using Variable in WordPress Translate Functions
- Setting Email locale before retrieving gettext translations
- How to translate WP Blog (search, category etc.)?
- Plugin translation not working on WordPress.org
- Translation issue with global variables
- How to translate wordpress error message
- How to ignore extra whitespaces in translation functions like _e?
- How does translation (gettext) work for translating config file of plugin?
- Translate plugin admin interface
- Plugin not properly prepared for localization
- Update-safe translating of single text string in plugin
- Override translation of 1 word
- I’m looking for a visual composer / builder plugin that supports RTL
- How to install a translation for a WP plugin?
- How to translate user added content in a plugin
- Rename existing cpt and taxonomy with new textdomain
- TranslatePress | secondary language category/sub-category not working correctly “`/%category%/%postname%/“`
- Translation for a text that is not printed on the screen
- Translations not appended even strings are edited
- Use localized plugin name and description even when the plugin is disabled
- How can I change a translation for a string in a plugin?
- How to translate wordpress blog to other languages?
- translate wordpress website from english to arabic
- How to change WordPress core language using Loco Translate?
- Securing langugae folder
- How connect my plugin translation to my page
- Suspect incomplete .pot file – what to do?
- I dont know why my localization is not working
- wordpress plugin translation not working
- Plugin: Translated plugin is “not translated”
- Translation plugin with default language?
- plugin translation is not working
- Plugin Translation project not found
- Locale changed but plugin still showing default language
- WP internationalization not loaded
- Google Language Translator – Manage Translation
- Translate Woosidebars plugin strings
- Apostrophes replaced by '
- Gtranslate function with custom menu
- plugin translations not reflected in admin dashboard
- Plugin translations are not loaded from translate.wordpress.org
- Admin Notice is only localized when displaying the “Plugins” Backend Page
- plugin translation *.mo file not getting loaded for custom post
- How to make a page setting translatable in theme?
- How to remove site name (https://exp.com/) from WORDPRESS site source links or file load url
- How to customized post slider layout in elementor wordpress [closed]
- add_action() not working for admin
- WordPress Plugin translation not working EN To FR
- Can’t change login logo & css – older plugin data blocking?
- Learnpress FATAL ERROR
- is_singular() in mu-plugins not working
- View Version Details” on Plugin update shows “Plugin not found
- i have updated my wordpress to 6.3 and getting these errors. please help
- Custom page template from plugin does not work with pre-installed themes in WordPress 6.6.1
- Framework plugin inside wordpress
- How to access a function declared in child theme’s functions file in a plugin file?
- WordPress child theme widget customization – Eduma