Manual:$wgMessagesDirs

Details
Associative array mapping extension name to the path of the directory where message files can be found. The message files are expected to be JSON files named for their language code, e.g. en.json, de.json, etc. Extensions with messages in multiple places may specify an array of message directories.

Simple example:

Complex example:

  can co-exist with  ; both should be set, if you want to preserve compatibility when 3>Special:MyLanguage/Manual:GenerateJsonI18n.php|converting old PHP l10n files.