Can I use the same textdomain in two separate plugins?

I have two plugins lets name them PluginA and PluginB. Both are part of the same project I want to internationalize the text.

The question is if I use same textdomain ‘myplugin’ but make two files one in PluginA and other in PluginB and load both using

load_plugin_textdomain( 'myplugin', from PluginA )
load_plugin_textdomain( 'myplugin', from PluginB )

is that OK, or it overwrites the locales.

Thanks in advance.

1 Answer
1

In simple words “NO” it is not recommended until one plugin is not a subset of another plugin.

If you want multi-language use different.

Thanks,

Vee

Leave a Comment