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 // 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 { export default {
ar: { ar: {
@ -15,9 +19,17 @@ export default {
ca: { ca: {
name: 'Català' name: 'Català'
}, },
ckb: {
name: 'کوردی',
dateFnsLocale: 'fa-IR'
// FIXME fallback to Farsi (`fa-IR`) is arbitrary, some would probably prefer Arabic (`ar`)...
},
cs: { cs: {
name: 'Čeština' name: 'Čeština'
}, },
da: {
name: 'Dansk'
},
de: { de: {
name: 'Deutsch' name: 'Deutsch'
}, },
@ -50,15 +62,31 @@ export default {
gl: { gl: {
name: 'Galego' name: 'Galego'
}, },
he: {
name: 'עברית'
},
hi: { hi: {
name: 'हिन्दी' name: 'हिन्दी'
}, },
hu: { hu: {
name: 'Magyar' name: 'Magyar'
}, },
id: {
name: 'Bahasa Indonesia'
},
it: { it: {
name: 'Italiano' name: 'Italiano'
}, },
kab: {
name: 'Taqbaylit',
dateFnsLocale: 'ar-DZ'
},
lt: {
name: 'Lietuvių'
},
mk: {
name: 'македонски'
},
nb_NO: { nb_NO: {
name: 'Norsk bokmål', name: 'Norsk bokmål',
dateFnsLocale: 'nb' dateFnsLocale: 'nb'
@ -80,12 +108,19 @@ export default {
pt: { pt: {
name: 'Português' name: 'Português'
}, },
pt_BR: {
name: 'Português brasileiro',
dateFnsLocale: 'pt-BR'
},
ru: { ru: {
name: 'Русский' name: 'Русский'
}, },
sk: { sk: {
name: 'Slovak' name: 'Slovak'
}, },
sl: {
name: 'Slovenščina'
},
sv: { sv: {
name: 'Svenska' name: 'Svenska'
}, },

View file

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