diff --git a/README.md b/README.md index 0679b469..b3287eb8 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,6 @@ Pub: [FlutterQuill] - [Custom Embed Blocks](#custom-embed-blocks) - [Custom Toolbar](#custom-toolbar) - [Translation](#translation) - - [Contributing to translations](#contributing-to-translations) - [Conversion to HTML](#conversion-to-html) - [Testing](#testing) - [Contributors](#contributors) @@ -302,45 +301,9 @@ Open this [page](./doc/custom_toolbar.md) for more info ### Translation -The package offers translations for the quill toolbar and editor, it will follow the system locale unless you set your own locale with: +The package offers translations for the quill toolbar and editor, it will follow the system locale unless you set your own locale. -```dart - QuillProvider( - configurations: QuillConfigurations( - controller: _controller, - sharedConfigurations: const QuillSharedConfigurations( - locale: Locale('fr'), - ), - ), - child: Column( - children: [ - const QuillToolbar( - configurations: QuillToolbarConfigurations(), - ), - Expanded( - child: QuillEditor.basic( - configurations: const QuillEditorConfigurations(), - ), - ) - ], - ), -) -``` - -Currently, translations are available for these 31 locales: - -* `Locale('en')`, `Locale('ar')`, `Locale('bn')`, `Locale('bs')` -* `Locale('cs')`, `Locale('de')`, `Locale('da')`, `Locale('fr')` -* `Locale('he')`, `Locale('zh', 'cn')`, `Locale('zh', 'hk')`, `Locale('ko')` -* `Locale('ru')`, `Locale('es')`, `Locale('tk')`, `Locale('tr')` -* `Locale('uk')`, `Locale('ur')`, `Locale('pt')`, `Locale('pl')` -* `Locale('vi')`, `Locale('id')`, `Locale('it')`, `Locale('ms')` -* `Locale('nl')`, `Locale('no')`, `Locale('fa')`, `Locale('hi')` -* `Locale('sr')`, `Locale('sw')`, `Locale('ja')` - -#### Contributing to translations - -The translation file is located at [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! +Open this [page](./doc/translation.md) for more info ## Conversion to HTML diff --git a/doc/translation.md b/doc/translation.md new file mode 100644 index 00000000..48f235f0 --- /dev/null +++ b/doc/translation.md @@ -0,0 +1,41 @@ +# Translation + +The package offers translations for the quill toolbar and editor, it will follow the system locale unless you set your own locale with: + +```dart + QuillProvider( + configurations: QuillConfigurations( + controller: _controller, + sharedConfigurations: const QuillSharedConfigurations( + locale: Locale('fr'), + ), + ), + child: Column( + children: [ + const QuillToolbar( + configurations: QuillToolbarConfigurations(), + ), + Expanded( + child: QuillEditor.basic( + configurations: const QuillEditorConfigurations(), + ), + ) + ], + ), +) +``` + +Currently, translations are available for these 31 locales: + +* `Locale('en')`, `Locale('ar')`, `Locale('bn')`, `Locale('bs')` +* `Locale('cs')`, `Locale('de')`, `Locale('da')`, `Locale('fr')` +* `Locale('he')`, `Locale('zh', 'cn')`, `Locale('zh', 'hk')`, `Locale('ko')` +* `Locale('ru')`, `Locale('es')`, `Locale('tk')`, `Locale('tr')` +* `Locale('uk')`, `Locale('ur')`, `Locale('pt')`, `Locale('pl')` +* `Locale('vi')`, `Locale('id')`, `Locale('it')`, `Locale('ms')` +* `Locale('nl')`, `Locale('no')`, `Locale('fa')`, `Locale('hi')` +* `Locale('sr')`, `Locale('sw')`, `Locale('ja')` + +#### Contributing to translations + +The translation file is located at [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! \ No newline at end of file