From ff00a888d33d838706f2dc8098668d02ddc488cd Mon Sep 17 00:00:00 2001 From: David Djordjevic Date: Wed, 20 Jul 2022 16:16:28 +0200 Subject: [PATCH 1/2] Add Serbian translation (#876) --- lib/src/translations/toolbar.i18n.dart | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/lib/src/translations/toolbar.i18n.dart b/lib/src/translations/toolbar.i18n.dart index 07717681..6a3c3158 100644 --- a/lib/src/translations/toolbar.i18n.dart +++ b/lib/src/translations/toolbar.i18n.dart @@ -469,6 +469,27 @@ extension Localization on String { 'Height': '高', 'Size': '大小', }, + 'sr': { + 'Paste a link': 'Nalepi vezu', + 'Ok': 'OK', + 'Select Color': 'Odaberi boju', + 'Gallery': 'Galerija', + 'Link': 'Veza', + 'Please first select some text to transform into a link.': + 'Označite tekst kako bi ga pretvorili u vezu.', + 'Open': 'Otvori', + 'Copy': 'Kopiraj', + 'Remove': 'Ukloni', + 'Save': 'Sačuvaj', + 'Zoom': 'Uvećaj', + 'Saved': 'Sačuvano', + 'Text': 'Tekst', + 'What is entered is not a link': 'Neispravna veza', + 'Resize': 'Promeni veličinu', + 'Width': 'Širina', + 'Height': 'Visina', + 'Size': 'Veličina', + }, }; String get i18n => localize(this, _t); From cf5bc2292f62627639ace4747669a815785be22f Mon Sep 17 00:00:00 2001 From: X Code Date: Wed, 20 Jul 2022 07:21:54 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b88cd1c1..e14ecfba 100644 --- a/README.md +++ b/README.md @@ -170,7 +170,7 @@ The package offers translations for the quill toolbar and editor, it will follow QuillToolbar(locale: Locale('fr'), ...) QuillEditor(locale: Locale('fr'), ...) ``` -Currently, translations are available for these 21 locales: +Currently, translations are available for these 22 locales: * `Locale('en')` * `Locale('ar')` * `Locale('de')` @@ -192,6 +192,7 @@ Currently, translations are available for these 21 locales: * `Locale('no')` * `Locale('fa')` * `Locale('hi')` +* `Locale('sr')` ### 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!