mirror of
https://github.com/mmjee/Piped-Material.git
synced 2024-12-06 19:26:36 +01:00
Add fonts and Intl support for Sorani Kurdish
This commit is contained in:
+8
-1
@@ -19,10 +19,12 @@ export const i18n = new VueI18n({
|
||||
|
||||
export const TIME_AGO_EXCEPTIONS = {
|
||||
'bn-Beng': 'bn',
|
||||
'nb-NO': 'nb'
|
||||
'nb-NO': 'nb',
|
||||
ckb: 'ku'
|
||||
}
|
||||
|
||||
export const COUNTRY_I18N_EXCEPTIONS = {
|
||||
ckb: 'ku',
|
||||
'bn-Beng': 'bn',
|
||||
'nb-NO': 'nb',
|
||||
'zh-Hant': 'zh',
|
||||
@@ -52,6 +54,11 @@ async function syncStylesPerLanguage (locale) {
|
||||
break
|
||||
// Other languages
|
||||
// NOTE: if you are a native speaker & want to see a different font, just email me or join the channel
|
||||
case 'ckb':
|
||||
await import('@fontsource/noto-naskh-arabic/arabic.css')
|
||||
document.body.classList.remove(...document.body.classList)
|
||||
document.body.classList.add('sorani-kurdish')
|
||||
break
|
||||
case 'zh-Hant':
|
||||
await import('@fontsource/noto-sans-tc/chinese-traditional.css')
|
||||
document.body.classList.remove(...document.body.classList)
|
||||
|
||||
Reference in New Issue
Block a user