Upload your .php files to SimpleLocalize, add languages, auto-translate and download one .php file per language in seconds.
<?php
return [
"HELLO_WORLD" => "Hello world!",
"MY_TRANSLATION_KEY" => "This is my translation message!"
];
?>A PHP file that returns an associative array of translations. Laravel, CakePHP and many custom PHP apps load language files in this form.
It is used by Laravel, CakePHP, PHP. SimpleLocalize reads and writes it natively, so you keep your existing project structure. Format value for the CLI and API: php-array. Read the format documentation.
Add a simplelocalize.yml to the repository and run simplelocalize upload and simplelocalize download in your pipeline or GitHub Action:
# simplelocalize.yml
apiKey: YOUR_PROJECT_API_KEY
uploadFormat: php-array
uploadPath: ./locales/{lang}.php
downloadFormat: php-array
downloadPath: ./locales/{lang}.phpThe same project can export translations in more than 30 formats, and the free online converter works without an account: