diff --git a/packages/core/upload/admin/src/pages/App/MediaLibrary/index.js b/packages/core/upload/admin/src/pages/App/MediaLibrary/index.js index 9664ebb756..2abdefac16 100644 --- a/packages/core/upload/admin/src/pages/App/MediaLibrary/index.js +++ b/packages/core/upload/admin/src/pages/App/MediaLibrary/index.js @@ -278,11 +278,11 @@ export const MediaLibrary = () => { label={ isGridView ? formatMessage({ - id: 'view-switch.list', + id: getTrad('view-switch.list'), defaultMessage: 'List View', }) : formatMessage({ - id: 'view-switch.grid', + id: getTrad('view-switch.grid'), defaultMessage: 'Grid View', }) } diff --git a/packages/core/upload/admin/src/translations/zh-Hans.json b/packages/core/upload/admin/src/translations/zh-Hans.json index 7d36f90d41..27b831f5a9 100644 --- a/packages/core/upload/admin/src/translations/zh-Hans.json +++ b/packages/core/upload/admin/src/translations/zh-Hans.json @@ -1,5 +1,6 @@ { "header.actions.add-assets": "添加新素材", + "header.actions.add-folder": "添加新文件夹", "button.next": "下一步", "checkControl.crop-duplicate": "复制裁剪素材", "checkControl.crop-original": "裁剪原始素材", @@ -17,6 +18,10 @@ "form.input.label.file-alt": "备用文本", "form.input.label.file-caption": "标题", "form.input.label.file-name": "文件名", + "form.input.label.file-location": "位置", + "form.input.label.folder-name": "文件夹名称", + "form.input.label.folder-location": "位置", + "form.input.label.folder-location-default-label": "媒体库", "form.upload-url.error.url.invalid": "有一个链接格式不合法", "form.upload-url.error.url.invalids": "{number}个链接格式不合法", "header.actions.upload-assets": "上传素材", @@ -37,6 +42,27 @@ "list.assets.preview-asset": "预览视频(路径:{path})", "list.assets.selected": "{number, plural, one {# 个素材} other {# 个素材}}准备上传", "list.assets.type-not-allowed": "文件类型不合法", + "list.table.header.actions": "操作", + "list.table.header.preview": "预览", + "list.table.header.name": "名称", + "list.table.header.ext": "扩展名", + "list.table.header.size": "大小", + "list.table.header.createdAt": "创建时间", + "list.table.header.updatedAt": "最后更新时间", + "list.table.header.sort": "按{label}排序", + "list.table.content.empty-label": "此字段为空", + "list.assets.title": "资源({count})", + "list.asset.at.finished": "资源已经加载完毕", + "list.assets-empty.search": "未找到结果", + "list.assets.empty-upload": "上传你的第一个资源...", + "list.assets.empty.no-permissions": "没有查看权限", + "list-assets-select": "选择{name}资源", + "list.assets.to-upload": "有{number, plural, =0 {没有资源} one {1个资源} other {#个资产}}可以上传", + "list.folder.edit": "编辑文件夹", + "list.folder.select": "选择{name}文件夹", + "list.folder.subtitle": "{folderCount, plural, =0 {#个文件夹} one {#个文件夹} other {#个文件夹}}, {filesCount, plural, =0 {#个资源} one {#个资源} other {#个资源}}", + "list.folders.title": "文件夹({count})", + "list.folders.link-label": "访问文件夹", "mediaLibraryInput.actions.nextSlide": "下一张幻灯片", "mediaLibraryInput.actions.previousSlide": "上一张幻灯片", "mediaLibraryInput.placeholder": "点击添加素材,或拖放一个素材到当前区域", @@ -45,6 +71,16 @@ "modal.file-details.dimensions": "尺寸", "modal.file-details.extension": "扩展名", "modal.file-details.size": "大小", + "modal.file-details.id": "资源ID", + "modal.folder.elements.count": "{folderCount}个文件夹,{assetCount}个资源", + "modal.folder.move.title": "将元素移动到", + "modal.remove.success-label": "元素已成功删除", + "modal.move.success-label": "元素已成功移动", + "modal.upload.cancelled": "手动上传已中止", + "modal.folder.create.title": "新增文件夹", + "modal.folder.create.submit": "新增", + "modal.folder.cancel": "取消", + "modal.header.go-back": "返回", "modal.header.browse": "上传素材", "modal.header.file-detail": "详情", "modal.header.pending-assets": "素材上传中", @@ -61,7 +97,10 @@ "plugin.description.long": "媒体文件管理", "plugin.description.short": "媒体文件管理", "plugin.name": "媒体库", + "settings.section.doc.label": "文档", "search.placeholder": "搜索素材...", + "search.clear.label": "清除搜索", + "search.label": "搜索资源", "settings.blockTitle": "资源管理", "settings.form.autoOrientation.description": "根据EXIF orientation标签自动旋转图像", "settings.form.autoOrientation.label": "开始自动旋转功能", @@ -83,5 +122,27 @@ "sort.updated_at_asc": "最早更新", "sort.updated_at_desc": "最近更新", "window.confirm.close-modal.file": "你确定吗?你的更改将会丢失", - "window.confirm.close-modal.files": "你确定吗?你还有一些文件还没有被上传" + "window.confirm.close-modal.files": "你确定吗?你还有一些文件还没有被上传", + "apiError.FileTooBig": "上传的文件超过允许的最大资源大小", + "upload.generic-error": "上传文件时发生错误", + "bulk.select.label": "选择所有资源", + "content.isLoading": "内容正在加载中", + "control-card.stop-crop": "停止裁剪", + "header.actions.add-assets.folder": "文件夹", + "header.actions.upload-new-asset": "上传新资源", + "header.content.assets-empty": "无资源", + "input.label": "拖拽到此处或", + "input.notification.not-supported": "您无法上传此类型的文件,仅接受以下类型 - {fileTypes}", + "permissions.not-allowed.update": "您无权编辑此文件", + "tabs.title": "您希望如何上传您的资源?", + "config.title": "配置视图 - 媒体库", + "config.back": "返回", + "config.subtitle": "定义媒体库的视图设置", + "config.entries.title": "每页条目数", + "config.sort.title": "默认排序顺序", + "config.entries.note": "媒体库中默认显示的资源数量", + "config.note": "注意:您可以在媒体库中覆盖此值", + "config.popUpWarning.warning.updateAllSettings": "这将修改您的所有设置", + "view-switch.list": "列表视图", + "view-switch.grid": "网格视图" }