translation
This commit is contained in:
@@ -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)){
|
||||
|
||||
Reference in New Issue
Block a user