mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-01 11:17:54 +08:00
Update constants.md
This commit is contained in:
parent
0829af06e9
commit
fb85c4dfbd
@ -145,6 +145,10 @@ $message = ErrorCode::getMessage(ErrorCode::PARAMS_INVALID, 'user_id');
|
|||||||
|
|
||||||
### 国际化
|
### 国际化
|
||||||
|
|
||||||
|
> 该功能仅在 v1.1.13 及往后的版本上可用
|
||||||
|
|
||||||
|
要使 [hyperf/constants](https://github.com/hyperf/constants) 组件支持国际化,就必须要安装 [hyperf/translation](https://github.com/hyperf/translation) 组件并配置好语言文件,如下:
|
||||||
|
|
||||||
```
|
```
|
||||||
composer require hyperf/translation
|
composer require hyperf/translation
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user