Language files in modules on Joomla! 4 and later versions follow the same concept as all other language files, e.g. for components: they no longer have the language tag as a prefix.
In Joomla! 3.x and earlier versions you would have two language files for English (Great Britain):
-
en-GB.mod_example.ini
for the language strings you use when rendering the module, and the language strings in your module's configuration parameters. -
en-GB.mod_example.sys.ini
for the language strings used in your XML manifest file for the module's name and description.
In Joomla! 4 and later versions they are now called:
-
mod_example.ini
-
mod_example.sys.ini
Module language files are loaded automatically. You do not need to load them yourself.