Laravel - Localization - Using Short Keys
Typically, translation strings are stored in files within the resources/lang
directory. Within this directory, there should be a subdirectory for each language supported by your application. This is the approach Laravel uses to manage translation strings for built-in Laravel features such as validation error messages:
/resources
/lang
/en
messages.php
/es
messages.php
All language files return an array of keyed strings. For example:
'Welcome to our application!',
];
For languages that differ by territory, you should name the language directories according to the ISO 15897. For example, "en_GB" should be used for British English rather than "en-gb".