PHP code example of mishalestev / laravel-files-translator
1. Go to this page and download the library: Download mishalestev/laravel-files-translator 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/ */
mishalestev / laravel-files-translator example snippets
declare(strict_types=1);
return [
"key_217762278049d3017bfd946d250bd8c1" => <<<TEXT
Acordaos del día de reposo para santificarlo.
TEXT,
"key_1eeafa582e3c49562668d54bb368c58e" => <<<TEXT
Seis días trabajarás y harás toda tu obra.
TEXT,
"key_3238a9234abe3dcd02238d0d8b5c1fb5" => <<<TEXT
Pero el séptimo día es sábado para Jehová tu Dios:
TEXT,
"key_8381b742e34b685e1a0cfb81867efb98" => <<<TEXT
en él no harás ningún trabajo, ni tú ni tu hijo,
TEXT,
"key_730695692e7cfd2b1470e572af9d8644" => <<<TEXT
ni tu hija, ni tu siervo, ni tu sierva,
TEXT,
"key_a6c36c16f68a094a27ae3e2177911d6c" => <<<TEXT
ni tu ganado, ni tu extranjero que está dentro de tus puertas:
TEXT,
"key_236abf8e864840c6277606a1254e7b35" => <<<TEXT
Porque en seis días hizo el Señor los cielos y la tierra,
TEXT,
"key_346637a025ad4a8655361a22322999bc" => <<<TEXT
el mar, y todo lo que en ellos hay, y descansó el séptimo día:
TEXT,
"key_ec75f0ccfa23369829f182a6a3cb0e31" => <<<TEXT
Por tanto, el Señor bendijo el día del sábado y lo santificó.
TEXT,
];
declare(strict_types=1);
return [
"key_217762278049d3017bfd946d250bd8c1" => <<<TEXT
Remember the sabbath day, to keep it holy.
TEXT,
"key_1eeafa582e3c49562668d54bb368c58e" => <<<TEXT
Six days shalt thou labour, and do all thy work:
TEXT,
"key_3238a9234abe3dcd02238d0d8b5c1fb5" => <<<TEXT
But the seventh day is the sabbath of the Lord thy God:
TEXT,
"key_8381b742e34b685e1a0cfb81867efb98" => <<<TEXT
in it thou shalt not do any work, thou, nor thy son,
TEXT,
"key_730695692e7cfd2b1470e572af9d8644" => <<<TEXT
nor thy daughter, thy manservant, nor thy maidservant,
TEXT,
"key_a6c36c16f68a094a27ae3e2177911d6c" => <<<TEXT
nor thy cattle, nor thy stranger that is within thy gates:
TEXT,
"key_236abf8e864840c6277606a1254e7b35" => <<<TEXT
For in six days the Lord made heaven and earth,
TEXT,
"key_346637a025ad4a8655361a22322999bc" => <<<TEXT
the sea, and all that in them is, and rested the seventh day:
TEXT,
"key_ec75f0ccfa23369829f182a6a3cb0e31" => <<<TEXT
wherefore the Lord blessed the sabbath day, and hallowed it.
TEXT,
];
// Replace this line:
// 'locale' => env('APP_LOCALE', 'en'),
// With this:
'locale' => 'es', // or any language you choose
protected $signature = 'translate:file
{--lang=en : The target language for translations}
{--input= : Path to the Blade or HTML file to process}
{--output= : Path to the translation file to generate}
{--force : Overwrite the input file with translated text if Blade directives are already commented}';