First Commit
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
$langs = ['pt_BR', 'en', 'es'];
|
||||
foreach ($langs as $lang) {
|
||||
$file = "/app/lang/$lang/messages.php";
|
||||
if (file_exists($file)) {
|
||||
$translations = include $file;
|
||||
$json = json_encode($translations, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
|
||||
file_put_contents("/app/lang/$lang.json", $json);
|
||||
echo "Fixed $lang.json with " . count($translations) . " translations" . PHP_EOL;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user