PHP code example of nextapps / laravel-poeditor-sync
1. Go to this page and download the library: Download nextapps/laravel-poeditor-sync library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nextapps / laravel-poeditor-sync example snippets
// in config/poeditor-sync.php
// Provide array with all supported locales ...
'locales' => ['en', 'nl', 'fr'],
// ... Or provide associative array with POEditor locales mapped to internal locales
'locales' => ['en-gb' => 'en', 'nl-be' => 'nl'],
// ... Or you can map multiple internal locales to the same POEditor locale
'locales' => ['nl' => ['nl_BE', 'nl_NL']],