translation

This commit is contained in:
2026-03-06 02:31:40 +08:00
parent 70c4966aad
commit 8704434c36
29 changed files with 113 additions and 20 deletions
+2 -2
View File
@@ -63,10 +63,10 @@ class Language extends Command
return 0;
}
function write2file($data=[]){
$langs = ['zh','en'];
$langs = ['zh-Hans','en'];
foreach($data as $fn=>$arr){
foreach($langs as $lang){
$lang_path = base_path().'/resource/translations/'.$lang.'/';
$lang_path = base_path('/resource/translations/'.$lang.'/');
$_common_arr = require($lang_path.'common.php');
$_arr = [];
if(file_exists($lang_path.$fn)){