File-based translation loader--reads translation arrays from PHP files organized by locale and group.
composer require marko/translation-fileThis package provides the file-based implementation for marko/translation.
// lang/en/messages.php
return [
'welcome' => 'Welcome to our site!',
'hello' => 'Hello, :name!',
];Full usage, API reference, and examples: marko/translation-file