i18n for toolbar size options

pull/882/head
X Code 3 years ago
parent 4f851e18e2
commit 7f5a752129
  1. 92
      lib/src/translations/toolbar.i18n.dart
  2. 8
      lib/src/widgets/toolbar.dart

@ -23,6 +23,10 @@ extension Localization on String {
'Width': 'Width', 'Width': 'Width',
'Height': 'Height', 'Height': 'Height',
'Size': 'Size', 'Size': 'Size',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'en_us': { 'en_us': {
'Paste a link': 'Paste a link', 'Paste a link': 'Paste a link',
@ -44,6 +48,10 @@ extension Localization on String {
'Width': 'Width', 'Width': 'Width',
'Height': 'Height', 'Height': 'Height',
'Size': 'Size', 'Size': 'Size',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'ar': { 'ar': {
'Paste a link': 'نسخ الرابط', 'Paste a link': 'نسخ الرابط',
@ -65,6 +73,10 @@ extension Localization on String {
'Width': 'Width', 'Width': 'Width',
'Height': 'Height', 'Height': 'Height',
'Size': 'Size', 'Size': 'Size',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'da': { 'da': {
'Paste a link': 'Indsæt link', 'Paste a link': 'Indsæt link',
@ -86,6 +98,10 @@ extension Localization on String {
'Width': 'Width', 'Width': 'Width',
'Height': 'Height', 'Height': 'Height',
'Size': 'Size', 'Size': 'Size',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'de': { 'de': {
'Paste a link': 'Link hinzufügen', 'Paste a link': 'Link hinzufügen',
@ -108,6 +124,10 @@ extension Localization on String {
'Width': 'Breite', 'Width': 'Breite',
'Height': 'Höhe', 'Height': 'Höhe',
'Size': 'Größe', 'Size': 'Größe',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'fr': { 'fr': {
'Paste a link': 'Coller un lien', 'Paste a link': 'Coller un lien',
@ -129,6 +149,10 @@ extension Localization on String {
'Width': 'Width', 'Width': 'Width',
'Height': 'Height', 'Height': 'Height',
'Size': 'Size', 'Size': 'Size',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'zh_CN': { 'zh_CN': {
'Paste a link': '粘贴链接', 'Paste a link': '粘贴链接',
@ -150,6 +174,10 @@ extension Localization on String {
'Width': '宽度', 'Width': '宽度',
'Height': '高度', 'Height': '高度',
'Size': '文字大小', 'Size': '文字大小',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'ko': { 'ko': {
'Paste a link': '링크를 붙여넣어 주세요.', 'Paste a link': '링크를 붙여넣어 주세요.',
@ -170,6 +198,10 @@ extension Localization on String {
'Resize': 'Resize', 'Resize': 'Resize',
'Width': 'Width', 'Width': 'Width',
'Height': 'Height', 'Height': 'Height',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'ru': { 'ru': {
'Paste a link': 'Вставить ссылку', 'Paste a link': 'Вставить ссылку',
@ -191,6 +223,10 @@ extension Localization on String {
'Width': 'Width', 'Width': 'Width',
'Height': 'Height', 'Height': 'Height',
'Size': 'Size', 'Size': 'Size',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'es': { 'es': {
'Paste a link': 'Pega un enlace', 'Paste a link': 'Pega un enlace',
@ -213,6 +249,10 @@ extension Localization on String {
'Width': 'Width', 'Width': 'Width',
'Height': 'Height', 'Height': 'Height',
'Size': 'Size', 'Size': 'Size',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'tr': { 'tr': {
'Paste a link': 'Bağlantıyı Yapıştır', 'Paste a link': 'Bağlantıyı Yapıştır',
@ -234,6 +274,10 @@ extension Localization on String {
'Width': 'Width', 'Width': 'Width',
'Height': 'Height', 'Height': 'Height',
'Size': 'Size', 'Size': 'Size',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'uk': { 'uk': {
'Paste a link': 'Вставити посилання', 'Paste a link': 'Вставити посилання',
@ -255,6 +299,10 @@ extension Localization on String {
'Width': 'Width', 'Width': 'Width',
'Height': 'Height', 'Height': 'Height',
'Size': 'Size', 'Size': 'Size',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'pt': { 'pt': {
'Paste a link': 'Colar um link', 'Paste a link': 'Colar um link',
@ -277,6 +325,10 @@ extension Localization on String {
'Width': 'Largura', 'Width': 'Largura',
'Height': 'Altura', 'Height': 'Altura',
'Size': 'Tamanho', 'Size': 'Tamanho',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'pl': { 'pl': {
'Paste a link': 'Wklej link', 'Paste a link': 'Wklej link',
@ -299,6 +351,10 @@ extension Localization on String {
'Width': 'Width', 'Width': 'Width',
'Height': 'Height', 'Height': 'Height',
'Size': 'Size', 'Size': 'Size',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'vi': { 'vi': {
'Paste a link': 'Chèn liên kết', 'Paste a link': 'Chèn liên kết',
@ -321,6 +377,10 @@ extension Localization on String {
'Width': 'Width', 'Width': 'Width',
'Height': 'Height', 'Height': 'Height',
'Size': 'Size', 'Size': 'Size',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'ur': { 'ur': {
'Paste a link': 'لنک پیسٹ کریں', 'Paste a link': 'لنک پیسٹ کریں',
@ -342,6 +402,10 @@ extension Localization on String {
'Width': 'چوڑائی', 'Width': 'چوڑائی',
'Height': 'اونچائی', 'Height': 'اونچائی',
'Size': 'Size', 'Size': 'Size',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'id': { 'id': {
'Paste a link': 'Tempel tautan', 'Paste a link': 'Tempel tautan',
@ -363,6 +427,10 @@ extension Localization on String {
'Width': 'Lebar', 'Width': 'Lebar',
'Height': 'Tinggi', 'Height': 'Tinggi',
'Size': 'Size', 'Size': 'Size',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'no': { 'no': {
'Paste a link': 'Lim inn lenke', 'Paste a link': 'Lim inn lenke',
@ -384,6 +452,10 @@ extension Localization on String {
'Width': 'Bredde', 'Width': 'Bredde',
'Height': 'Høyde', 'Height': 'Høyde',
'Size': 'Size', 'Size': 'Size',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'fa': { 'fa': {
'Paste a link': 'جایگذاری لینک', 'Paste a link': 'جایگذاری لینک',
@ -405,6 +477,10 @@ extension Localization on String {
'Width': 'عرض', 'Width': 'عرض',
'Height': 'طول', 'Height': 'طول',
'Size': 'Size', 'Size': 'Size',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'hi': { 'hi': {
'Paste a link': 'िक पट कर', 'Paste a link': 'िक पट कर',
@ -426,6 +502,10 @@ extension Localization on String {
'Width': '', 'Width': '',
'Height': '', 'Height': '',
'Size': 'Size', 'Size': 'Size',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'nl': { 'nl': {
'Paste a link': 'Plak een link', 'Paste a link': 'Plak een link',
@ -447,6 +527,10 @@ extension Localization on String {
'Width': 'Breedte', 'Width': 'Breedte',
'Height': 'Hoogte', 'Height': 'Hoogte',
'Size': 'Grootte', 'Size': 'Grootte',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'zh_HK': { 'zh_HK': {
'Paste a link': '貼上連結', 'Paste a link': '貼上連結',
@ -468,6 +552,10 @@ extension Localization on String {
'Width': '', 'Width': '',
'Height': '', 'Height': '',
'Size': '大小', 'Size': '大小',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
'sr': { 'sr': {
'Paste a link': 'Nalepi vezu', 'Paste a link': 'Nalepi vezu',
@ -489,6 +577,10 @@ extension Localization on String {
'Width': 'Širina', 'Width': 'Širina',
'Height': 'Visina', 'Height': 'Visina',
'Size': 'Veličina', 'Size': 'Veličina',
'Small': 'Small',
'Large': 'Large',
'Huge': 'Huge',
'Clear': 'Clear',
}, },
}; };

@ -7,6 +7,7 @@ import '../models/documents/attribute.dart';
import '../models/themes/quill_custom_icon.dart'; import '../models/themes/quill_custom_icon.dart';
import '../models/themes/quill_dialog_theme.dart'; import '../models/themes/quill_dialog_theme.dart';
import '../models/themes/quill_icon_theme.dart'; import '../models/themes/quill_icon_theme.dart';
import '../translations/toolbar.i18n.dart';
import '../utils/font.dart'; import '../utils/font.dart';
import 'controller.dart'; import 'controller.dart';
import 'toolbar/arrow_indicated_button_list.dart'; import 'toolbar/arrow_indicated_button_list.dart';
@ -156,7 +157,12 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
//default font size values //default font size values
final fontSizes = fontSizeValues ?? final fontSizes = fontSizeValues ??
{'Small': 'small', 'Large': 'large', 'Huge': 'huge', 'Clear': '0'}; {
'Small'.i18n: 'small',
'Large'.i18n: 'large',
'Huge'.i18n: 'huge',
'Clear'.i18n: '0'
};
return QuillToolbar( return QuillToolbar(
key: key, key: key,

Loading…
Cancel
Save