Manual:$wgMessagesDirs/es

Detalles
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.

Ejemplo simple:

Ejemplo complejo:

can co-exist with ; both should be set, if you want to preserve compatibility when converting old PHP l10n files.