Update constants.md

This commit is contained in:
黄朝晖 2020-01-16 14:31:55 +08:00 committed by GitHub
parent 0829af06e9
commit fb85c4dfbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
```