From 13f0a2c702896ae534d82cd7e72eaa95c0620e48 Mon Sep 17 00:00:00 2001 From: Cierra_Runis <2864283875@qq.com> Date: Wed, 1 Feb 2023 21:07:13 +0800 Subject: [PATCH] Alert (#1076) --- README.md | 6 +++--- doc_cn.md | 24 ++++++++++++++---------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index b5f5e1dd..5ec17c82 100644 --- a/README.md +++ b/README.md @@ -383,10 +383,10 @@ The translation file is located at [toolbar.i18n.dart](lib/src/translations/tool Having your document stored in Quill Delta format is sometimes not enough. Often you'll need to convert it to other formats such as HTML in order to publish it, or send an email. One option is to use [vsc_quill_delta_to_html](https://pub.dev/packages/vsc_quill_delta_to_html) to convert your document -to HTML. This package has full support for all Quill operations - including images, videos, formulas, -tables, and mentions. Conversion can be performed in vanilla Dart (i.e., server-side or CLI) or in Flutter. +to HTML. This package has full support for all Quill operations - including images, videos, formulas, +tables, and mentions. Conversion can be performed in vanilla Dart (i.e., server-side or CLI) or in Flutter. It is a complete Dart part of the popular and mature [quill-delta-to-html](https://www.npmjs.com/package/quill-delta-to-html) -Typescript/Javascript package. +Typescript/Javascript package. ## Sponsors diff --git a/doc_cn.md b/doc_cn.md index 870ce674..01375221 100644 --- a/doc_cn.md +++ b/doc_cn.md @@ -187,7 +187,7 @@ QuillToolbar.basic( 若需要图片、视频、公式块的支持,请查看独立库 [`flutter_quill_extensions`](https://pub.dev/packages/flutter_quill_extensions) -### 根据 `flutter_quill_extensions` 使用自定义嵌入块 +### 根据 `flutter_quill_extensions` 使用图片、视频、公式等自定义嵌入块 ```dart import 'package:flutter_quill_extensions/flutter_quill_extensions.dart'; @@ -355,7 +355,7 @@ QuillToolbar(locale: Locale('fr'), ...) QuillEditor(locale: Locale('fr'), ...) ``` -目前,可提供以下 24 种语言环境的翻译: +目前,可提供以下 25 种语言环境的翻译: * `Locale('en')` * `Locale('ar')` @@ -363,6 +363,7 @@ QuillEditor(locale: Locale('fr'), ...) * `Locale('de')` * `Locale('da')` * `Locale('fr')` +* `Locale('he')` * `Locale('zh', 'cn')` * `Locale('zh', 'hk')` * `Locale('ko')` @@ -384,20 +385,23 @@ QuillEditor(locale: Locale('fr'), ...) #### 贡献翻译 -翻译文件位于 [toolbar.i18n.dart](lib/src/translations/toolbar.i18n.dart)。 +翻译文件位于 [toolbar.i18n.dart](lib/src/translations/toolbar.i18n.dart) -随意贡献你自己的翻译,只需复制英文翻译映射并将值替换为你的翻译即可。 +随意贡献你自己的翻译,只需复制英文翻译映射并将值替换为你的翻译即可 然后打开一个拉取请求,这样每个人都可以从你的翻译中受益! ---- +### 转化至 HTML -## 帮助 +将你的文档转为 `Quill Delta` 格式有时还不够,通常你需要将其转化为其他如 `HTML` 格式来分发他,或作为邮件发出 - - +一个方案是使用 [vsc_quill_delta_to_html](https://pub.dev/packages/vsc_quill_delta_to_html) `Flutter` 包来转化至 `HTML` 格式。此包支持所以的 `Quill` 操作,包含图片、视频、公式、表格和注释 + +转化过程可以在 `vanilla Dart` 如服务器端或 `CLI` 执行,也可在 `Flutter` 中执行 + +其是流行且成熟的 [quill-delta-to-html](https://www.npmjs.com/package/quill-delta-to-html) `Typescript/Javascript` 包的 `Dart` 部分 + +--- ## 赞助