Skip to content

Commit

Permalink
add Simplified Chinese language
Browse files Browse the repository at this point in the history
  • Loading branch information
CDN committed Mar 28, 2024
1 parent bd000e8 commit eb208f8
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/js/components/Factory/Settings/Options.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const languageOptions = ref([
{ label: "Slovak", value: "sk" },
{ label: "Français", value: "fr" },
{ label: "Norwegian", value: "no" },
{ label: "简体中文", value: "zh-CN"},
]);
const language = ref(
Expand Down
2 changes: 2 additions & 0 deletions resources/js/forms/classic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import localeEN from "@i18n/en.json";
import localeSK from "@i18n/sk.json";
import localeFR from "@i18n/fr.json";
import localeNO from "@i18n/no.json";
import localeZHCN from "@i18n/zh-CN.json";

const pinia = createPinia();

Expand All @@ -23,6 +24,7 @@ const i18n = createI18n({
sk: localeSK,
fr: localeFR,
no: localeNO,
zhCN: localeZHCN,
},
});

Expand Down
35 changes: 35 additions & 0 deletions resources/locales/zh-CN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"admin": {
"blocks": "没有内容块 | 1 内容块 | {n} 内容块"
},
"Accept & Submit": "接受并提交",
"Accept": "接受",
"Close": "关闭",
"Enter": "输入",
"Find us here": "在这里找到我们",
"Form Submitted": "表单已提交",
"Go to next Page": "前往下一页",
"Go to previous Page": "返回上一页",
"Legal Notice": "法律声明",
"Next": "下一步",
"Other": "其他",
"Please enter a valid email.": "请输入有效的邮箱。",
"Please enter a valid link.": "请输入有效的链接。",
"Please enter a valid number.": "请输入有效的数字。",
"Please enter a valid phone number.": "请输入有效的电话号码。",
"Please select an option.": "请选择一个选项。",
"Privacy Policy": "隐私政策",
"required": "必填",
"Something went wrong validating your input": "验证您的输入时出错",
"Submit": "提交",
"This field is required.": "此字段为必填项。",
"Type your answer": "输入您的答案",
"You have exceeded the maximum number of characters allowed.": "您已超过允许的最大字符数。",
"hints": {
"edit": "按 {0} 进行编辑",
"confirm": "按 {0} 确认"
},
"validation": {
"consent_required": "继续操作前,您必须同意条款和条件。"
}
}

0 comments on commit eb208f8

Please sign in to comment.