Configuration parameters

Parameter information can be configured inside the bean.php

return [
    'i18n'   => [
        'resourcePath' => '@resource/language/',
    ],
];
  • ResourcePath Configuration Language file type
  • DefualtCategory Configuration language file default name, default default is default.php file
  • The defaultLanguage configuration is the language by default, and the default isen

Language files

A language file is a PHP file, but to return an array and the array value is in KV format, it is easy to use. The following configuration formats

|-- zh
    |-- default.php
    |-- msg.php
`-- en
    |-- default.php
    |-- msg.php

The contents of the document are as follows:

// en/default.php
return [
    'name' => 'name {name}'
];

// en/msg.php
return [
    'name' => 'msg name {name}',
];

// zh/default.php
return [
    'name' => '名称 {name}'
];

// zh/msg.php
return [
    'name' => '消息名称 {name}'
];
/docs/2.x/en/i18n/setting.html
progress-bar