Merge pull request #15278 from ivan-ha/fix/zh-translations

fix: broken translations in EditFolderDialog and various zh translations in Media Library
This commit is contained in:
Gustav Hansen 2023-01-02 12:29:31 +01:00 committed by GitHub
commit 129d88cccc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 7 deletions

View File

@ -736,6 +736,7 @@
"global.finish": "完成",
"global.marketplace": "市集",
"global.name": "名稱",
"global.move": "移動",
"global.none": "無",
"global.password": "密碼",
"global.plugins": "外掛程式",

View File

@ -258,7 +258,7 @@ export const EditFolderDialog = ({ onClose, folder, location, parentFolderId })
disabled={!canUpdate || isEditFolderLoading}
>
{formatMessage({
id: 'modal.folder.create.delete',
id: getTrad('modal.folder.create.delete'),
defaultMessage: 'Delete folder',
})}
</Button>
@ -272,8 +272,8 @@ export const EditFolderDialog = ({ onClose, folder, location, parentFolderId })
>
{formatMessage(
isEditing
? { id: 'modal.folder.edit.submit', defaultMessage: 'Save' }
: { id: 'modal.folder.create.submit', defaultMessage: 'Create' }
? { id: getTrad('modal.folder.edit.submit'), defaultMessage: 'Save' }
: { id: getTrad('modal.folder.create.submit'), defaultMessage: 'Create' }
)}
</Button>
</Stack>

View File

@ -21,6 +21,9 @@
"form.input.label.file-alt": "預設顯示文字",
"form.input.label.file-caption": "標題",
"form.input.label.file-name": "檔案名稱",
"form.input.label.folder-location": "位置",
"form.input.label.file-location": "位置",
"form.input.label.folder-name": "資料夾名稱",
"form.upload-url.error.url.invalid": "連結不合法",
"form.upload-url.error.url.invalids": "{number} 個連結不合法",
"header.actions.add-assets": "新增素材",
@ -50,11 +53,11 @@
"list.assets.loading-asset": "正在載入媒體預覽:{path}",
"list.assets.not-supported-content": "無可用預覽",
"list.assets.preview-asset": "路徑為 {path} 的影片預覽",
"list.assets.selected": "{numberFolders, plural, one {1 folder} other {# folders}} - {numberAssets, plural, one {1 asset} other {# assets}}",
"list.assets.selected": "{numberFolders, plural, one {1個資料夾} other {#個資料夾}} - {numberAssets, plural, one {1個素材} other {#個素材}}",
"list.assets.type-not-allowed": "此檔案類型不合法",
"list.assets.to-upload": "{number, plural, =0 {No asset} one {1 asset} other {# assets}} ready to upload",
"list.assets.to-upload": "{number, plural, =0 {沒有} one {1 個} other {# 個}}素材準備上傳",
"list.folder.edit": "編輯資料夾",
"list.folder.subtitle": "{folderCount, plural, =0 {# folder} one {# folder} other {# folders}}, {filesCount, plural, =0 {# asset} one {# asset} other {# assets}}",
"list.folder.subtitle": "{folderCount, plural, =0 {# 資料夾} one {# 資料夾} other {# 資料夾}}, {filesCount, plural, =0 {# 素材} one {# 素材} other {# 素材}}",
"list.folders.title": "資料夾",
"mediaLibraryInput.actions.nextSlide": "下一張投影片",
"mediaLibraryInput.actions.previousSlide": "上一張投影片",
@ -72,6 +75,9 @@
"modal.header.select-files": "選取的檔案",
"modal.header.go-back": "返回",
"modal.folder.move.title": "移動元素至",
"modal.folder.create.title": "新增資料夾",
"modal.folder.create.submit": "新增",
"modal.folder.create.delete": "刪除",
"modal.nav.browse": "瀏覽",
"modal.nav.computer": "從本機",
"modal.nav.selected": "已選取",
@ -79,8 +85,9 @@
"modal.remove.success-label": "已成功刪除元素。",
"modal.move.success-label": "已成功移動元素",
"modal.selected-list.sub-header-subtitle": "於此欄位拖曳檔案排序清單",
"modal.upload-list.footer.button": "上傳 {number, plural, one {# asset} other {# assets}} 至媒體庫",
"modal.upload-list.footer.button": "上傳 {number, plural, one {# 個} other {# 個}}素材至媒體庫",
"modal.upload-list.sub-header-subtitle": "上傳到媒體庫前管理你的素材",
"modal.upload-list.sub-header.add-folder": "新增資料夾",
"modal.upload-list.sub-header.button": "新增更多素材",
"modal.upload.cancelled": "上傳遭手動中斷。",
"page.title": "設定 - 媒體庫",