Files
payload/src/translations/zh.json
Alessio Gravili 8f086e315c feat: hasMany for number field (#2517)
* added custom config extension points

* Added custom field to documentation

* fix: not building due to incorrect typings

* Upload dist

* point to number array test

* feat: hasMany for number field

* fix: types

* Fix: incorrectly styles input for hasMany

* Revert "point to number array test"

This reverts commit 5a5162a803.

* Revert "Merge branch 'production-with-custom' into number-hasmany-v2"

This reverts commit dfc3ac523e, reversing
changes made to a3b1b7dd67.

* test: adds test for numbers with hasMany

* test: add number field e2e

* Fix updated index.tsx

* Fix updated index.tsx

* chore: add jsDocs for hasMany property

* chore: rename isMultiText to isCreatable, as it makes more sense

* fix: incorrect double space in comments

* chore: rename onMultiTextChange to handleHasManyChange

* chore: improve ordering

* docs: add documentation for hasMany

* docs: add more jsdocs for number field

* fix: new value not transformed to number

* improve types

* fix: only allow numbers as input using filterOption

* fix: Option / value type breaking sortable selects

* fix: typings and add id for sorting

* add animation to react select

* undo transitions due to glitches

* fix: keyboard handler for select for empty input values

* fix: validation for hasMany numbers

* feat: perform validation in the filter as well

* attempt to fix duplicate key issue

* add todo

* remove console logs

* fix: stupid key warning

* fix: validation tests

* feat: add filterOption to keydown listener

* feat: numberOnly for react-select

* chore: improve variable naming

* fix: allow numbers for relationship value by stringifying those for sortable react-selects

* feat: generated types for hasMany number field

* graphql typings part 1

* graphql defaults type

* better typing for number in buildObjectType

* fix: default graphql type disregarding hasMany for relationship field

* feat: minRows and maxRows for hasMany numbers

* simplify joi schema

* working minRows and maxRows validation!

* jesus christ: fix incorrect translations for number & relationship fields for greaterThanMax and lessThanMin

* fix weird type error

* move validation tests to validations.spec.ts and fix them

* fix: make sure filterOption only passes a number array to validate function

* fix: adds missing dark-mode styles for version differences view (#2812)

Co-authored-by: Tylan Davis <tylan@Tylans-MacBook-Pro.local>

* fix: #2821 i18n ui field label (#2823)

* chore: version diff styles (#2824)

Co-authored-by: Tylan Davis <tylan@Tylans-MacBook-Pro.local>

* chore: remove --legacy-peer-deps from gh actions workflow (#2814)

* chore: removes cms text from instances of payload name (#2793)

* chore(release): v1.9.2

* chore: update changelog release notes v1.9.2

* chore: cleans up graphql-schema-gen test folder

* fix: adds custom property to ui field in joi validation (#2835)

* adjust validation

* improve isnumber function

* Update number.mdx

---------

Co-authored-by: Teun Mooij <tmooij@infinitaslearning.com>
Co-authored-by: Dan Ribbens <dan.ribbens@gmail.com>
Co-authored-by: Tylan Davis <89618855+tylandavis@users.noreply.github.com>
Co-authored-by: Tylan Davis <tylan@Tylans-MacBook-Pro.local>
Co-authored-by: Dan Ribbens <DanRibbens@users.noreply.github.com>
Co-authored-by: Jacob Fletcher <jacobsfletch@gmail.com>
Co-authored-by: Jarrod Flesch <jarrodmflesch@gmail.com>
Co-authored-by: Jarrod Flesch <30633324+JarrodMFlesch@users.noreply.github.com>
2023-06-20 20:21:27 +02:00

346 lines
16 KiB
JSON

{
"$schema": "./translation-schema.json",
"authentication": {
"account": "帐户",
"accountOfCurrentUser": "当前用户的帐户",
"alreadyActivated": "已经激活了",
"alreadyLoggedIn": "已经登入了",
"apiKey": "API密钥",
"backToLogin": "回到登录页面",
"beginCreateFirstUser": "首先,请创建您的第一个用户。",
"changePassword": "更改密码",
"checkYourEmailForPasswordReset": "请查看您的电子邮件,以取得安全重置密码的链接。",
"confirmGeneration": "确认生成",
"confirmPassword": "确认密码",
"createFirstUser": "创建第一个用户",
"emailNotValid": "所提供的电子邮件时无效的",
"emailSent": "电子邮件已发送",
"enableAPIKey": "启用API密钥",
"failedToUnlock": "解锁失败",
"forceUnlock": "强制解锁",
"forgotPassword": "忘记密码",
"forgotPasswordEmailInstructions": "请在下方输入您的电子邮件。您将会收到一封有关如何重置密码说明的电子邮件。",
"forgotPasswordQuestion": "忘记密码?",
"generate": "生成",
"generateNewAPIKey": "生成新的API密钥",
"generatingNewAPIKeyWillInvalidate": "生成新的API密钥将使之前的密钥<1>失效</1>。您确定要继续吗?",
"lockUntil": "锁定至",
"logBackIn": "重新登入",
"logOut": "登出",
"loggedIn": "要使用另一个用户登录前,您需要先<0>登出</0>。",
"loggedInChangePassword": "要更改您的密码,请到您的<0>帐户</0>页面并在那里编辑您的密码。",
"loggedOutInactivity": "您由于不活跃而被登出了。",
"loggedOutSuccessfully": "您已成功登出。",
"login": "登录",
"loginAttempts": "登录次数",
"loginUser": "登录用户",
"loginWithAnotherUser": "要使用另一个用户登录前,您需要先<0>登出</0>。",
"logout": "登出",
"logoutUser": "登出用户",
"newAPIKeyGenerated": "新的API密钥已经生成。",
"newAccountCreated": "刚刚为您创建了一个可以访问 <a href=\"{{serverURL}}\">{{serverURL}}</a> 的新帐户 请点击以下链接或在浏览器中粘贴以下网址,以验证您的电子邮件: <a href=\"{{verificationURL}}\">{{verificationURL}}</a><br> 验证您的电子邮件后,您将能够成功登录。",
"newPassword": "新的密码",
"resetPassword": "重置密码",
"resetPasswordExpiration": "重置密码的有效期",
"resetPasswordToken": "重置密码令牌",
"resetYourPassword": "重置您的密码",
"stayLoggedIn": "保持登录状态",
"successfullyUnlocked": "已成功解锁",
"unableToVerify": "无法验证",
"verified": "已验证",
"verifiedSuccessfully": "成功验证",
"verify": "验证",
"verifyUser": "验证用户",
"verifyYourEmail": "验证您的电子邮件",
"youAreInactive": "您已经有一段时间没有活动了,为了您的安全,很快就会自动登出。您想保持登录状态吗?",
"youAreReceivingResetPassword": "您收到此邮件是因为您(或其他人)已请求重置您帐户的密码。请点击以下链接,或将其粘贴到您的浏览器中以完成该过程:",
"youDidNotRequestPassword": "如果您没有要求这样做,请忽略这封邮件,您的密码将保持不变。"
},
"error": {
"accountAlreadyActivated": "该帐户已被激活。",
"autosaving": "自动保存该文件时出现了问题。",
"correctInvalidFields": "请更正无效字段。",
"deletingFile": "删除文件时出现了错误。",
"deletingTitle": "删除{{title}}时出现了错误。请检查您的连接并重试。",
"emailOrPasswordIncorrect": "提供的电子邮件或密码不正确。",
"followingFieldsInvalid_many": "以下字段是无效的:",
"followingFieldsInvalid_one": "下面的字段是无效的:",
"incorrectCollection": "不正确的集合",
"invalidFileType": "无效的文件类型",
"invalidFileTypeValue": "无效的文件类型: {{value}}",
"loadingDocument": "加载ID为{{id}}的文件时出现了问题。",
"missingEmail": "缺少电子邮件。",
"missingIDOfDocument": "缺少需要更新的文档的ID。",
"missingIDOfVersion": "缺少版本的ID。",
"missingRequiredData": "缺少必要的数据。",
"noFilesUploaded": "没有上传文件。",
"noMatchedField": "找不到与\"{{label}}\"匹配的字段",
"noUser": "没有该用户",
"notAllowedToAccessPage": "您无权访问此页面。",
"notAllowedToPerformAction": "您不被允许执行此操作。",
"notFound": "没有找到请求的资源。",
"previewing": "预览文件时出现了问题。",
"problemUploadingFile": "上传文件时出现了问题。",
"tokenInvalidOrExpired": "令牌无效或已过期。",
"unPublishingDocument": "取消发布此文件时出现了问题。",
"unableToDeleteCount": "无法从 {{total}} {{label}} 中删除 {{count}}。",
"unableToUpdateCount": "无法更新 {{count}} 个,共 {{total}} 个 {{label}}。",
"unauthorized": "未经授权,您必须登录才能提出这个请求。",
"unknown": "发生了一个未知的错误。",
"unspecific": "发生了一个错误。",
"userLocked": "该用户由于有太多次失败的登录尝试而被锁定。",
"valueMustBeUnique": "值必须是唯一的",
"verificationTokenInvalid": "验证令牌无效。"
},
"fields": {
"addLabel": "添加{{label}}",
"addLink": "添加链接",
"addNew": "添加新的",
"addNewLabel": "添加新的{{label}}",
"addRelationship": "添加关系",
"addUpload": "添加上传",
"block": "区块",
"blockType": "区块类型",
"blocks": "区块",
"chooseBetweenCustomTextOrDocument": "选择输入一个自定义的文本URL或链接到另一个文档。",
"chooseDocumentToLink": "选择一个要链接的文档",
"chooseFromExisting": "从现有中选择",
"chooseLabel": "选择{{label}}",
"collapseAll": "全部折叠",
"customURL": "自定义URL",
"editLabelData": "编辑{{label}}数据",
"editLink": "编辑链接",
"editRelationship": "编辑关系",
"enterURL": "输入一个URL",
"internalLink": "内部链接",
"itemsAndMore": "{{items}}和{{count}}更多",
"labelRelationship": "{{label}}关系",
"latitude": "纬度",
"linkType": "链接类型",
"linkedTo": "链接到<0>{{label}}</0>",
"longitude": "经度",
"newLabel": "新的{{label}}",
"openInNewTab": "在新标签中打开",
"passwordsDoNotMatch": "密码不匹配。",
"relatedDocument": "相关文件",
"relationTo": "关系到",
"removeRelationship": "移除关系",
"removeUpload": "移除上传",
"saveChanges": "保存更改",
"searchForBlock": "搜索一个区块",
"selectExistingLabel": "选择现有的{{label}}",
"selectFieldsToEdit": "选择要编辑的字段",
"showAll": "显示全部",
"swapRelationship": "交换关系",
"swapUpload": "交换上传",
"textToDisplay": "要显示的文本",
"toggleBlock": "切换块",
"uploadNewLabel": "上传新的{{label}}"
},
"general": {
"aboutToDelete": "您即将删除{{label}} <1>{{title}}</1>。您确定要继续吗?",
"aboutToDeleteCount_many": "您即将删除 {{count}} {{label}}",
"aboutToDeleteCount_one": "您即将删除 {{count}} {{label}}",
"aboutToDeleteCount_other": "您即将删除 {{count}} {{label}}",
"addBelow": "添加到下面",
"addFilter": "添加过滤器",
"adminTheme": "管理页面主题",
"and": "和",
"ascending": "升序",
"automatic": "自动",
"backToDashboard": "返回到仪表板",
"cancel": "取消",
"changesNotSaved": "您的更改尚未保存。您确定要离开吗?",
"close": "关闭",
"collections": "集合",
"columnToSort": "要排序的列",
"columns": "列",
"confirm": "确认",
"confirmDeletion": "确认删除",
"confirmDuplication": "确认重复",
"copied": "已复制",
"copy": "复制",
"create": "创建",
"createNew": "创建新的",
"createNewLabel": "创建新的{{label}}",
"created": "已创建",
"createdAt": "创建于",
"creating": "创建中",
"dark": "深色",
"dashboard": "仪表板",
"delete": "删除",
"deletedCountSuccessfully": "已成功删除 {{count}} {{label}}。",
"deletedSuccessfully": "已成功删除。",
"deleting": "删除中...",
"descending": "降序",
"duplicate": "重复",
"duplicateWithoutSaving": "重复而不保存更改。",
"edit": "编辑",
"editLabel": "编辑{{label}}",
"editing": "编辑中",
"editingLabel_many": "编辑 {{count}} {{label}}",
"editingLabel_one": "编辑 {{count}} {{label}}",
"editingLabel_other": "编辑 {{count}} {{label}}",
"email": "电子邮件",
"emailAddress": "电子邮件地址",
"enterAValue": "输入一个值",
"fallbackToDefaultLocale": "回退到默认语言环境",
"filter": "过滤器",
"filterWhere": "过滤{{label}}",
"filters": "过滤器",
"globals": "全局",
"language": "语言",
"lastModified": "最后修改",
"leaveAnyway": "无论如何都要离开",
"leaveWithoutSaving": "离开而不保存",
"light": "亮色",
"loading": "加载中...",
"locales": "语言环境",
"moveDown": "向下移动",
"moveUp": "向上移动",
"newPassword": "新密码",
"noFiltersSet": "没有设置过滤器",
"noLabel": "<没有{{label}}>",
"noResults": "没有找到{{label}}。{{label}}并不存在或没有符合您上面所指定的过滤器。",
"noValue": "没有值",
"none": "无",
"notFound": "未找到",
"nothingFound": "没有找到任何东西",
"of": "的",
"or": "或",
"order": "排序",
"pageNotFound": "未找到页面",
"password": "密码",
"payloadSettings": "Payload设置",
"perPage": "每一页: {{limit}}",
"remove": "移除",
"row": "行",
"rows": "行",
"save": "保存",
"saving": "保存中...",
"searchBy": "搜索{{label}}",
"selectAll": "选择所有 {{count}} {{label}}",
"selectValue": "选择一个值",
"selectedCount": "已选择 {{count}} {{label}}",
"sorryNotFound": "对不起,没有与您的请求相对应的东西。",
"sort": "排序",
"stayOnThisPage": "停留在此页面",
"submissionSuccessful": "提交成功。",
"submit": "提交",
"successfullyCreated": "成功创建{{label}}",
"successfullyDuplicated": "成功复制{{label}}",
"thisLanguage": "Chinese",
"titleDeleted": "{{label}} \"{{title}}\"已被成功删除。",
"unauthorized": "未经授权",
"unsavedChangesDuplicate": "您有未保存的修改。您确定要继续重复吗?",
"untitled": "无标题",
"updatedAt": "更新于",
"updatedCountSuccessfully": "已成功更新 {{count}} {{label}}。",
"updatedSuccessfully": "更新成功。",
"user": "用户",
"users": "用户",
"value": "值",
"welcome": "欢迎"
},
"operators": {
"contains": "包含",
"equals": "等于",
"exists": "存在",
"isGreaterThan": "大于",
"isGreaterThanOrEqualTo": "大于等于",
"isIn": "在",
"isLessThan": "小于",
"isLessThanOrEqualTo": "小于或等于",
"isLike": "就像",
"isNotEqualTo": "不等于",
"isNotIn": "不在",
"near": "附近"
},
"upload": {
"dragAndDrop": "拖放一个文件",
"dragAndDropHere": "或在这里拖放一个文件",
"fileName": "文件名",
"fileSize": "文件大小",
"height": "高度",
"lessInfo": "更少信息",
"moreInfo": "更多信息",
"selectCollectionToBrowse": "选择一个要浏览的集合",
"selectFile": "选择一个文件",
"sizes": "尺寸",
"width": "宽度"
},
"validation": {
"emailAddress": "请输入一个有效的电子邮件地址。",
"enterNumber": "请输入一个有效的号码。",
"fieldHasNo": "这个字段没有{{label}}",
"greaterThanMax": "{{value}}超过了允许的最大{{label}},该最大值为{{max}}。",
"invalidInput": "这个字段有一个无效的输入。",
"invalidSelection": "这个字段有一个无效的选择。",
"invalidSelections": "这个字段有以下无效的选择:",
"lessThanMin": "{{value}}小于允许的最小{{label}},该最小值为{{min}}。",
"longerThanMin": "该值必须大于{{minLength}}字符的最小长度",
"notValidDate": "\"{{value}}\"不是一个有效的日期。",
"required": "该字段为必填项目。",
"requiresAtLeast": "该字段至少需要{{count}} {{label}}。",
"requiresNoMoreThan": "该字段要求不超过{{count}} {{label}。",
"requiresTwoNumbers": "该字段需要两个数字。",
"shorterThanMax": "该值必须小于{{maxLength}}字符的最大长度",
"trueOrFalse": "该字段只能等于真或伪。",
"validUploadID": "该字段不是有效的上传ID。"
},
"version": {
"aboutToPublishSelection": "您即将发布所选内容中的所有 {{label}}。 你确定吗?",
"aboutToRestore": "您将把这个{{label}}文档恢复到{{versionDate}}时的状态",
"aboutToRestoreGlobal": "您要将全局的{{label}}恢复到{{versionDate}}时的状态",
"aboutToRevertToPublished": "您将要把这个文档的内容还原到它的发布状态。您确定吗?",
"aboutToUnpublish": "你即将取消发布这个文档。你确定吗?",
"aboutToUnpublishSelection": "您即将取消发布所选内容中的所有 {{label}}。 你确定吗?",
"autosave": "自动保存",
"autosavedSuccessfully": "自动保存成功。",
"autosavedVersion": "自动保存的版本",
"changed": "已更改",
"compareVersion": "对比版本:",
"confirmPublish": "确认发布",
"confirmRevertToSaved": "确认恢复到保存状态",
"confirmUnpublish": "确认取消发布",
"confirmVersionRestoration": "确认版本恢复",
"currentDocumentStatus": "当前{{docStatus}}文件",
"draft": "草稿",
"draftSavedSuccessfully": "草稿成功保存。",
"lastSavedAgo": "最后一次保存{{distance, relativetime(minutes)}}",
"noFurtherVersionsFound": "没有发现其他版本",
"noRowsFound": "没有发现{{label}}",
"preview": "预览",
"problemRestoringVersion": "恢复这个版本时发生了问题",
"publish": "发布",
"publishChanges": "发布修改",
"published": "已发布",
"restoreThisVersion": "恢复此版本",
"restoredSuccessfully": "恢复成功。",
"restoring": "恢复中...",
"revertToPublished": "还原到已发布的版本",
"reverting": "还原中...",
"saveDraft": "保存草稿",
"selectLocales": "选择要显示的语言",
"selectVersionToCompare": "选择要比较的版本",
"showLocales": "显示语言:",
"showingVersionsFor": "显示版本为:",
"status": "状态",
"type": "类型",
"unpublish": "取消发布",
"unpublishing": "取消发布中...",
"version": "版本",
"versionCount_many": "发现{{count}}版本",
"versionCount_none": "没有发现任何版本",
"versionCount_one": "找到{{count}}版本",
"versionCount_other": "找到{{count}}版本",
"versionCreatedOn": "{{version}}创建于:",
"versionID": "版本ID",
"versions": "版本",
"viewingVersion": "正在查看{{entityLabel}} {{documentTitle}}的版本",
"viewingVersionGlobal": "正在查看全局{{entityLabel}}的版本",
"viewingVersions": "正在查看{{entityLabel}} {{documentTitle}}的版本",
"viewingVersionsGlobal": "正在查看全局{{entityLabel}}的版本"
}
}