diff --git a/l10n.yaml b/l10n.yaml index 15fabf56..19167d04 100644 --- a/l10n.yaml +++ b/l10n.yaml @@ -7,4 +7,4 @@ synthetic-package: false format: true untranslated-messages-file: lib/src/l10n/untranslated.json nullable-getter: true -suppress-warnings: false \ No newline at end of file +suppress-warnings: false diff --git a/lib/src/l10n/generated/quill_localizations_zh.dart b/lib/src/l10n/generated/quill_localizations_zh.dart index 041931d6..975075c3 100644 --- a/lib/src/l10n/generated/quill_localizations_zh.dart +++ b/lib/src/l10n/generated/quill_localizations_zh.dart @@ -8,7 +8,7 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations { String get pasteLink => '粘贴链接'; @override - String get ok => '确定'; + String get ok => '确认'; @override String get selectColor => '选择颜色'; @@ -38,7 +38,7 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations { String get saved => '已保存'; @override - String get text => '文本'; + String get text => '文字'; @override String get resize => '调整大小'; @@ -50,16 +50,16 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations { String get height => '高度'; @override - String get size => '大小'; + String get size => '文字大小'; @override - String get small => '小'; + String get small => '小字号'; @override - String get large => '大'; + String get large => '大字号'; @override - String get huge => '巨大'; + String get huge => '超大字号'; @override String get clear => '清除'; @@ -71,10 +71,10 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations { String get search => '搜索'; @override - String get camera => '相机'; + String get camera => '拍照'; @override - String get video => '视频'; + String get video => '录像'; @override String get undo => '撤销'; @@ -83,13 +83,13 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations { String get redo => '重做'; @override - String get fontFamily => '字体族'; + String get fontFamily => '字体'; @override String get fontSize => '字号'; @override - String get bold => '加粗'; + String get bold => '粗体'; @override String get subscript => '下标'; @@ -107,7 +107,7 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations { String get strikeThrough => '删除线'; @override - String get inlineCode => '行内代码'; + String get inlineCode => '内联代码'; @override String get fontColor => '字体颜色'; @@ -122,7 +122,7 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations { String get alignLeft => '左对齐'; @override - String get alignCenter => '居中'; + String get alignCenter => '居中对齐'; @override String get alignRight => '右对齐'; @@ -137,40 +137,40 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations { String get headerStyle => '标题样式'; @override - String get normal => 'Normal'; + String get normal => '正文'; @override - String get heading1 => 'Heading 1'; + String get heading1 => '一级标题'; @override - String get heading2 => 'Heading 2'; + String get heading2 => '二级标题'; @override - String get heading3 => 'Heading 3'; + String get heading3 => '三级标题'; @override - String get heading4 => 'Heading 4'; + String get heading4 => '四级标题'; @override - String get heading5 => 'Heading 5'; + String get heading5 => '五级标题'; @override - String get heading6 => 'Heading 6'; + String get heading6 => '六级标题'; @override - String get numberedList => '编号列表'; + String get numberedList => '有序列表'; @override - String get bulletList => '项目符号列表'; + String get bulletList => '无序列表'; @override - String get checkedList => '选中列表'; + String get checkedList => '任务列表'; @override String get codeBlock => '代码块'; @override - String get quote => '引用'; + String get quote => '引言'; @override String get increaseIndent => '增加缩进'; @@ -179,7 +179,7 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations { String get decreaseIndent => '减少缩进'; @override - String get insertURL => '插入网址'; + String get insertURL => '插入链接'; @override String get visitLink => '访问链接'; @@ -200,37 +200,37 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations { String get hex => '十六进制'; @override - String get material => '素材'; + String get material => 'Material 设计'; @override String get color => '颜色'; @override - String get findText => '查找文本'; + String get findText => '搜索文本'; @override - String get moveToPreviousOccurrence => '移到前一个匹配项'; + String get moveToPreviousOccurrence => '上一个匹配项'; @override - String get moveToNextOccurrence => '移到下一个匹配项'; + String get moveToNextOccurrence => '下一个匹配项'; @override - String get savedUsingTheNetwork => '使用网络保存'; + String get savedUsingTheNetwork => '通过网络保存'; @override String get savedUsingLocalStorage => '使用本地存储保存'; @override - String get errorWhileSavingImage => '保存图像时出错'; + String get errorWhileSavingImage => '保存图像时发生错误'; @override - String get pleaseEnterTextForYourLink => "请输入链接文本(例如,'了解更多')"; + String get pleaseEnterTextForYourLink => "如'了解更多'"; @override - String get pleaseEnterTheLinkURL => "请输入链接网址(例如,'https://example.com')"; + String get pleaseEnterTheLinkURL => "如'https://example.com'"; @override - String get pleaseEnterAValidImageURL => '请输入有效的图像网址'; + String get pleaseEnterAValidImageURL => '请输入有效的图像URL'; @override String get pleaseEnterAValidVideoURL => '请输入有效的视频URL'; @@ -248,22 +248,22 @@ class FlutterQuillLocalizationsZh extends FlutterQuillLocalizations { String get insertImage => '插入图像'; @override - String get pickAPhotoFromYourGallery => 'Pick a photo from your gallery'; + String get pickAPhotoFromYourGallery => '从相册选取图片'; @override - String get takeAPhotoUsingYourCamera => 'Take a photo using your camera'; + String get takeAPhotoUsingYourCamera => '使用相机拍照'; @override - String get pasteAPhotoUsingALink => 'Paste a photo using a link'; + String get pasteAPhotoUsingALink => '从链接获取图片'; @override - String get pickAVideoFromYourGallery => 'Pick a video from your gallery'; + String get pickAVideoFromYourGallery => '从相册选取视频'; @override - String get recordAVideoUsingYourCamera => 'Record a video using your camera'; + String get recordAVideoUsingYourCamera => '使用相机录制'; @override - String get pasteAVideoUsingALink => 'Paste a video using a link'; + String get pasteAVideoUsingALink => '从链接获取视频'; } /// The translations for Chinese, as used in China (`zh_CN`). @@ -274,13 +274,13 @@ class FlutterQuillLocalizationsZhCn extends FlutterQuillLocalizationsZh { String get pasteLink => '粘贴链接'; @override - String get ok => '好'; + String get ok => '确认'; @override String get selectColor => '选择颜色'; @override - String get gallery => '相簿'; + String get gallery => '相册'; @override String get link => '链接'; @@ -298,7 +298,7 @@ class FlutterQuillLocalizationsZhCn extends FlutterQuillLocalizationsZh { String get save => '保存'; @override - String get zoom => '放大'; + String get zoom => '缩放'; @override String get saved => '已保存'; @@ -402,6 +402,27 @@ class FlutterQuillLocalizationsZhCn extends FlutterQuillLocalizationsZh { @override 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 String get numberedList => '有序列表'; @@ -445,7 +466,7 @@ class FlutterQuillLocalizationsZhCn extends FlutterQuillLocalizationsZh { String get hex => '十六进制'; @override - String get material => '材料'; + String get material => 'Material 设计'; @override String get color => '颜色'; @@ -469,10 +490,10 @@ class FlutterQuillLocalizationsZhCn extends FlutterQuillLocalizationsZh { String get errorWhileSavingImage => '保存图像时发生错误'; @override - String get pleaseEnterTextForYourLink => "例如,'了解更多'"; + String get pleaseEnterTextForYourLink => "如'了解更多'"; @override - String get pleaseEnterTheLinkURL => "例如,'https://example.com'"; + String get pleaseEnterTheLinkURL => "如'https://example.com'"; @override String get pleaseEnterAValidImageURL => '请输入有效的图像URL'; @@ -491,6 +512,24 @@ class FlutterQuillLocalizationsZhCn extends FlutterQuillLocalizationsZh { @override 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`). diff --git a/lib/src/l10n/quill_en.arb b/lib/src/l10n/quill_en.arb index 986e35c5..fed4b3cf 100644 --- a/lib/src/l10n/quill_en.arb +++ b/lib/src/l10n/quill_en.arb @@ -87,4 +87,4 @@ "pickAVideoFromYourGallery": "Pick a video from your gallery", "recordAVideoUsingYourCamera": "Record a video using your camera", "pasteAVideoUsingALink": "Paste a video using a link" -} +} \ No newline at end of file diff --git a/lib/src/l10n/quill_zh.arb b/lib/src/l10n/quill_zh.arb index 5f71a6a1..aa6ad9f7 100644 --- a/lib/src/l10n/quill_zh.arb +++ b/lib/src/l10n/quill_zh.arb @@ -1,7 +1,7 @@ { "@@locale": "zh", "pasteLink": "粘贴链接", - "ok": "确定", + "ok": "确认", "selectColor": "选择颜色", "gallery": "相册", "link": "链接", @@ -11,67 +11,80 @@ "save": "保存", "zoom": "缩放", "saved": "已保存", - "text": "文本", + "text": "文字", "resize": "调整大小", "width": "宽度", "height": "高度", - "size": "大小", - "small": "小", - "large": "大", - "huge": "巨大", + "size": "文字大小", + "small": "小字号", + "large": "大字号", + "huge": "超大字号", "clear": "清除", "font": "字体", "search": "搜索", - "camera": "相机", - "video": "视频", + "camera": "拍照", + "video": "录像", "undo": "撤销", "redo": "重做", - "fontFamily": "字体族", + "fontFamily": "字体", "fontSize": "字号", - "bold": "加粗", + "bold": "粗体", "subscript": "下标", "superscript": "上标", "italic": "斜体", "underline": "下划线", "strikeThrough": "删除线", - "inlineCode": "行内代码", + "inlineCode": "内联代码", "fontColor": "字体颜色", "backgroundColor": "背景颜色", "clearFormat": "清除格式", "alignLeft": "左对齐", - "alignCenter": "居中", + "alignCenter": "居中对齐", "alignRight": "右对齐", "justifyWinWidth": "两端对齐", "textDirection": "文本方向", "headerStyle": "标题样式", - "numberedList": "编号列表", - "bulletList": "项目符号列表", - "checkedList": "选中列表", + "normal": "正文", + "heading1": "一级标题", + "heading2": "二级标题", + "heading3": "三级标题", + "heading4": "四级标题", + "heading5": "五级标题", + "heading6": "六级标题", + "numberedList": "有序列表", + "bulletList": "无序列表", + "checkedList": "任务列表", "codeBlock": "代码块", - "quote": "引用", + "quote": "引言", "increaseIndent": "增加缩进", "decreaseIndent": "减少缩进", - "insertURL": "插入网址", + "insertURL": "插入链接", "visitLink": "访问链接", "enterLink": "输入链接", "enterMedia": "输入媒体", "edit": "编辑", "apply": "应用", "hex": "十六进制", - "material": "素材", + "material": "Material 设计", "color": "颜色", - "findText": "查找文本", - "moveToPreviousOccurrence": "移到前一个匹配项", - "moveToNextOccurrence": "移到下一个匹配项", - "savedUsingTheNetwork": "使用网络保存", + "findText": "搜索文本", + "moveToPreviousOccurrence": "上一个匹配项", + "moveToNextOccurrence": "下一个匹配项", + "savedUsingTheNetwork": "通过网络保存", "savedUsingLocalStorage": "使用本地存储保存", - "errorWhileSavingImage": "保存图像时出错", - "pleaseEnterTextForYourLink": "请输入链接文本(例如,'了解更多')", - "pleaseEnterTheLinkURL": "请输入链接网址(例如,'https://example.com')", - "pleaseEnterAValidImageURL": "请输入有效的图像网址", + "errorWhileSavingImage": "保存图像时发生错误", + "pleaseEnterTextForYourLink": "如'了解更多'", + "pleaseEnterTheLinkURL": "如'https://example.com'", + "pleaseEnterAValidImageURL": "请输入有效的图像URL", + "pleaseEnterAValidVideoURL": "请输入有效的视频URL", "photo": "照片", "image": "图像", - "pleaseEnterAValidVideoURL": "请输入有效的视频URL", "caseSensitivityAndWholeWordSearch": "区分大小写和整词搜索", - "insertImage": "插入图像" -} + "insertImage": "插入图像", + "pickAPhotoFromYourGallery": "从相册选取图片", + "takeAPhotoUsingYourCamera": "使用相机拍照", + "pasteAPhotoUsingALink": "从链接获取图片", + "pickAVideoFromYourGallery": "从相册选取视频", + "recordAVideoUsingYourCamera": "使用相机录制", + "pasteAVideoUsingALink": "从链接获取视频" +} \ No newline at end of file diff --git a/lib/src/l10n/quill_zh_CN.arb b/lib/src/l10n/quill_zh_CN.arb index 51e67c40..d4486a63 100644 --- a/lib/src/l10n/quill_zh_CN.arb +++ b/lib/src/l10n/quill_zh_CN.arb @@ -1,15 +1,15 @@ { "@@locale": "zh_CN", "pasteLink": "粘贴链接", - "ok": "好", + "ok": "确认", "selectColor": "选择颜色", - "gallery": "相簿", + "gallery": "相册", "link": "链接", "open": "打开", "copy": "复制", "remove": "移除", "save": "保存", - "zoom": "放大", + "zoom": "缩放", "saved": "已保存", "text": "文字", "resize": "调整大小", @@ -44,6 +44,13 @@ "justifyWinWidth": "两端对齐", "textDirection": "文本方向", "headerStyle": "标题样式", + "normal": "正文", + "heading1": "一级标题", + "heading2": "二级标题", + "heading3": "三级标题", + "heading4": "四级标题", + "heading5": "五级标题", + "heading6": "六级标题", "numberedList": "有序列表", "bulletList": "无序列表", "checkedList": "任务列表", @@ -57,22 +64,27 @@ "enterMedia": "输入媒体", "edit": "编辑", "apply": "应用", + "hex": "十六进制", + "material": "Material 设计", + "color": "颜色", "findText": "搜索文本", "moveToPreviousOccurrence": "上一个匹配项", "moveToNextOccurrence": "下一个匹配项", "savedUsingTheNetwork": "通过网络保存", "savedUsingLocalStorage": "使用本地存储保存", "errorWhileSavingImage": "保存图像时发生错误", - "pleaseEnterTextForYourLink": "例如,'了解更多'", - "pleaseEnterTheLinkURL": "例如,'https://example.com'", + "pleaseEnterTextForYourLink": "如'了解更多'", + "pleaseEnterTheLinkURL": "如'https://example.com'", "pleaseEnterAValidImageURL": "请输入有效的图像URL", - "hex": "十六进制", - "material": "材料", - "color": "颜色", "pleaseEnterAValidVideoURL": "请输入有效的视频URL", "photo": "照片", "image": "图像", "caseSensitivityAndWholeWordSearch": "区分大小写和整词搜索", - "insertImage": "插入图像" -} - \ No newline at end of file + "insertImage": "插入图像", + "pickAPhotoFromYourGallery": "从相册选取图片", + "takeAPhotoUsingYourCamera": "使用相机拍照", + "pasteAPhotoUsingALink": "从链接获取图片", + "pickAVideoFromYourGallery": "从相册选取视频", + "recordAVideoUsingYourCamera": "使用相机录制", + "pasteAVideoUsingALink": "从链接获取视频" +} \ No newline at end of file diff --git a/lib/src/l10n/untranslated.json b/lib/src/l10n/untranslated.json index 09698365..197d74c3 100644 --- a/lib/src/l10n/untranslated.json +++ b/lib/src/l10n/untranslated.json @@ -442,38 +442,6 @@ "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": [ "normal", "heading1", diff --git a/pubspec.yaml b/pubspec.yaml index f2104843..fabe2392 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,22 +7,22 @@ issue_tracker: https://github.com/singerdmx/flutter-quill/issues/ documentation: https://github.com/singerdmx/flutter-quill/ topics: - - ui - - widgets - - widget - - rich-text-editor - - quill + - ui + - widgets + - widget + - rich-text-editor + - quill screenshots: - - description: 'Screenshot 1' - path: example/assets/images/screenshot_1.png - - description: 'Screenshot 2' - path: example/assets/images/screenshot_2.png - - description: 'Screenshot 3' - path: example/assets/images/screenshot_3.png - - description: 'Screenshot 4' - path: example/assets/images/screenshot_4.png - + - description: "Screenshot 1" + path: example/assets/images/screenshot_1.png + - description: "Screenshot 2" + path: example/assets/images/screenshot_2.png + - description: "Screenshot 3" + path: example/assets/images/screenshot_3.png + - description: "Screenshot 4" + path: example/assets/images/screenshot_4.png + platforms: android: ios: @@ -32,7 +32,7 @@ platforms: windows: environment: - sdk: '>=3.1.6 <4.0.0' + sdk: ">=3.1.6 <4.0.0" flutter: ">=3.16.0" dependencies: