From 265d74a32d3b0ec79fde7a3488f2dfd70f878c8f Mon Sep 17 00:00:00 2001 From: Namli1 <51393783+Namli1@users.noreply.github.com> Date: Sun, 17 Oct 2021 23:54:08 +0200 Subject: [PATCH] Updated Readme, added section for translations --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 4d5a2756..8386a922 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,20 @@ Define `mobileWidth`, `mobileHeight`, `mobileMargin`, `mobileAlignment` as follo } ``` +## Translation of toolbar +The package offers translations for the quill toolbar, it will follow the system locale unless you set your own locale with: +``` +QuillToolbar(locale: Locale('fr'), ...) +``` +Currently, translations are available for these locales: +* `Locale('en')` +* `Locale('de')` +* `Locale('fr')` +* `Locale('zh', 'CN')` + +### Contributing to translations +The translation file is located at [lib/src/translations/toolbar.i18n.dart](lib/src/translations/toolbar.i18n.dart). Feel free to contribute your own translations, just copy the English translations map and replace the values with your translations. Then open a pull request so everyone can benefit from your translations! + ## Migrate Zefyr Data Check out [code](https://github.com/jwehrle/zefyr_quill_convert) and [doc](https://docs.google.com/document/d/1FUSrpbarHnilb7uDN5J5DDahaI0v1RMXBjj4fFSpSuY/edit?usp=sharing).