Translate PHP files for Laravel

WebTranslateIt supports PHP i18n files for the Laravel framework.

PHP Laravel i18n files example

# Some copyright comments
return array(
    'welcome' => 'Welcome to our application',
    'nested' => array(
        'key' => 'value',
        'nested' => array(
            'key' => 'value',
            'key2' => 'value2',
  • Copyright comments will be left intact at the top of the file
  • Keys and values can be single quoted or double quoted.
  • If a string is single quoted, single quotes must be escaped.
  • If a string is double quoted, double quotes must be escaped.
  • The PHP closing tag ?> is optional. If no PHP closing tag is present when importing a file WebTranslateIt will generate files without a closing tag.
  • Plural segments are loosely supported. Due to how plural forms are implemented by the Laravel framework we think it’s best to import them as singular segments. It will be up to the translator to determine which plural rules exist on their languages.

More Information