From 6ac6b889e9647b403185a7967e586c04602bb14d Mon Sep 17 00:00:00 2001 From: greatghoul Date: Sat, 26 Jan 2019 22:04:17 +0800 Subject: [PATCH] Add Simplified Chinese locale --- lib/file_validators/locale/zh-CN.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/file_validators/locale/zh-CN.yml diff --git a/lib/file_validators/locale/zh-CN.yml b/lib/file_validators/locale/zh-CN.yml new file mode 100644 index 0000000..2f59d56 --- /dev/null +++ b/lib/file_validators/locale/zh-CN.yml @@ -0,0 +1,10 @@ +zh-CN: + errors: + messages: + file_size_is_in: 文件大小必须在 %{min} 和 %{max} 之间 + file_size_is_less_than: 文件必须小于 %{count}' + file_size_is_less_than_or_equal_to: 文件不能大于 %{count} + file_size_is_greater_than: 文件必须大于 %{count} + file_size_is_greater_than_or_equal_to: 文件不能小于 %{count} + allowed_file_content_types: 文件必须是以下格式 %{types} + excluded_file_content_types: 文件格式不能是 %{types}