From fb85c4dfbd691afd5c8570d1606704bca0cb47c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=9C=9D=E6=99=96?= Date: Thu, 16 Jan 2020 14:31:55 +0800 Subject: [PATCH] Update constants.md --- doc/zh-cn/constants.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/zh-cn/constants.md b/doc/zh-cn/constants.md index 2e87f38fc..525ff359b 100644 --- a/doc/zh-cn/constants.md +++ b/doc/zh-cn/constants.md @@ -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 ```