Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ It retrieves audio, video and metadata from various Internet sources, such as:
- 한국어 ([@DDinghoya](https://github.com/DDinghoya))
- Polski ([@Lukas-KK](https://github.com/Lukas-KK))
- Русский ([@staniel359](https://github.com/staniel359))
- Gen Z ([@xyloflake](https://github.com/xyloflake), [@gamersi](https://github.com/gamersi))

### Technical stack

Expand Down
4 changes: 3 additions & 1 deletion electron/plugins/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import ko from './i18n/locales/ko.json' with { type: 'json' }
import pl from './i18n/locales/pl.json' with { type: 'json' }
import ru from './i18n/locales/ru.json' with { type: 'json' }
import zh from './i18n/locales/zh.json' with { type: 'json' }
import genz from './i18n/locales/genz.json' with { type: 'json' }

// i18n

Expand All @@ -32,7 +33,8 @@ const localesData = {
ko,
pl,
ru,
zh
zh,
genz
}

const options = {
Expand Down
13 changes: 13 additions & 0 deletions electron/plugins/i18n/locales/genz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"show": "Spill the tea",
"hide": "Yeet it",
"about": "Abt",
"exit": "Dip",
"update": {
"message": "New update droppin', no cap",
"buttons": {
"download": "Sounds rad, i'm down",
"close": "nah, i'm good"
}
}
}
3 changes: 2 additions & 1 deletion src/components/BaseEmojiPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export default {
ko: en,
pl,
ru,
zh
zh,
genz: en
}
}
},
Expand Down
4 changes: 4 additions & 0 deletions src/helpers/data/locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,9 @@ export default [
{
id: 'zh',
name: '中文'
},
{
id: 'genz',
name: 'Gen Z'
}
]
14 changes: 13 additions & 1 deletion src/plugins/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import ko from './i18n/locales/ko.json'
import pl from './i18n/locales/pl.json'
import ru from './i18n/locales/ru.json'
import zh from './i18n/locales/zh.json'
import genz from './i18n/locales/genz.json'
import slavicPluralizationRule
from './i18n/rules/pluralization/slavic.js'

Expand All @@ -30,7 +31,8 @@ const localesData = {
ko,
pl,
ru,
zh
zh,
genz
}

const pluralizationRules = {
Expand Down Expand Up @@ -168,6 +170,16 @@ if (import.meta.hot) {
)
}
)

import.meta.hot.accept(
'./i18n/locales/genz.json',
fileImport => {
i18n.global.setLocaleMessage(
'genz',
fileImport.default
)
}
)
}

export default i18n
Loading