Переглянути джерело

locales: remove unused plural forms for zh_CN

Renée Kooi 4 роки тому
батько
коміт
b13d91effb
1 змінених файлів з 14 додано та 54 видалено
  1. 14 54
      packages/@uppy/locales/src/zh_CN.js

+ 14 - 54
packages/@uppy/locales/src/zh_CN.js

@@ -1,10 +1,7 @@
 const zh_CN = {}
 
 zh_CN.strings = {
-  addBulkFilesFailed: {
-    '0': '内部错误导致添加 %{smart_count} 个文件失败',
-    '1': '内部错误导致添加 %{smart_count} 个文件失败'
-  },
+  addBulkFilesFailed: '内部错误导致添加 %{smart_count} 个文件失败',
   addMore: '添加更多文件',
   addMoreFiles: '添加更多文件',
   addingMoreFiles: '添加更多文件',
@@ -51,16 +48,10 @@ zh_CN.strings = {
   failedToFetch: 'Companion 无法抓取此链接,请确保它是正确的',
   failedToUpload: '上传 %{file} 失败',
   fileSource: '文件源:%{name}',
-  filesUploadedOfTotal: {
-    '0': '已上传 %{smart_count} 个文件中的 %{complete} 个',
-    '1': '已上传 %{smart_count} 个文件中的 %{complete} 个'
-  },
+  filesUploadedOfTotal: '已上传 %{smart_count} 个文件中的 %{complete} 个',
   filter: '筛选器',
   finishEditingFile: '完成文件编辑',
-  folderAdded: {
-    '0': '从 %{folder} 添加了 %{smart_count} 个文件',
-    '1': '从 %{folder} 添加了 %{smart_count} 个文件'
-  },
+  folderAdded: '从 %{folder} 添加了 %{smart_count} 个文件',
   generatingThumbnails: '正在生成缩略图…',
   import: '导入',
   importFrom: '从 %{name} 导入',
@@ -80,10 +71,7 @@ zh_CN.strings = {
   paused: '已暂停',
   poweredBy: '强力驱动于',
   poweredBy2: '%{backwardsCompat} %{uppy}',
-  processingXFiles: {
-    '0': '正在处理 %{smart_count} 个文件',
-    '1': '正在处理 %{smart_count} 个文件'
-  },
+  processingXFiles: '正在处理 %{smart_count} 个文件',
   recording: '正在录制',
   recordingLength: '录制长度 %{recording_length}',
   recordingStoppedMaxSize: '录像已停止,文件大小即将超过限制',
@@ -96,10 +84,7 @@ zh_CN.strings = {
   saveChanges: '保存变更',
   selectAllFilesFromFolderNamed: '从文件夹中选择所有文件 %{name}',
   selectFileNamed: '选择文件 %{name}',
-  selectX: {
-    '0': '选择 %{smart_count}',
-    '1': '选择 %{smart_count}'
-  },
+  selectX: '选择 %{smart_count}',
   smile: '笑一笑!',
   startCapturing: '开始屏幕录制',
   startRecording: '开始视频录制',
@@ -116,45 +101,20 @@ zh_CN.strings = {
   uploadComplete: '上传完成',
   uploadFailed: '上传失败',
   uploadPaused: '上传暂停',
-  uploadXFiles: {
-    '0': '上传 %{smart_count} 个文件',
-    '1': '上传 %{smart_count} 个文件'
-  },
-  uploadXNewFiles: {
-    '0': '新上传了 %{smart_count} 个文件',
-    '1': '新上传了 %{smart_count} 个文件'
-  },
+  uploadXFiles: '上传 %{smart_count} 个文件',
+  uploadXNewFiles: '新上传了 %{smart_count} 个文件',
   uploading: '正在上传',
-  uploadingXFiles: {
-    '0': '正在上传 %{smart_count} 个文件',
-    '1': '正在上传 %{smart_count} 个文件'
-  },
-  xFilesSelected: {
-    '0': '%{smart_count} 个文件待上传',
-    '1': '%{smart_count} 个文件待上传'
-  },
-  xMoreFilesAdded: {
-    '0': '又有 %{smart_count} 个文件被添加',
-    '1': '又有 %{smart_count} 个文件被添加'
-  },
+  uploadingXFiles: '正在上传 %{smart_count} 个文件',
+  xFilesSelected: '%{smart_count} 个文件待上传',
+  xMoreFilesAdded: '又有 %{smart_count} 个文件被添加',
   xTimeLeft: '剩余 %{time}',
   youCanOnlyUploadFileTypes: '您只能上传这些文件类型:%{types}',
-  youCanOnlyUploadX: {
-    '0': '您只能上传 %{smart_count} 个文件',
-    '1': '您只能上传 %{smart_count} 个文件'
-  },
-  youHaveToAtLeastSelectX: {
-    '0': '您至少要选择 %{smart_count} 个文件',
-    '1': '您至少要选择 %{smart_count} 个文件'
-  }
+  youCanOnlyUploadX: '您只能上传 %{smart_count} 个文件',
+  youHaveToAtLeastSelectX: '您至少要选择 %{smart_count} 个文件'
 }
 
-zh_CN.pluralize = function (n) {
-  if (n === 1) {
-    return 0
-  }
-  return 1
-}
+// There is just one form.
+zh_CN.pluralize = function (n) { return 0 }
 
 if (typeof window !== 'undefined' && typeof window.Uppy !== 'undefined') {
   window.Uppy.locales.zh_CN = zh_CN