Sfoglia il codice sorgente

feat: NG-15: 新会员注册时增加国家与语言选项.

zhangl 2 anni fa
parent
commit
754686525e
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      common/config/main.php

+ 2 - 0
common/config/main.php

@@ -96,6 +96,7 @@ return [
                         'app' => 'app.php',
                         'app' => 'app.php',
                         'app/error' => 'error.php',
                         'app/error' => 'error.php',
                     ],
                     ],
+                    'forceTranslation' => true,
                 ],
                 ],
                 'ctx*' => [
                 'ctx*' => [
                     'class' => 'yii\i18n\PhpMessageSource',
                     'class' => 'yii\i18n\PhpMessageSource',
@@ -105,6 +106,7 @@ return [
                         'ctx' => 'ctx.php',
                         'ctx' => 'ctx.php',
                         'ctx/error' => 'error.php',
                         'ctx/error' => 'error.php',
                     ],
                     ],
+                    'forceTranslation' => true,
                 ],
                 ],
             ],
             ],
         ],
         ],