Przeglądaj źródła

Provide h4, h5, h6 as defaultIcons for button view and add translations for items

mcmics 7 lat temu
rodzic
commit
8f66b72745

+ 4 - 1
packages/ckeditor5-heading/lang/contexts.json

@@ -4,5 +4,8 @@
 	"Choose heading": "Default label for the heading dropdown.",
 	"Choose heading": "Default label for the heading dropdown.",
 	"Heading 1": "Dropdown option label for the heading level 1 format.",
 	"Heading 1": "Dropdown option label for the heading level 1 format.",
 	"Heading 2": "Dropdown option label for the heading level 2 format.",
 	"Heading 2": "Dropdown option label for the heading level 2 format.",
-	"Heading 3": "Dropdown option label for the heading level 3 format."
+	"Heading 3": "Dropdown option label for the heading level 3 format.",
+	"Heading 4": "Dropdown option label for the heading level 4 format.",
+	"Heading 5": "Dropdown option label for the heading level 5 format.",
+	"Heading 6": "Dropdown option label for the heading level 6 format."
 }
 }

+ 12 - 0
packages/ckeditor5-heading/lang/translations/de.po

@@ -28,3 +28,15 @@ msgstr "Überschrift 2"
 msgctxt "Dropdown option label for the heading level 3 format."
 msgctxt "Dropdown option label for the heading level 3 format."
 msgid "Heading 3"
 msgid "Heading 3"
 msgstr "Überschrift 3"
 msgstr "Überschrift 3"
+
+msgctxt "Dropdown option label for the heading level 4 format."
+msgid "Heading 4"
+msgstr "Überschrift 4"
+
+msgctxt "Dropdown option label for the heading level 5 format."
+msgid "Heading 5"
+msgstr "Überschrift 5"
+
+msgctxt "Dropdown option label for the heading level 6 format."
+msgid "Heading 6"
+msgstr "Überschrift 6"

+ 12 - 0
packages/ckeditor5-heading/lang/translations/en.po

@@ -28,3 +28,15 @@ msgstr "Heading 2"
 msgctxt "Dropdown option label for the heading level 3 format."
 msgctxt "Dropdown option label for the heading level 3 format."
 msgid "Heading 3"
 msgid "Heading 3"
 msgstr "Heading 3"
 msgstr "Heading 3"
+
+msgctxt "Dropdown option label for the heading level 4 format."
+msgid "Heading 4"
+msgstr "Heading 4"
+
+msgctxt "Dropdown option label for the heading level 5 format."
+msgid "Heading 5"
+msgstr "Heading 5"
+
+msgctxt "Dropdown option label for the heading level 6 format."
+msgid "Heading 6"
+msgstr "Heading 6"

+ 4 - 1
packages/ckeditor5-heading/src/utils.js

@@ -15,7 +15,10 @@ export function getLocalizedOptions( editor ) {
 		Paragraph: t( 'Paragraph' ),
 		Paragraph: t( 'Paragraph' ),
 		'Heading 1': t( 'Heading 1' ),
 		'Heading 1': t( 'Heading 1' ),
 		'Heading 2': t( 'Heading 2' ),
 		'Heading 2': t( 'Heading 2' ),
-		'Heading 3': t( 'Heading 3' )
+		'Heading 3': t( 'Heading 3' ),
+		'Heading 4': t( 'Heading 4' ),
+		'Heading 5': t( 'Heading 5' ),
+		'Heading 6': t( 'Heading 6' )
 	};
 	};
 
 
 	return editor.config.get( 'heading.options' ).map( option => {
 	return editor.config.get( 'heading.options' ).map( option => {