Plugins Translation into seperate Files

haven’t actually tried something, but i wonder if it’s possible to keep a plugin’s translations outside of the index.php.

is there any sort of option to use something like:

'translations' => [
  'en' => require(__DIR__.'/language/en.php'),
//  'de' => ....
],

yes, that works. your en.php can return the array with translations:

return [
  'test' => 'Test'
]
1 Like