locales: add ckb da he id kab lt mk pt_BR sl

This commit is contained in:
axolotle 2023-03-24 12:45:03 +01:00
parent 847b61e6fc
commit a97e83d961
2 changed files with 43 additions and 0 deletions

View file

@ -1,4 +1,8 @@
// When adding a new locale, check in date-fns (time/date i18n) if this locale
// is available or if an appropriate fallback is available.
// date-fns locales can be found here : https://github.com/date-fns/date-fns/tree/master/src/locale
// If a new locale or a new date-fns locale is added, add it to the supported
// locales list in `app/vue.config.js`
export default {
ar: {
@ -15,9 +19,17 @@ export default {
ca: {
name: 'Català'
},
ckb: {
name: 'کوردی',
dateFnsLocale: 'fa-IR'
// FIXME fallback to Farsi (`fa-IR`) is arbitrary, some would probably prefer Arabic (`ar`)...
},
cs: {
name: 'Čeština'
},
da: {
name: 'Dansk'
},
de: {
name: 'Deutsch'
},
@ -50,15 +62,31 @@ export default {
gl: {
name: 'Galego'
},
he: {
name: 'עברית'
},
hi: {
name: 'हिन्दी'
},
hu: {
name: 'Magyar'
},
id: {
name: 'Bahasa Indonesia'
},
it: {
name: 'Italiano'
},
kab: {
name: 'Taqbaylit',
dateFnsLocale: 'ar-DZ'
},
lt: {
name: 'Lietuvių'
},
mk: {
name: 'македонски'
},
nb_NO: {
name: 'Norsk bokmål',
dateFnsLocale: 'nb'
@ -80,12 +108,19 @@ export default {
pt: {
name: 'Português'
},
pt_BR: {
name: 'Português brasileiro',
dateFnsLocale: 'pt-BR'
},
ru: {
name: 'Русский'
},
sk: {
name: 'Slovak'
},
sl: {
name: 'Slovenščina'
},
sv: {
name: 'Svenska'
},

View file

@ -3,9 +3,11 @@ const fs = require('fs')
const dateFnsLocales = [
'ar',
'ar-DZ', // for `kab`
'bn', // for 'bn_BD'
'ca', // for 'ca' & 'oc'
'cs',
'da',
'de',
'el',
'en-GB', // for 'en' & 'ne'
@ -16,15 +18,21 @@ const dateFnsLocales = [
'fi',
'fr', // for 'fr' & 'br'
'gl',
'he',
'hi',
'hu',
'id',
'it',
'lt',
'mk',
'nb', // for 'nb_NO'
'nl',
'oc',
'pl',
'pt',
'pt-BR',
'ru',
'sl',
'sv',
'tr',
'uk',