Translations - AgDataInfo/dashboard GitHub Wiki
The Agdata dashboard integrates Symfony translations to deliver a feature rich translation service.
Based on the accepted language of the users browser the language flag will be set in the registration form. The user can later change this language flag either on registration or in profile settings.
If the requested language key does not exist in the users locale translation file, the system will fall back to english. If the language key doesn't exist there it will fall back to the key.
Translation files are stored in /src/translations/messages.locale.php
// /src/translations/messages.nb-NO.php
return [
'Welcome to Agdata!' => 'Velkommen til Agdata!',
'Hello %firstname% %lastname%! Welcome back to Agdata' => 'Hallo %firstname% %lastname%! Velkommen tilbake til Agdata',
'{0} You have no open support tickets|{1} You have one open support ticket|]1,Inf] You have %count% open support tickets' => '{0} Du har ingen åpne supporthenvendelser|{1} Du har èn åpen supporthenvendelse|]1,Inf] Du har %count% åpne supporthenvendelser',
];