Skip to content

Commit 6e17964

Browse files
authored
feat(i18n): el translation (#195)
Re #195
1 parent 8a89a67 commit 6e17964

4 files changed

Lines changed: 151 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ If you have Vuetify `1.x` (not `2.x`), then you can find docs and demo [here](ht
5353

5454
- used vuetify components
5555
- support for different types of icons ([fa](https://fontawesome.com/), [md](https://material.io/tools/icons/), [mdi](https://materialdesignicons.com/), [mdiSvg](https://vuetifyjs.com/en/customization/icons#install-material-design-icons-js-svg))
56-
- internationalization (en, es, fr, pl, ru, uk, ptbr, tr, he, nl, ja, de, ko, zh-CN, fa, sv, cs, it), with automatic detection of the current language through the Vuetify. You can make a PR for your language if it is not there, [here](https://github.com/iliyaZelenko/tiptap-vuetify/pull/118/files) is an example.
56+
- internationalization (en, es, fr, pl, ru, uk, ptbr, tr, he, nl, ja, de, ko, zh-CN, fa, sv, cs, it, el), with automatic detection of the current language through the Vuetify. You can make a PR for your language if it is not there, [here](https://github.com/iliyaZelenko/tiptap-vuetify/pull/118/files) is an example.
5757
- markdown support
5858
- easy to start using
5959
- props and events are available

demo/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { MAIN_MODULE } from './config'
2020

2121
const vuetify = new Vuetify({
2222
lang: {
23-
current: 'en' // en | es | fr | pl | ru | uk | ptbr | tr | he | nl | ja | de | ko | zh-CN | fa | sv | cs | it
23+
current: 'en' // en | es | fr | pl | ru | uk | ptbr | tr | he | nl | ja | de | ko | zh-CN | fa | sv | cs | it | el
2424
}
2525
})
2626

src/i18n/el/index.ts

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
export default {
2+
extensions: {
3+
Blockquote: {
4+
buttons: {
5+
blockquote: {
6+
tooltip: 'Παράθεση'
7+
}
8+
}
9+
},
10+
Bold: {
11+
buttons: {
12+
bold: {
13+
tooltip: 'Έντονη γραφή'
14+
}
15+
}
16+
},
17+
BulletList: {
18+
buttons: {
19+
bulletList: {
20+
tooltip: 'Λίστα με κουκκίδες'
21+
}
22+
}
23+
},
24+
Code: {
25+
buttons: {
26+
code: {
27+
tooltip: 'Κώδικας'
28+
}
29+
}
30+
},
31+
CodeBlock: {
32+
buttons: {
33+
codeBlock: {
34+
tooltip: 'Μπλοκ κώδικα'
35+
}
36+
}
37+
},
38+
History: {
39+
buttons: {
40+
undo: {
41+
tooltip: 'Αναίρεση'
42+
},
43+
redo: {
44+
tooltip: 'Ακύρωση αναίρεσης'
45+
}
46+
}
47+
},
48+
HorizontalRule: {
49+
buttons: {
50+
horizontalRule: {
51+
tooltip: 'Οριζόντια γραμμή'
52+
}
53+
}
54+
},
55+
Italic: {
56+
buttons: {
57+
italic: {
58+
tooltip: 'Πλάγια γραφή'
59+
}
60+
}
61+
},
62+
OrderedList: {
63+
buttons: {
64+
orderedList: {
65+
tooltip: 'Λίστα με αρίθμηση'
66+
}
67+
}
68+
},
69+
Paragraph: {
70+
buttons: {
71+
paragraph: {
72+
tooltip: 'Παράγραφος'
73+
}
74+
}
75+
},
76+
Strike: {
77+
buttons: {
78+
strike: {
79+
tooltip: 'Επιγράμμιση'
80+
}
81+
}
82+
},
83+
Underline: {
84+
buttons: {
85+
underline: {
86+
tooltip: 'Υπογράμμιση'
87+
}
88+
}
89+
},
90+
Heading: {
91+
buttons: {
92+
heading: {
93+
tooltip: ({ level }) => level + ' επίπεδο κεφαλίδας'
94+
}
95+
}
96+
},
97+
Link: {
98+
buttons: {
99+
isActive: {
100+
tooltip: 'Αλλαγή συνδέσμου'
101+
},
102+
notActive: {
103+
tooltip: 'Προσθήκη συνδέσμου'
104+
}
105+
},
106+
window: {
107+
title: 'Διαχείριση συνδέσμου',
108+
form: {
109+
hrefLabel: 'Διεύθυνση'
110+
},
111+
buttons: {
112+
close: 'Κλείσιμο',
113+
remove: 'Αφαίρεση',
114+
apply: 'Εφαρμογή'
115+
}
116+
}
117+
},
118+
Image: {
119+
buttons: {
120+
tooltip: 'Εικόνα'
121+
},
122+
window: {
123+
title: 'Προσθήκη εικόνας',
124+
form: {
125+
sourceLink: 'Διεύθυνση εικόνας',
126+
altText: 'Εναλλακτικό κείμενο',
127+
addImage: 'Προσθήκη εικόνας'
128+
},
129+
imageUpload: {
130+
instruction: 'Επιλέξτε ένα αρχείο ή σύρετε το εδώ.'
131+
},
132+
buttons: {
133+
close: 'Κλείσιμο',
134+
apply: 'Εφαρμογή'
135+
}
136+
}
137+
},
138+
TodoList: {
139+
buttons: {
140+
todoList: {
141+
tooltip: 'Λίστα εκκρεμοτήτων'
142+
}
143+
}
144+
}
145+
}
146+
}

src/i18n/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import fa from './fa'
1616
import sv from './sv'
1717
import cs from './cs'
1818
import it from './it'
19+
import el from './el'
1920

2021
import ConsoleLogger from '~/logging/ConsoleLogger'
2122
import { TiptapVuetifyPlugin } from '~/main'
@@ -39,7 +40,8 @@ export const dictionary = {
3940
fa,
4041
sv,
4142
cs,
42-
it
43+
it,
44+
el
4345
}
4446

4547
export function getCurrentLang () {

0 commit comments

Comments
 (0)