📖Update zh, zh_CN translations (#1659)

pull/1657/head^2
Cierra_Runis 1 year ago committed by GitHub
parent f219465742
commit 8afe147678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      l10n.yaml
  2. 129
      lib/src/l10n/generated/quill_localizations_zh.dart
  3. 2
      lib/src/l10n/quill_en.arb
  4. 71
      lib/src/l10n/quill_zh.arb
  5. 34
      lib/src/l10n/quill_zh_CN.arb
  6. 32
      lib/src/l10n/untranslated.json
  7. 30
      pubspec.yaml

@ -7,4 +7,4 @@ synthetic-package: false
format: true format: true
untranslated-messages-file: lib/src/l10n/untranslated.json untranslated-messages-file: lib/src/l10n/untranslated.json
nullable-getter: true nullable-getter: true
suppress-warnings: false suppress-warnings: false

@ -8,7 +8,7 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations {
String get pasteLink => '粘贴链接'; String get pasteLink => '粘贴链接';
@override @override
String get ok => ''; String get ok => '';
@override @override
String get selectColor => '选择颜色'; String get selectColor => '选择颜色';
@ -38,7 +38,7 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations {
String get saved => '已保存'; String get saved => '已保存';
@override @override
String get text => ''; String get text => '';
@override @override
String get resize => '调整大小'; String get resize => '调整大小';
@ -50,16 +50,16 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations {
String get height => '高度'; String get height => '高度';
@override @override
String get size => '大小'; String get size => '文字大小';
@override @override
String get small => ''; String get small => '字号';
@override @override
String get large => ''; String get large => '字号';
@override @override
String get huge => '巨大'; String get huge => '超大字号';
@override @override
String get clear => '清除'; String get clear => '清除';
@ -71,10 +71,10 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations {
String get search => '搜索'; String get search => '搜索';
@override @override
String get camera => '相机'; String get camera => '拍照';
@override @override
String get video => '视频'; String get video => '录像';
@override @override
String get undo => '撤销'; String get undo => '撤销';
@ -83,13 +83,13 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations {
String get redo => '重做'; String get redo => '重做';
@override @override
String get fontFamily => '字体'; String get fontFamily => '字体';
@override @override
String get fontSize => '字号'; String get fontSize => '字号';
@override @override
String get bold => ''; String get bold => '';
@override @override
String get subscript => '下标'; String get subscript => '下标';
@ -107,7 +107,7 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations {
String get strikeThrough => '删除线'; String get strikeThrough => '删除线';
@override @override
String get inlineCode => '内代码'; String get inlineCode => '代码';
@override @override
String get fontColor => '字体颜色'; String get fontColor => '字体颜色';
@ -122,7 +122,7 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations {
String get alignLeft => '左对齐'; String get alignLeft => '左对齐';
@override @override
String get alignCenter => '居中'; String get alignCenter => '居中对齐';
@override @override
String get alignRight => '右对齐'; String get alignRight => '右对齐';
@ -137,40 +137,40 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations {
String get headerStyle => '标题样式'; String get headerStyle => '标题样式';
@override @override
String get normal => 'Normal'; String get normal => '正文';
@override @override
String get heading1 => 'Heading 1'; String get heading1 => '一级标题';
@override @override
String get heading2 => 'Heading 2'; String get heading2 => '二级标题';
@override @override
String get heading3 => 'Heading 3'; String get heading3 => '三级标题';
@override @override
String get heading4 => 'Heading 4'; String get heading4 => '四级标题';
@override @override
String get heading5 => 'Heading 5'; String get heading5 => '五级标题';
@override @override
String get heading6 => 'Heading 6'; String get heading6 => '六级标题';
@override @override
String get numberedList => '编号列表'; String get numberedList => '有序列表';
@override @override
String get bulletList => '项目符号列表'; String get bulletList => '无序列表';
@override @override
String get checkedList => '选中列表'; String get checkedList => '任务列表';
@override @override
String get codeBlock => '代码块'; String get codeBlock => '代码块';
@override @override
String get quote => ''; String get quote => '';
@override @override
String get increaseIndent => '增加缩进'; String get increaseIndent => '增加缩进';
@ -179,7 +179,7 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations {
String get decreaseIndent => '减少缩进'; String get decreaseIndent => '减少缩进';
@override @override
String get insertURL => '插入网址'; String get insertURL => '插入链接';
@override @override
String get visitLink => '访问链接'; String get visitLink => '访问链接';
@ -200,37 +200,37 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations {
String get hex => '十六进制'; String get hex => '十六进制';
@override @override
String get material => '素材'; String get material => 'Material 设计';
@override @override
String get color => '颜色'; String get color => '颜色';
@override @override
String get findText => '查找文本'; String get findText => '搜索文本';
@override @override
String get moveToPreviousOccurrence => '移到前一个匹配项'; String get moveToPreviousOccurrence => '一个匹配项';
@override @override
String get moveToNextOccurrence => '移到下一个匹配项'; String get moveToNextOccurrence => '下一个匹配项';
@override @override
String get savedUsingTheNetwork => '使用网络保存'; String get savedUsingTheNetwork => '通过网络保存';
@override @override
String get savedUsingLocalStorage => '使用本地存储保存'; String get savedUsingLocalStorage => '使用本地存储保存';
@override @override
String get errorWhileSavingImage => '保存图像时出错'; String get errorWhileSavingImage => '保存图像时发生错误';
@override @override
String get pleaseEnterTextForYourLink => "请输入链接文本(例'了解更多'"; String get pleaseEnterTextForYourLink => "如'了解更多'";
@override @override
String get pleaseEnterTheLinkURL => "请输入链接网址(例'https://example.com'"; String get pleaseEnterTheLinkURL => "如'https://example.com'";
@override @override
String get pleaseEnterAValidImageURL => '请输入有效的图像网址'; String get pleaseEnterAValidImageURL => '请输入有效的图像URL';
@override @override
String get pleaseEnterAValidVideoURL => '请输入有效的视频URL'; String get pleaseEnterAValidVideoURL => '请输入有效的视频URL';
@ -248,22 +248,22 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations {
String get insertImage => '插入图像'; String get insertImage => '插入图像';
@override @override
String get pickAPhotoFromYourGallery => 'Pick a photo from your gallery'; String get pickAPhotoFromYourGallery => '从相册选取图片';
@override @override
String get takeAPhotoUsingYourCamera => 'Take a photo using your camera'; String get takeAPhotoUsingYourCamera => '使用相机拍照';
@override @override
String get pasteAPhotoUsingALink => 'Paste a photo using a link'; String get pasteAPhotoUsingALink => '从链接获取图片';
@override @override
String get pickAVideoFromYourGallery => 'Pick a video from your gallery'; String get pickAVideoFromYourGallery => '从相册选取视频';
@override @override
String get recordAVideoUsingYourCamera => 'Record a video using your camera'; String get recordAVideoUsingYourCamera => '使用相机录制';
@override @override
String get pasteAVideoUsingALink => 'Paste a video using a link'; String get pasteAVideoUsingALink => '从链接获取视频';
} }
/// The translations for Chinese, as used in China (`zh_CN`). /// The translations for Chinese, as used in China (`zh_CN`).
@ -274,13 +274,13 @@ class FlutterQuillLocalizationsZhCn extends FlutterQuillLocalizationsZh {
String get pasteLink => '粘贴链接'; String get pasteLink => '粘贴链接';
@override @override
String get ok => ''; String get ok => '确认';
@override @override
String get selectColor => '选择颜色'; String get selectColor => '选择颜色';
@override @override
String get gallery => '簿'; String get gallery => '';
@override @override
String get link => '链接'; String get link => '链接';
@ -298,7 +298,7 @@ class FlutterQuillLocalizationsZhCn extends FlutterQuillLocalizationsZh {
String get save => '保存'; String get save => '保存';
@override @override
String get zoom => ''; String get zoom => '';
@override @override
String get saved => '已保存'; String get saved => '已保存';
@ -402,6 +402,27 @@ class FlutterQuillLocalizationsZhCn extends FlutterQuillLocalizationsZh {
@override @override
String get headerStyle => '标题样式'; String get headerStyle => '标题样式';
@override
String get normal => '正文';
@override
String get heading1 => '一级标题';
@override
String get heading2 => '二级标题';
@override
String get heading3 => '三级标题';
@override
String get heading4 => '四级标题';
@override
String get heading5 => '五级标题';
@override
String get heading6 => '六级标题';
@override @override
String get numberedList => '有序列表'; String get numberedList => '有序列表';
@ -445,7 +466,7 @@ class FlutterQuillLocalizationsZhCn extends FlutterQuillLocalizationsZh {
String get hex => '十六进制'; String get hex => '十六进制';
@override @override
String get material => '材料'; String get material => 'Material 设计';
@override @override
String get color => '颜色'; String get color => '颜色';
@ -469,10 +490,10 @@ class FlutterQuillLocalizationsZhCn extends FlutterQuillLocalizationsZh {
String get errorWhileSavingImage => '保存图像时发生错误'; String get errorWhileSavingImage => '保存图像时发生错误';
@override @override
String get pleaseEnterTextForYourLink => "'了解更多'"; String get pleaseEnterTextForYourLink => "如'了解更多'";
@override @override
String get pleaseEnterTheLinkURL => "'https://example.com'"; String get pleaseEnterTheLinkURL => "如'https://example.com'";
@override @override
String get pleaseEnterAValidImageURL => '请输入有效的图像URL'; String get pleaseEnterAValidImageURL => '请输入有效的图像URL';
@ -491,6 +512,24 @@ class FlutterQuillLocalizationsZhCn extends FlutterQuillLocalizationsZh {
@override @override
String get insertImage => '插入图像'; String get insertImage => '插入图像';
@override
String get pickAPhotoFromYourGallery => '从相册选取图片';
@override
String get takeAPhotoUsingYourCamera => '使用相机拍照';
@override
String get pasteAPhotoUsingALink => '从链接获取图片';
@override
String get pickAVideoFromYourGallery => '从相册选取视频';
@override
String get recordAVideoUsingYourCamera => '使用相机录制';
@override
String get pasteAVideoUsingALink => '从链接获取视频';
} }
/// The translations for Chinese, as used in Hong Kong (`zh_HK`). /// The translations for Chinese, as used in Hong Kong (`zh_HK`).

@ -87,4 +87,4 @@
"pickAVideoFromYourGallery": "Pick a video from your gallery", "pickAVideoFromYourGallery": "Pick a video from your gallery",
"recordAVideoUsingYourCamera": "Record a video using your camera", "recordAVideoUsingYourCamera": "Record a video using your camera",
"pasteAVideoUsingALink": "Paste a video using a link" "pasteAVideoUsingALink": "Paste a video using a link"
} }

@ -1,7 +1,7 @@
{ {
"@@locale": "zh", "@@locale": "zh",
"pasteLink": "粘贴链接", "pasteLink": "粘贴链接",
"ok": "确", "ok": "确",
"selectColor": "选择颜色", "selectColor": "选择颜色",
"gallery": "相册", "gallery": "相册",
"link": "链接", "link": "链接",
@ -11,67 +11,80 @@
"save": "保存", "save": "保存",
"zoom": "缩放", "zoom": "缩放",
"saved": "已保存", "saved": "已保存",
"text": "文", "text": "文",
"resize": "调整大小", "resize": "调整大小",
"width": "宽度", "width": "宽度",
"height": "高度", "height": "高度",
"size": "大小", "size": "文字大小",
"small": "小", "small": "小字号",
"large": "大", "large": "大字号",
"huge": "巨大", "huge": "超大字号",
"clear": "清除", "clear": "清除",
"font": "字体", "font": "字体",
"search": "搜索", "search": "搜索",
"camera": "相机", "camera": "拍照",
"video": "视频", "video": "录像",
"undo": "撤销", "undo": "撤销",
"redo": "重做", "redo": "重做",
"fontFamily": "字体", "fontFamily": "字体",
"fontSize": "字号", "fontSize": "字号",
"bold": "粗", "bold": "粗",
"subscript": "下标", "subscript": "下标",
"superscript": "上标", "superscript": "上标",
"italic": "斜体", "italic": "斜体",
"underline": "下划线", "underline": "下划线",
"strikeThrough": "删除线", "strikeThrough": "删除线",
"inlineCode": "内代码", "inlineCode": "内代码",
"fontColor": "字体颜色", "fontColor": "字体颜色",
"backgroundColor": "背景颜色", "backgroundColor": "背景颜色",
"clearFormat": "清除格式", "clearFormat": "清除格式",
"alignLeft": "左对齐", "alignLeft": "左对齐",
"alignCenter": "居中", "alignCenter": "居中对齐",
"alignRight": "右对齐", "alignRight": "右对齐",
"justifyWinWidth": "两端对齐", "justifyWinWidth": "两端对齐",
"textDirection": "文本方向", "textDirection": "文本方向",
"headerStyle": "标题样式", "headerStyle": "标题样式",
"numberedList": "编号列表", "normal": "正文",
"bulletList": "项目符号列表", "heading1": "一级标题",
"checkedList": "选中列表", "heading2": "二级标题",
"heading3": "三级标题",
"heading4": "四级标题",
"heading5": "五级标题",
"heading6": "六级标题",
"numberedList": "有序列表",
"bulletList": "无序列表",
"checkedList": "任务列表",
"codeBlock": "代码块", "codeBlock": "代码块",
"quote": "引用", "quote": "引",
"increaseIndent": "增加缩进", "increaseIndent": "增加缩进",
"decreaseIndent": "减少缩进", "decreaseIndent": "减少缩进",
"insertURL": "插入网址", "insertURL": "插入链接",
"visitLink": "访问链接", "visitLink": "访问链接",
"enterLink": "输入链接", "enterLink": "输入链接",
"enterMedia": "输入媒体", "enterMedia": "输入媒体",
"edit": "编辑", "edit": "编辑",
"apply": "应用", "apply": "应用",
"hex": "十六进制", "hex": "十六进制",
"material": "素材", "material": "Material 设计",
"color": "颜色", "color": "颜色",
"findText": "查找文本", "findText": "搜索文本",
"moveToPreviousOccurrence": "移到前一个匹配项", "moveToPreviousOccurrence": "一个匹配项",
"moveToNextOccurrence": "移到下一个匹配项", "moveToNextOccurrence": "下一个匹配项",
"savedUsingTheNetwork": "使用网络保存", "savedUsingTheNetwork": "通过网络保存",
"savedUsingLocalStorage": "使用本地存储保存", "savedUsingLocalStorage": "使用本地存储保存",
"errorWhileSavingImage": "保存图像时出错", "errorWhileSavingImage": "保存图像时发生错误",
"pleaseEnterTextForYourLink": "请输入链接文本(例如,'了解更多')", "pleaseEnterTextForYourLink": "如'了解更多'",
"pleaseEnterTheLinkURL": "请输入链接网址(例如,'https://example.com')", "pleaseEnterTheLinkURL": "如'https://example.com'",
"pleaseEnterAValidImageURL": "请输入有效的图像网址", "pleaseEnterAValidImageURL": "请输入有效的图像URL",
"pleaseEnterAValidVideoURL": "请输入有效的视频URL",
"photo": "照片", "photo": "照片",
"image": "图像", "image": "图像",
"pleaseEnterAValidVideoURL": "请输入有效的视频URL",
"caseSensitivityAndWholeWordSearch": "区分大小写和整词搜索", "caseSensitivityAndWholeWordSearch": "区分大小写和整词搜索",
"insertImage": "插入图像" "insertImage": "插入图像",
} "pickAPhotoFromYourGallery": "从相册选取图片",
"takeAPhotoUsingYourCamera": "使用相机拍照",
"pasteAPhotoUsingALink": "从链接获取图片",
"pickAVideoFromYourGallery": "从相册选取视频",
"recordAVideoUsingYourCamera": "使用相机录制",
"pasteAVideoUsingALink": "从链接获取视频"
}

@ -1,15 +1,15 @@
{ {
"@@locale": "zh_CN", "@@locale": "zh_CN",
"pasteLink": "粘贴链接", "pasteLink": "粘贴链接",
"ok": "", "ok": "确认",
"selectColor": "选择颜色", "selectColor": "选择颜色",
"gallery": "相簿", "gallery": "相",
"link": "链接", "link": "链接",
"open": "打开", "open": "打开",
"copy": "复制", "copy": "复制",
"remove": "移除", "remove": "移除",
"save": "保存", "save": "保存",
"zoom": "放", "zoom": "放",
"saved": "已保存", "saved": "已保存",
"text": "文字", "text": "文字",
"resize": "调整大小", "resize": "调整大小",
@ -44,6 +44,13 @@
"justifyWinWidth": "两端对齐", "justifyWinWidth": "两端对齐",
"textDirection": "文本方向", "textDirection": "文本方向",
"headerStyle": "标题样式", "headerStyle": "标题样式",
"normal": "正文",
"heading1": "一级标题",
"heading2": "二级标题",
"heading3": "三级标题",
"heading4": "四级标题",
"heading5": "五级标题",
"heading6": "六级标题",
"numberedList": "有序列表", "numberedList": "有序列表",
"bulletList": "无序列表", "bulletList": "无序列表",
"checkedList": "任务列表", "checkedList": "任务列表",
@ -57,22 +64,27 @@
"enterMedia": "输入媒体", "enterMedia": "输入媒体",
"edit": "编辑", "edit": "编辑",
"apply": "应用", "apply": "应用",
"hex": "十六进制",
"material": "Material 设计",
"color": "颜色",
"findText": "搜索文本", "findText": "搜索文本",
"moveToPreviousOccurrence": "上一个匹配项", "moveToPreviousOccurrence": "上一个匹配项",
"moveToNextOccurrence": "下一个匹配项", "moveToNextOccurrence": "下一个匹配项",
"savedUsingTheNetwork": "通过网络保存", "savedUsingTheNetwork": "通过网络保存",
"savedUsingLocalStorage": "使用本地存储保存", "savedUsingLocalStorage": "使用本地存储保存",
"errorWhileSavingImage": "保存图像时发生错误", "errorWhileSavingImage": "保存图像时发生错误",
"pleaseEnterTextForYourLink": "'了解更多'", "pleaseEnterTextForYourLink": "如'了解更多'",
"pleaseEnterTheLinkURL": "'https://example.com'", "pleaseEnterTheLinkURL": "如'https://example.com'",
"pleaseEnterAValidImageURL": "请输入有效的图像URL", "pleaseEnterAValidImageURL": "请输入有效的图像URL",
"hex": "十六进制",
"material": "材料",
"color": "颜色",
"pleaseEnterAValidVideoURL": "请输入有效的视频URL", "pleaseEnterAValidVideoURL": "请输入有效的视频URL",
"photo": "照片", "photo": "照片",
"image": "图像", "image": "图像",
"caseSensitivityAndWholeWordSearch": "区分大小写和整词搜索", "caseSensitivityAndWholeWordSearch": "区分大小写和整词搜索",
"insertImage": "插入图像" "insertImage": "插入图像",
} "pickAPhotoFromYourGallery": "从相册选取图片",
"takeAPhotoUsingYourCamera": "使用相机拍照",
"pasteAPhotoUsingALink": "从链接获取图片",
"pickAVideoFromYourGallery": "从相册选取视频",
"recordAVideoUsingYourCamera": "使用相机录制",
"pasteAVideoUsingALink": "从链接获取视频"
}

@ -442,38 +442,6 @@
"pasteAVideoUsingALink" "pasteAVideoUsingALink"
], ],
"zh": [
"normal",
"heading1",
"heading2",
"heading3",
"heading4",
"heading5",
"heading6",
"pickAPhotoFromYourGallery",
"takeAPhotoUsingYourCamera",
"pasteAPhotoUsingALink",
"pickAVideoFromYourGallery",
"recordAVideoUsingYourCamera",
"pasteAVideoUsingALink"
],
"zh_CN": [
"normal",
"heading1",
"heading2",
"heading3",
"heading4",
"heading5",
"heading6",
"pickAPhotoFromYourGallery",
"takeAPhotoUsingYourCamera",
"pasteAPhotoUsingALink",
"pickAVideoFromYourGallery",
"recordAVideoUsingYourCamera",
"pasteAVideoUsingALink"
],
"zh_HK": [ "zh_HK": [
"normal", "normal",
"heading1", "heading1",

@ -7,22 +7,22 @@ issue_tracker: https://github.com/singerdmx/flutter-quill/issues/
documentation: https://github.com/singerdmx/flutter-quill/ documentation: https://github.com/singerdmx/flutter-quill/
topics: topics:
- ui - ui
- widgets - widgets
- widget - widget
- rich-text-editor - rich-text-editor
- quill - quill
screenshots: screenshots:
- description: 'Screenshot 1' - description: "Screenshot 1"
path: example/assets/images/screenshot_1.png path: example/assets/images/screenshot_1.png
- description: 'Screenshot 2' - description: "Screenshot 2"
path: example/assets/images/screenshot_2.png path: example/assets/images/screenshot_2.png
- description: 'Screenshot 3' - description: "Screenshot 3"
path: example/assets/images/screenshot_3.png path: example/assets/images/screenshot_3.png
- description: 'Screenshot 4' - description: "Screenshot 4"
path: example/assets/images/screenshot_4.png path: example/assets/images/screenshot_4.png
platforms: platforms:
android: android:
ios: ios:
@ -32,7 +32,7 @@ platforms:
windows: windows:
environment: environment:
sdk: '>=3.1.6 <4.0.0' sdk: ">=3.1.6 <4.0.0"
flutter: ">=3.16.0" flutter: ">=3.16.0"
dependencies: dependencies:

Loading…
Cancel
Save