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).