First Commit

This commit is contained in:
marco
2026-09-01 07:49:48 -03:00
commit 28b1044038
399 changed files with 41659 additions and 0 deletions
Executable
+16
View File
@@ -0,0 +1,16 @@
<?php
$langs = ['pt_BR', 'en', 'es'];
foreach ($langs as $lang) {
$file = "/app/lang/$lang/auth.php";
if (file_exists($file)) {
$translations = include $file;
// Add auth. prefix to keys for JSON fallback
$jsonTranslations = [];
foreach ($translations as $key => $value) {
$jsonTranslations["auth.$key"] = $value;
}
$json = json_encode($jsonTranslations, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
file_put_contents("/app/lang/$lang.json", $json);
echo "Fixed $lang.json with auth-prefixed keys" . PHP_EOL;
}
}