summary refs log tree commit diff
path: root/api/locales/zh
diff options
context:
space:
mode:
Diffstat (limited to 'api/locales/zh')
-rw-r--r--api/locales/zh/auth.json16
-rw-r--r--api/locales/zh/common.json18
-rw-r--r--api/locales/zh/zh18
3 files changed, 52 insertions, 0 deletions
diff --git a/api/locales/zh/auth.json b/api/locales/zh/auth.json
new file mode 100644
index 00000000..b802ba22
--- /dev/null
+++ b/api/locales/zh/auth.json
@@ -0,0 +1,16 @@
+{
+	"login": {
+		"INVALID_LOGIN": "找不到電子郵件或電話",
+		"INVALID_PASSWORD": "無效的密碼",
+		"ACCOUNT_DISABLED": "This account is disabled"
+	},
+	"register": {
+		"REGISTRATION_DISABLED": "新用戶註冊已禁用",
+		"INVITE_ONLY": "必須邀請您才能註冊",
+		"EMAIL_INVALID": "無效電子郵件",
+		"EMAIL_ALREADY_REGISTERED": "該電郵地址已註冊",
+		"DATE_OF_BIRTH_UNDERAGE": "您必須年滿 {{years}} 歲",
+		"CONSENT_REQUIRED": "您必須同意服務條款和隱私政策。",
+		"USERNAME_TOO_MANY_USERS": "此用戶名太多,請嘗試使用其他用戶名"
+	}
+}
diff --git a/api/locales/zh/common.json b/api/locales/zh/common.json
new file mode 100644
index 00000000..a9e8532e
--- /dev/null
+++ b/api/locales/zh/common.json
@@ -0,0 +1,18 @@
+{
+  "field": {
+    "BASE_TYPE_REQUIRED": "此字段是必填项",
+    "BASE_TYPE_STRING": "此字段必须是字符串",
+    "BASE_TYPE_NUMBER": "此字段必须是一个数字",
+    "BASE_TYPE_BIGINT": "此字段必须是很大的",
+    "BASE_TYPE_BOOLEAN": "此字段必须是布尔值",
+    "BASE_TYPE_CHOICES": "此字段必须是 ({{types}})",
+    "BASE_TYPE_CLASS": "此字段必须是 {{type}} 的实例",
+    "BASE_TYPE_OBJECT": "此字段必须是对象",
+    "BASE_TYPE_ARRAY": "此字段必须是一个数组",
+    "UNKOWN_FIELD": "未知密钥: {{key}}",
+    "BASE_TYPE_CONSTANT": "此字段必须是 {{value}}",
+    "EMAIL_TYPE_INVALID_EMAIL": "格式不正确的电子邮件地址",
+    "DATE_TYPE_PARSE": "无法解析 {{date}}。应该为 ISO8601",
+    "BASE_TYPE_BAD_LENGTH": "长度必须介于 {{length}} 之间"
+  }
+}
\ No newline at end of file
diff --git a/api/locales/zh/zh b/api/locales/zh/zh
new file mode 100644
index 00000000..7a0254fc
--- /dev/null
+++ b/api/locales/zh/zh
@@ -0,0 +1,18 @@
+{
+  "field": {
+    "BASE_TYPE_REQUIRED": "This field is required",
+    "BASE_TYPE_STRING": "This field must be a string",
+    "BASE_TYPE_NUMBER": "This field must be a number",
+    "BASE_TYPE_BIGINT": "This field must be a bigint",
+    "BASE_TYPE_BOOLEAN": "This field must be a boolean",
+    "BASE_TYPE_CHOICES": "This field must be one of ({{types}})",
+    "BASE_TYPE_CLASS": "This field must be an instance of {{type}}",
+    "BASE_TYPE_OBJECT": "This field must be a object",
+    "BASE_TYPE_ARRAY": "This field must be an array",
+    "UNKOWN_FIELD": "Unkown key: {{key}}",
+    "BASE_TYPE_CONSTANT": "This field must be {{value}}",
+    "EMAIL_TYPE_INVALID_EMAIL": "Not a well formed email address",
+    "DATE_TYPE_PARSE": "Could not parse {{date}}. Should be ISO8601",
+    "BASE_TYPE_BAD_LENGTH": "Must be between {{length}} in length"
+  }
+}
\ No newline at end of file