Ver Fonte

默认语言zh-Hans

visuddhinanda há 2 anos atrás
pai
commit
4f32fbd705
1 ficheiros alterados com 4 adições e 2 exclusões
  1. 4 2
      app/Http/Api/MdRender.php

+ 4 - 2
app/Http/Api/MdRender.php

@@ -27,7 +27,7 @@ class MdRender{
         'format'=>'react',
         'debug'=>[],
         'studioId'=>null,
-        'lang'=>'en',
+        'lang'=>'zh-Hans',
         ];
 
     public function __construct($options=[])
@@ -273,7 +273,9 @@ class MdRender{
                                         $this->options['mode'],
                                         $this->options['format'],
                                         $this->options['studioId'],
-                                        $this->options['debug']);
+                                        $this->options['debug'],
+                                        $this->options['lang'],
+                                    );
 
             $tplProps = $tplRender->render($tpl_name);
             if($this->options['format']==='react' && $tplProps){