Laravel PHP strings

Changed in version 4.1.

The Laravel PHP localization files are supported as well with plurals:

<?php
return [
    'welcome' => 'Welcome to our application',
    'apples' => 'There is one apple|There are many apples',
];

Weblate configuration

Typical Weblate Component configuration

File mask

lang/*/texts.php

Monolingual base language file

lang/en/texts.php

Template for new translations

lang/en/texts.php

File format

Laravel PHP strings