tiptapify 0.0.12 → 0.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/README.md +14 -5
  2. package/dist/tiptapify.css +1 -1
  3. package/dist/tiptapify.mjs +76483 -57282
  4. package/dist/tiptapify.umd.js +42 -42
  5. package/package.json +56 -47
  6. package/src/components/Footer.vue +1 -3
  7. package/src/components/Tiptapify.vue +15 -3
  8. package/src/components/Toolbar/GroupBtn.vue +0 -1
  9. package/src/components/Toolbar/Toggle.vue +2 -3
  10. package/src/components/Toolbar/defaultExtensionComponents.ts +13 -1
  11. package/src/components/UI/TiptapifyDialog.vue +2 -3
  12. package/src/components/editorExtensions.ts +5 -0
  13. package/src/composables/Toolbar/Actions/useRedo.ts +1 -2
  14. package/src/composables/Toolbar/Actions/useUndo.ts +1 -2
  15. package/src/composables/Toolbar/Alignment/useAlignmentCenter.ts +1 -2
  16. package/src/composables/Toolbar/Alignment/useAlignmentJustify.ts +1 -2
  17. package/src/composables/Toolbar/Alignment/useAlignmentLeft.ts +1 -2
  18. package/src/composables/Toolbar/Alignment/useAlignmentRight.ts +1 -2
  19. package/src/composables/Toolbar/Format/useBold.ts +1 -2
  20. package/src/composables/Toolbar/Format/useItalic.ts +1 -2
  21. package/src/composables/Toolbar/Format/useStrike.ts +1 -2
  22. package/src/composables/Toolbar/Format/useUnderline.ts +1 -2
  23. package/src/composables/Toolbar/FormatExtra/useBlockquote.ts +1 -2
  24. package/src/composables/Toolbar/FormatExtra/useCode.ts +1 -2
  25. package/src/composables/Toolbar/FormatExtra/useCodeBlock.ts +1 -2
  26. package/src/composables/Toolbar/FormatExtra/useSub.ts +1 -2
  27. package/src/composables/Toolbar/FormatExtra/useSup.ts +1 -2
  28. package/src/composables/Toolbar/List/useBullet.ts +1 -2
  29. package/src/composables/Toolbar/List/useIndent.ts +1 -2
  30. package/src/composables/Toolbar/List/useNumbered.ts +1 -2
  31. package/src/composables/Toolbar/List/useOutdent.ts +1 -2
  32. package/src/composables/Toolbar/List/useTask.ts +1 -2
  33. package/src/composables/Toolbar/Media/useEmoji.ts +19 -0
  34. package/src/composables/Toolbar/Media/useImage.ts +1 -2
  35. package/src/composables/Toolbar/Media/useLink.ts +1 -2
  36. package/src/composables/Toolbar/Media/useTable.ts +1 -2
  37. package/src/composables/Toolbar/Media/useVideo.ts +22 -0
  38. package/src/composables/Toolbar/Misc/useBreak.ts +1 -2
  39. package/src/composables/Toolbar/Misc/useFormatClear.ts +1 -2
  40. package/src/composables/Toolbar/Misc/useInvisibleCharacters.ts +1 -2
  41. package/src/composables/Toolbar/Misc/useLine.ts +1 -2
  42. package/src/composables/Toolbar/Misc/usePreview.ts +1 -2
  43. package/src/composables/Toolbar/Misc/useSource.ts +1 -2
  44. package/src/composables/Toolbar/Style/useColor.ts +1 -2
  45. package/src/composables/Toolbar/Style/useFontFamily.ts +1 -2
  46. package/src/composables/Toolbar/Style/useFontSize.ts +1 -2
  47. package/src/composables/Toolbar/Style/useHeading.ts +1 -2
  48. package/src/composables/Toolbar/Style/useHighlight.ts +1 -2
  49. package/src/composables/Toolbar/Style/useLineHeight.ts +1 -2
  50. package/src/composables/Toolbar/useMediaItems.ts +4 -0
  51. package/src/extensions/components/Emoji.vue +108 -0
  52. package/src/extensions/components/FontFamily.vue +1 -2
  53. package/src/extensions/components/FontSize.vue +1 -2
  54. package/src/extensions/components/ImageDialog.vue +1 -2
  55. package/src/extensions/components/LineHeight.vue +1 -2
  56. package/src/extensions/components/LinkDialog.vue +1 -2
  57. package/src/extensions/components/ShowSourceDialog.vue +1 -2
  58. package/src/extensions/components/StyleColor.vue +1 -2
  59. package/src/extensions/components/TableBuilder.vue +1 -2
  60. package/src/extensions/components/VideoDialog.vue +138 -0
  61. package/src/extensions/emoji/activities.ts +770 -0
  62. package/src/extensions/emoji/animals_and_nature.ts +1330 -0
  63. package/src/extensions/emoji/component.ts +74 -0
  64. package/src/extensions/emoji/flags.ts +2210 -0
  65. package/src/extensions/emoji/food_and_drink.ts +1066 -0
  66. package/src/extensions/emoji/index.ts +63 -0
  67. package/src/extensions/emoji/objects.ts +2514 -0
  68. package/src/extensions/emoji/people_and_body.ts +3986 -0
  69. package/src/extensions/emoji/smileys_and_emotion.ts +1482 -0
  70. package/src/extensions/emoji/symbols.ts +2242 -0
  71. package/src/extensions/emoji/travel_and_places.ts +2138 -0
  72. package/src/i18n/index.ts +23 -10
  73. package/src/i18n/locales/ch.json +18 -0
  74. package/src/i18n/locales/cz.json +18 -0
  75. package/src/i18n/locales/de.json +18 -0
  76. package/src/i18n/locales/en.json +21 -1
  77. package/src/i18n/locales/es.json +18 -0
  78. package/src/i18n/locales/fr.json +18 -0
  79. package/src/i18n/locales/it.json +18 -0
  80. package/src/i18n/locales/la.json +18 -0
  81. package/src/i18n/locales/lt.json +18 -0
  82. package/src/i18n/locales/nl.json +18 -0
  83. package/src/i18n/locales/pl.json +18 -0
  84. package/src/i18n/locales/pt.json +18 -0
  85. package/src/i18n/locales/ru.json +21 -1
  86. package/src/i18n/locales/se.json +18 -0
  87. package/src/i18n/locales/ua.json +21 -1
  88. package/src/index.ts +0 -3
package/src/i18n/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { createI18n } from 'vue-i18n'
2
+ import { ref, computed } from 'vue'
2
3
 
3
4
  const messages = Object.fromEntries(
4
5
  Object.entries(
@@ -6,17 +7,29 @@ const messages = Object.fromEntries(
6
7
  .map(([key, value]) => [key.slice(10, -5), value.default]),
7
8
  )
8
9
 
9
- let _i18n: any = null
10
+ export function useLocale(initialLocale: string = 'en') {
11
+ const currentLocale = ref(initialLocale)
10
12
 
11
- export const getI18n = (locale: string) => {
12
- if (_i18n === null) {
13
- _i18n = createI18n({
14
- legacy: false,
15
- locale: locale,
16
- fallbackLocale: 'en',
17
- messages
18
- })
13
+ const i18n = createI18n({
14
+ legacy: false,
15
+ locale: currentLocale.value,
16
+ fallbackLocale: 'en',
17
+ messages
18
+ })
19
+
20
+ const { t, locale } = i18n.global
21
+
22
+ const setLocale = (newLocale: string) => {
23
+ if (messages[newLocale]) {
24
+ currentLocale.value = newLocale
25
+ locale.value = newLocale
26
+ }
19
27
  }
20
28
 
21
- return _i18n
29
+ return {
30
+ i18n,
31
+ t,
32
+ locale: computed(() => currentLocale.value),
33
+ setLocale
34
+ }
22
35
  }
@@ -41,6 +41,18 @@
41
41
  "media": {
42
42
  "link": "外部链接",
43
43
  "image": "图片",
44
+ "emoji": {
45
+ "activities": "活动",
46
+ "animals_and_nature": "动物与自然",
47
+ "component": "组件",
48
+ "flags": "旗帜",
49
+ "food_and_drink": "食物与饮料",
50
+ "objects": "物品",
51
+ "people_and_body": "人物与身体",
52
+ "smileys_and_emotion": "笑脸与情感",
53
+ "symbols": "符号",
54
+ "travel_and_places": "旅行与地点"
55
+ },
44
56
  "tables": {
45
57
  "table": "表格",
46
58
  "insertTable": "插入表格",
@@ -106,6 +118,12 @@
106
118
  "source": {
107
119
  "title": "查看源代码",
108
120
  "prettify": "美化"
121
+ },
122
+ "video": {
123
+ "title": "添加/编辑视频",
124
+ "src": "来源",
125
+ "width": "宽度",
126
+ "height": "高度"
109
127
  }
110
128
  },
111
129
  "misc": {
@@ -41,6 +41,18 @@
41
41
  "media": {
42
42
  "link": "Externí odkaz",
43
43
  "image": "Obrázek",
44
+ "emoji": {
45
+ "activities": "Aktivity",
46
+ "animals_and_nature": "Zvířata a příroda",
47
+ "component": "Komponenta",
48
+ "flags": "Vlajky",
49
+ "food_and_drink": "Jídlo a nápoje",
50
+ "objects": "Objekty",
51
+ "people_and_body": "Lidé a tělo",
52
+ "smileys_and_emotion": "Úsměvy a emoce",
53
+ "symbols": "Symboly",
54
+ "travel_and_places": "Cestování a místa"
55
+ },
44
56
  "tables": {
45
57
  "table": "Tabulka",
46
58
  "insertTable": "Vložit tabulku",
@@ -106,6 +118,12 @@
106
118
  "source": {
107
119
  "title": "Zobrazit zdrojový kód",
108
120
  "prettify": "prettify"
121
+ },
122
+ "video": {
123
+ "title": "Přidat/upravit video",
124
+ "src": "Zdroj",
125
+ "width": "Šířka",
126
+ "height": "Výška"
109
127
  }
110
128
  },
111
129
  "misc": {
@@ -41,6 +41,18 @@
41
41
  "media": {
42
42
  "link": "Externer Link",
43
43
  "image": "Bild",
44
+ "emoji": {
45
+ "activities": "Aktivitäten",
46
+ "animals_and_nature": "Tiere & Natur",
47
+ "component": "Komponente",
48
+ "flags": "Flaggen",
49
+ "food_and_drink": "Essen und Trinken",
50
+ "objects": "Objekte",
51
+ "people_and_body": "Menschen & Körper",
52
+ "smileys_and_emotion": "Smileys und Emotionen",
53
+ "symbols": "Symbole",
54
+ "travel_and_places": "Reisen und Orte"
55
+ },
44
56
  "tables": {
45
57
  "table": "Tabelle",
46
58
  "insertTable": "Tabelle einfügen",
@@ -106,6 +118,12 @@
106
118
  "source": {
107
119
  "title": "Quellcode anzeigen",
108
120
  "prettify": "prettify"
121
+ },
122
+ "video": {
123
+ "title": "Video hinzufügen/bearbeiten",
124
+ "src": "Quelle",
125
+ "width": "Breite",
126
+ "height": "Höhe"
109
127
  }
110
128
  },
111
129
  "misc": {
@@ -41,6 +41,19 @@
41
41
  "media": {
42
42
  "link": "External link",
43
43
  "image": "Image",
44
+ "emoji": {
45
+ "title": "Emoji",
46
+ "activities": "Activities",
47
+ "animals_and_nature": "Animals & nature",
48
+ "component": "Component",
49
+ "flags": "Flags",
50
+ "food_and_drink": "Food and drink",
51
+ "objects": "Objects",
52
+ "people_and_body": "People & body",
53
+ "smileys_and_emotion": "Smileys and emotion",
54
+ "symbols": "Symbols",
55
+ "travel_and_places": "Travel and places"
56
+ },
44
57
  "tables": {
45
58
  "table": "Table",
46
59
  "insertTable": "Insert table",
@@ -58,7 +71,8 @@
58
71
  "deleteCol": "Delete column",
59
72
  "mergeCells": "Merge cells",
60
73
  "splitCell": "Split cell"
61
- }
74
+ },
75
+ "video": "Video"
62
76
  },
63
77
  "action": {
64
78
  "undo": "Undo",
@@ -106,6 +120,12 @@
106
120
  "source": {
107
121
  "title": "View source code",
108
122
  "prettify": "Prettify"
123
+ },
124
+ "video": {
125
+ "title": "Add/edit video",
126
+ "src": "Source",
127
+ "width": "Width",
128
+ "height": "Height"
109
129
  }
110
130
  },
111
131
  "misc": {
@@ -41,6 +41,18 @@
41
41
  "media": {
42
42
  "link": "Enlace externo",
43
43
  "image": "Imagen",
44
+ "emoji": {
45
+ "activities": "Actividades",
46
+ "animals_and_nature": "Animales y naturaleza",
47
+ "component": "Componente",
48
+ "flags": "Banderas",
49
+ "food_and_drink": "Comida y bebida",
50
+ "objects": "Objetos",
51
+ "people_and_body": "Personas y cuerpo",
52
+ "smileys_and_emotion": "Caritas y emociones",
53
+ "symbols": "Símbolos",
54
+ "travel_and_places": "Viajes y lugares"
55
+ },
44
56
  "tables": {
45
57
  "table": "Tabla",
46
58
  "insertTable": "Insertar tabla",
@@ -106,6 +118,12 @@
106
118
  "source": {
107
119
  "title": "Ver código fuente",
108
120
  "prettify": "prettify"
121
+ },
122
+ "video": {
123
+ "title": "Agregar/editar video",
124
+ "src": "Fuente",
125
+ "width": "Ancho",
126
+ "height": "Alto"
109
127
  }
110
128
  },
111
129
  "misc": {
@@ -42,6 +42,18 @@
42
42
  "media": {
43
43
  "link": "Lien externe",
44
44
  "image": "Image",
45
+ "emoji": {
46
+ "activities": "Activités",
47
+ "animals_and_nature": "Animaux et nature",
48
+ "component": "Composant",
49
+ "flags": "Drapeaux",
50
+ "food_and_drink": "Nourriture et boissons",
51
+ "objects": "Objets",
52
+ "people_and_body": "Personnes et corps",
53
+ "smileys_and_emotion": "Smileys et émotions",
54
+ "symbols": "Symboles",
55
+ "travel_and_places": "Voyages et lieux"
56
+ },
45
57
  "tables": {
46
58
  "table": "Tableau",
47
59
  "insertTable": "Insérer un tableau",
@@ -107,6 +119,12 @@
107
119
  "source": {
108
120
  "title": "Voir le code source",
109
121
  "prettify": "prettify"
122
+ },
123
+ "video": {
124
+ "title": "Ajouter/modifier une vidéo",
125
+ "src": "Source",
126
+ "width": "Largeur",
127
+ "height": "Hauteur"
110
128
  }
111
129
  },
112
130
  "misc": {
@@ -41,6 +41,18 @@
41
41
  "media": {
42
42
  "link": "Collegamento esterno",
43
43
  "image": "Immagine",
44
+ "emoji": {
45
+ "activities": "Attività",
46
+ "animals_and_nature": "Animali e natura",
47
+ "component": "Componente",
48
+ "flags": "Bandiere",
49
+ "food_and_drink": "Cibo e bevande",
50
+ "objects": "Oggetti",
51
+ "people_and_body": "Persone e corpo",
52
+ "smileys_and_emotion": "Faccine ed emozioni",
53
+ "symbols": "Simboli",
54
+ "travel_and_places": "Viaggi e luoghi"
55
+ },
44
56
  "tables": {
45
57
  "table": "Tabella",
46
58
  "insertTable": "Inserisci tabella",
@@ -106,6 +118,12 @@
106
118
  "source": {
107
119
  "title": "Visualizza codice sorgente",
108
120
  "prettify": "prettify"
121
+ },
122
+ "video": {
123
+ "title": "Aggiungi/modifica video",
124
+ "src": "Sorgente",
125
+ "width": "Larghezza",
126
+ "height": "Altezza"
109
127
  }
110
128
  },
111
129
  "misc": {
@@ -41,6 +41,18 @@
41
41
  "media": {
42
42
  "link": "Nexus externus",
43
43
  "image": "Imago",
44
+ "emoji": {
45
+ "activities": "Activitates",
46
+ "animals_and_nature": "Animalia et natura",
47
+ "component": "Componens",
48
+ "flags": "Vexilla",
49
+ "food_and_drink": "Cibus et potus",
50
+ "objects": "Objecta",
51
+ "people_and_body": "Homines et corpus",
52
+ "smileys_and_emotion": "Risus et affectus",
53
+ "symbols": "Symbola",
54
+ "travel_and_places": "Iter et loca"
55
+ },
44
56
  "tables": {
45
57
  "table": "Tabula",
46
58
  "insertTable": "Tabulam inserere",
@@ -106,6 +118,12 @@
106
118
  "source": {
107
119
  "title": "Codicem fontem videre",
108
120
  "prettify": "prettify"
121
+ },
122
+ "video": {
123
+ "title": "Addere/mutare video",
124
+ "src": "Fons",
125
+ "width": "Latitudo",
126
+ "height": "Altitudo"
109
127
  }
110
128
  },
111
129
  "misc": {
@@ -41,6 +41,18 @@
41
41
  "media": {
42
42
  "link": "Išorinė nuoroda",
43
43
  "image": "Paveikslas",
44
+ "emoji": {
45
+ "activities": "Veiklos",
46
+ "animals_and_nature": "Gyvūnai ir gamta",
47
+ "component": "Komponentas",
48
+ "flags": "Vėliavos",
49
+ "food_and_drink": "Maistas ir gėrimai",
50
+ "objects": "Objektai",
51
+ "people_and_body": "Žmonės ir kūnas",
52
+ "smileys_and_emotion": "Šypsenos ir emocijos",
53
+ "symbols": "Simboliai",
54
+ "travel_and_places": "Kelionės ir vietos"
55
+ },
44
56
  "tables": {
45
57
  "table": "Lentelė",
46
58
  "insertTable": "Įterpti lentelę",
@@ -106,6 +118,12 @@
106
118
  "source": {
107
119
  "title": "Žiūrėti išeities kodą",
108
120
  "prettify": "prettify"
121
+ },
122
+ "video": {
123
+ "title": "Pridėti/redaguoti vaizdo įrašą",
124
+ "src": "Šaltinis",
125
+ "width": "Plotis",
126
+ "height": "Aukštis"
109
127
  }
110
128
  },
111
129
  "misc": {
@@ -41,6 +41,18 @@
41
41
  "media": {
42
42
  "link": "Externe link",
43
43
  "image": "Afbeelding",
44
+ "emoji": {
45
+ "activities": "Activiteiten",
46
+ "animals_and_nature": "Dieren en natuur",
47
+ "component": "Component",
48
+ "flags": "Vlaggen",
49
+ "food_and_drink": "Eten en drinken",
50
+ "objects": "Objecten",
51
+ "people_and_body": "Mensen en lichaam",
52
+ "smileys_and_emotion": "Smileys en emoties",
53
+ "symbols": "Symbolen",
54
+ "travel_and_places": "Reizen en plaatsen"
55
+ },
44
56
  "tables": {
45
57
  "table": "Tabel",
46
58
  "insertTable": "Tabel invoegen",
@@ -106,6 +118,12 @@
106
118
  "source": {
107
119
  "title": "Broncode bekijken",
108
120
  "prettify": "prettify"
121
+ },
122
+ "video": {
123
+ "title": "Video toevoegen/bewerken",
124
+ "src": "Bron",
125
+ "width": "Breedte",
126
+ "height": "Hoogte"
109
127
  }
110
128
  },
111
129
  "misc": {
@@ -41,6 +41,18 @@
41
41
  "media": {
42
42
  "link": "Link zewnętrzny",
43
43
  "image": "Obraz",
44
+ "emoji": {
45
+ "activities": "Aktywności",
46
+ "animals_and_nature": "Zwierzęta i natura",
47
+ "component": "Komponent",
48
+ "flags": "Flagi",
49
+ "food_and_drink": "Jedzenie i napoje",
50
+ "objects": "Obiekty",
51
+ "people_and_body": "Ludzie i ciało",
52
+ "smileys_and_emotion": "Buźki i emocje",
53
+ "symbols": "Symbole",
54
+ "travel_and_places": "Podróże i miejsca"
55
+ },
44
56
  "tables": {
45
57
  "table": "Tabela",
46
58
  "insertTable": "Wstaw tabelę",
@@ -106,6 +118,12 @@
106
118
  "source": {
107
119
  "title": "Pokaż kod źródłowy",
108
120
  "prettify": "prettify"
121
+ },
122
+ "video": {
123
+ "title": "Dodaj/edytuj wideo",
124
+ "src": "Źródło",
125
+ "width": "Szerokość",
126
+ "height": "Wysokość"
109
127
  }
110
128
  },
111
129
  "misc": {
@@ -41,6 +41,18 @@
41
41
  "media": {
42
42
  "link": "Link externo",
43
43
  "image": "Imagem",
44
+ "emoji": {
45
+ "activities": "Atividades",
46
+ "animals_and_nature": "Animais e natureza",
47
+ "component": "Componente",
48
+ "flags": "Bandeiras",
49
+ "food_and_drink": "Comida e bebida",
50
+ "objects": "Objetos",
51
+ "people_and_body": "Pessoas e corpo",
52
+ "smileys_and_emotion": "Smileys e emoções",
53
+ "symbols": "Símbolos",
54
+ "travel_and_places": "Viagens e lugares"
55
+ },
44
56
  "tables": {
45
57
  "table": "Tabela",
46
58
  "insertTable": "Inserir tabela",
@@ -106,6 +118,12 @@
106
118
  "source": {
107
119
  "title": "Ver código fonte",
108
120
  "prettify": "prettify"
121
+ },
122
+ "video": {
123
+ "title": "Adicionar/editar vídeo",
124
+ "src": "Fonte",
125
+ "width": "Largura",
126
+ "height": "Altura"
109
127
  }
110
128
  },
111
129
  "misc": {
@@ -41,6 +41,19 @@
41
41
  "media": {
42
42
  "link": "Внешняя ссылка",
43
43
  "image": "Изображение",
44
+ "emoji": {
45
+ "title": "Эмодзи",
46
+ "activities": "Активности",
47
+ "animals_and_nature": "Животные и природа",
48
+ "component": "Компонент",
49
+ "flags": "Флаги",
50
+ "food_and_drink": "Еда и напитки",
51
+ "objects": "Объекты",
52
+ "people_and_body": "Люди и части тела",
53
+ "smileys_and_emotion": "Смайлики и эмоции",
54
+ "symbols": "Символы",
55
+ "travel_and_places": "Путешествия и места"
56
+ },
44
57
  "tables": {
45
58
  "table": "Таблица",
46
59
  "insertTable": "Вставить таблицу",
@@ -58,7 +71,8 @@
58
71
  "deleteCol": "Удалить колонку",
59
72
  "mergeCells": "Объединить ячейки",
60
73
  "splitCell": "Разделить ячейку"
61
- }
74
+ },
75
+ "video": "Видео"
62
76
  },
63
77
  "action": {
64
78
  "undo": "Отмена",
@@ -106,6 +120,12 @@
106
120
  "source": {
107
121
  "title": "Просмотр исходного кода",
108
122
  "prettify": "prettify"
123
+ },
124
+ "video": {
125
+ "title": "Добавление/изменение видео",
126
+ "src": "Источник",
127
+ "width": "Ширина",
128
+ "height": "Высота"
109
129
  }
110
130
  },
111
131
  "misc": {
@@ -41,6 +41,18 @@
41
41
  "media": {
42
42
  "link": "Extern länk",
43
43
  "image": "Bild",
44
+ "emoji": {
45
+ "activities": "Aktiviteter",
46
+ "animals_and_nature": "Djur och natur",
47
+ "component": "Komponent",
48
+ "flags": "Flaggor",
49
+ "food_and_drink": "Mat och dryck",
50
+ "objects": "Objekt",
51
+ "people_and_body": "Människor och kropp",
52
+ "smileys_and_emotion": "Smileys och känslor",
53
+ "symbols": "Symboler",
54
+ "travel_and_places": "Resor och platser"
55
+ },
44
56
  "tables": {
45
57
  "table": "Tabell",
46
58
  "insertTable": "Sätt in tabell",
@@ -106,6 +118,12 @@
106
118
  "source": {
107
119
  "title": "Visa källkod",
108
120
  "prettify": "prettify"
121
+ },
122
+ "video": {
123
+ "title": "Lägg till/redigera video",
124
+ "src": "Källa",
125
+ "width": "Bredd",
126
+ "height": "Höjd"
109
127
  }
110
128
  },
111
129
  "misc": {
@@ -41,6 +41,19 @@
41
41
  "media": {
42
42
  "link": "Зовнішнє посилання",
43
43
  "image": "Зображення",
44
+ "emoji": {
45
+ "title": "Емодзі",
46
+ "activities": "Активності",
47
+ "animals_and_nature": "Тварини та природа",
48
+ "component": "Компонент",
49
+ "flags": "Прапори",
50
+ "food_and_drink": "Їжа та напої",
51
+ "objects": "Об'єкти",
52
+ "people_and_body": "Люди та частини тіла",
53
+ "smileys_and_emotion": "Смайлики та емоції",
54
+ "symbols": "Символи",
55
+ "travel_and_places": "Подорожі та місця"
56
+ },
44
57
  "tables": {
45
58
  "table": "Таблиця",
46
59
  "insertTable": "Вставити таблицю",
@@ -58,7 +71,8 @@
58
71
  "deleteCol": "Видалити колонку",
59
72
  "mergeCells": "Об'єднати клітинки",
60
73
  "splitCell": "Розділити клітинки"
61
- }
74
+ },
75
+ "video": "Відео"
62
76
  },
63
77
  "action": {
64
78
  "undo": "Відміна",
@@ -106,6 +120,12 @@
106
120
  "source": {
107
121
  "title": "Перегляд вихідного коду",
108
122
  "prettify": "prettify"
123
+ },
124
+ "video": {
125
+ "title": "Добавление/изменение відео",
126
+ "src": "Джерело",
127
+ "width": "Ширина",
128
+ "height": "Висота"
109
129
  }
110
130
  },
111
131
  "misc": {
package/src/index.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { Plugin } from 'vue';
2
2
  import Tiptapify from '@tiptapify/components/Tiptapify.vue';
3
3
  import TiptapifyDialog from '@tiptapify/components/UI/TiptapifyDialog.vue';
4
- import { getI18n } from "@tiptapify/i18n";
5
4
 
6
5
  interface PackageOptions {
7
6
  locale?: string;
@@ -9,8 +8,6 @@ interface PackageOptions {
9
8
 
10
9
  const TiptapifyPlugin: Plugin = {
11
10
  install(app, options: PackageOptions = {}) {
12
- const locale = options.locale || 'en'
13
- app.use(getI18n(locale));
14
11
  app.component('Tiptapify', Tiptapify);
15
12
  app.component('TiptapifyDialog', TiptapifyDialog);
16
13
  }