Skip to content

Commit 387691e

Browse files
gamersistaniel359
authored andcommitted
genz translation init
1 parent 7784048 commit 387691e

File tree

8 files changed

+987
-4
lines changed

8 files changed

+987
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ It retrieves audio, video and metadata from various Internet sources, such as:
8484
- 한국어 ([@DDinghoya](https://github.com/DDinghoya))
8585
- Polski ([@Lukas-KK](https://github.com/Lukas-KK))
8686
- Русский ([@staniel359](https://github.com/staniel359))
87+
- Gen Z ([@xyloflake](https://github.com/xyloflake), [@gamersi](https://github.com/gamersi))
8788

8889
### Technical stack
8990

electron/plugins/i18n.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import ko from './i18n/locales/ko.json' with { type: 'json' }
1212
import pl from './i18n/locales/pl.json' with { type: 'json' }
1313
import ru from './i18n/locales/ru.json' with { type: 'json' }
1414
import zh from './i18n/locales/zh.json' with { type: 'json' }
15+
import genz from './i18n/locales/genz.json' with { type: 'json' }
1516

1617
// i18n
1718

@@ -32,7 +33,8 @@ const localesData = {
3233
ko,
3334
pl,
3435
ru,
35-
zh
36+
zh,
37+
genz
3638
}
3739

3840
const options = {
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"show": "Spill the tea",
3+
"hide": "Yeet it",
4+
"about": "Abt",
5+
"exit": "Dip",
6+
"update": {
7+
"message": "New update droppin', no cap",
8+
"buttons": {
9+
"download": "Sounds rad, i'm down",
10+
"close": "nah, i'm good"
11+
}
12+
}
13+
}

src/components/BaseEmojiPicker.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ export default {
4747
ko: en,
4848
pl,
4949
ru,
50-
zh
50+
zh,
51+
genz: en
5152
}
5253
}
5354
},

src/helpers/data/locales.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,9 @@ export default [
4949
{
5050
id: 'zh',
5151
name: '中文'
52+
},
53+
{
54+
id: 'genz',
55+
name: 'Gen Z'
5256
}
5357
]

src/plugins/i18n.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import ko from './i18n/locales/ko.json'
1313
import pl from './i18n/locales/pl.json'
1414
import ru from './i18n/locales/ru.json'
1515
import zh from './i18n/locales/zh.json'
16+
import genz from './i18n/locales/genz.json'
1617
import slavicPluralizationRule
1718
from './i18n/rules/pluralization/slavic.js'
1819

@@ -30,7 +31,8 @@ const localesData = {
3031
ko,
3132
pl,
3233
ru,
33-
zh
34+
zh,
35+
genz
3436
}
3537

3638
const pluralizationRules = {
@@ -168,6 +170,16 @@ if (import.meta.hot) {
168170
)
169171
}
170172
)
173+
174+
import.meta.hot.accept(
175+
'./i18n/locales/genz.json',
176+
fileImport => {
177+
i18n.global.setLocaleMessage(
178+
'genz',
179+
fileImport.default
180+
)
181+
}
182+
)
171183
}
172184

173185
export default i18n

0 commit comments

Comments
 (0)