mirror of https://github.com/Lissy93/dashy.git
🚚 Sorts languages alphabetically, by code
This commit is contained in:
parent
940879a7a7
commit
70a6cc6b64
|
@ -1,29 +1,30 @@
|
|||
// Locales - Import translation files here!
|
||||
// Locales - Import translation files here! (sort alphabetically)
|
||||
import en from '@/assets/locales/en.json';
|
||||
import ar from '@/assets/locales/ar.json';
|
||||
import bg from '@/assets/locales/bg.json';
|
||||
import cs from '@/assets/locales/cs.json';
|
||||
import da from '@/assets/locales/da.json';
|
||||
import de from '@/assets/locales/de.json';
|
||||
import es from '@/assets/locales/es.json';
|
||||
import fr from '@/assets/locales/fr.json';
|
||||
import hi from '@/assets/locales/hi.json';
|
||||
import it from '@/assets/locales/it.json';
|
||||
import ja from '@/assets/locales/ja.json';
|
||||
import ko from '@/assets/locales/ko.json';
|
||||
import nb from '@/assets/locales/nb.json';
|
||||
import nl from '@/assets/locales/nl.json';
|
||||
import pl from '@/assets/locales/pl.json';
|
||||
import fr from '@/assets/locales/fr.json';
|
||||
import sl from '@/assets/locales/sl.json';
|
||||
import es from '@/assets/locales/es.json';
|
||||
import it from '@/assets/locales/it.json';
|
||||
import zhCN from '@/assets/locales/zh-CN.json';
|
||||
import zhTW from '@/assets/locales/zh-TW.json';
|
||||
import ar from '@/assets/locales/ar.json';
|
||||
import hi from '@/assets/locales/hi.json';
|
||||
import ja from '@/assets/locales/ja.json';
|
||||
import pt from '@/assets/locales/pt.json';
|
||||
import ru from '@/assets/locales/ru.json';
|
||||
import nb from '@/assets/locales/nb.json';
|
||||
import pirate from '@/assets/locales/zz-pirate.json';
|
||||
import sv from '@/assets/locales/sv.json';
|
||||
import bg from '@/assets/locales/bg.json';
|
||||
import ko from '@/assets/locales/ko.json';
|
||||
import sk from '@/assets/locales/sk.json';
|
||||
import da from '@/assets/locales/da.json';
|
||||
import cs from '@/assets/locales/cs.json';
|
||||
import sl from '@/assets/locales/sl.json';
|
||||
import sv from '@/assets/locales/sv.json';
|
||||
import zhCN from '@/assets/locales/zh-CN.json';
|
||||
import zhTW from '@/assets/locales/zh-TW.json';
|
||||
import pirate from '@/assets/locales/zz-pirate.json';
|
||||
|
||||
// Language data - Next register your language by adding it to this list
|
||||
// Sorted alphabetically by code (except English which is first, and specials at the end)
|
||||
export const languages = [
|
||||
{
|
||||
name: 'English',
|
||||
|
@ -31,14 +32,80 @@ export const languages = [
|
|||
locale: en,
|
||||
flag: '🇬🇧',
|
||||
},
|
||||
{ // Arabic
|
||||
name: 'العربية',
|
||||
code: 'ar',
|
||||
locale: ar,
|
||||
flag: '🇦🇪',
|
||||
},
|
||||
{ // Bulgarian
|
||||
name: 'Български',
|
||||
code: 'bg',
|
||||
locale: bg,
|
||||
flag: '🇧🇬',
|
||||
},
|
||||
{ // Czech
|
||||
name: 'Čeština',
|
||||
code: 'cs',
|
||||
locale: cs,
|
||||
flag: '🇨🇿',
|
||||
},
|
||||
{ // Danish
|
||||
name: 'Dansk',
|
||||
code: 'da',
|
||||
locale: da,
|
||||
flag: '🇩🇰',
|
||||
},
|
||||
{ // German
|
||||
name: 'Deutsch',
|
||||
code: 'de',
|
||||
locale: de,
|
||||
flag: '🇩🇪',
|
||||
},
|
||||
{ // Spanish
|
||||
name: 'Español',
|
||||
code: 'es',
|
||||
locale: es,
|
||||
flag: '🇪🇸',
|
||||
},
|
||||
{
|
||||
name: 'Dutch',
|
||||
name: 'Français',
|
||||
code: 'fr',
|
||||
locale: fr,
|
||||
flag: '🇲🇫',
|
||||
},
|
||||
{ // Hindi
|
||||
name: 'नहीं',
|
||||
code: 'hi',
|
||||
locale: hi,
|
||||
flag: '🇮🇳',
|
||||
},
|
||||
{ // Italian
|
||||
name: 'Italiano',
|
||||
code: 'it',
|
||||
locale: it,
|
||||
flag: '🇮🇹',
|
||||
},
|
||||
{ // Japanese
|
||||
name: '日本語',
|
||||
code: 'ja',
|
||||
locale: ja,
|
||||
flag: '🇯🇵',
|
||||
},
|
||||
{ // Korean
|
||||
name: '한국어',
|
||||
code: 'ko',
|
||||
locale: ko,
|
||||
flag: '🇰🇷',
|
||||
},
|
||||
{ // Norwegian
|
||||
name: 'Norsk',
|
||||
code: 'nb',
|
||||
locale: nb,
|
||||
flag: '🇳🇴',
|
||||
},
|
||||
{ // Dutch
|
||||
name: 'Nederlands',
|
||||
code: 'nl',
|
||||
locale: nl,
|
||||
flag: '🇳🇱',
|
||||
|
@ -49,60 +116,6 @@ export const languages = [
|
|||
locale: pl,
|
||||
flag: '🇵🇱',
|
||||
},
|
||||
{
|
||||
name: 'Français',
|
||||
code: 'fr',
|
||||
locale: fr,
|
||||
flag: '🇲🇫',
|
||||
},
|
||||
{
|
||||
name: 'Slovenščina',
|
||||
code: 'sl',
|
||||
locale: sl,
|
||||
flag: '🇸🇮',
|
||||
},
|
||||
{ // Spanish
|
||||
name: 'Español',
|
||||
code: 'es',
|
||||
locale: es,
|
||||
flag: '🇪🇸',
|
||||
},
|
||||
{ // Italian
|
||||
name: 'Italiano',
|
||||
code: 'it',
|
||||
locale: it,
|
||||
flag: '🇮🇹',
|
||||
},
|
||||
{ // Chinese
|
||||
name: '简体中文',
|
||||
code: 'cn',
|
||||
locale: zhCN,
|
||||
flag: '🇨🇳',
|
||||
},
|
||||
{ // Chinese
|
||||
name: '繁體中文',
|
||||
code: 'zh-TW',
|
||||
locale: zhTW,
|
||||
flag: '🇹🇼',
|
||||
},
|
||||
{ // Arabic
|
||||
name: 'العربية',
|
||||
code: 'ar',
|
||||
locale: ar,
|
||||
flag: '🇦🇪',
|
||||
},
|
||||
{ // Hindi
|
||||
name: 'नहीं',
|
||||
code: 'hi',
|
||||
locale: hi,
|
||||
flag: '🇮🇳',
|
||||
},
|
||||
{ // Japanese
|
||||
name: '日本語',
|
||||
code: 'ja',
|
||||
locale: ja,
|
||||
flag: '🇯🇵',
|
||||
},
|
||||
{ // Portuguese
|
||||
name: 'Português',
|
||||
code: 'pt',
|
||||
|
@ -115,17 +128,17 @@ export const languages = [
|
|||
locale: ru,
|
||||
flag: '🇷🇺',
|
||||
},
|
||||
{ // Norwegian
|
||||
name: 'Norsk',
|
||||
code: 'nb',
|
||||
locale: nb,
|
||||
flag: '🇳🇴',
|
||||
{ // Slovak
|
||||
name: 'Slovenčina',
|
||||
code: 'sk',
|
||||
locale: sk,
|
||||
flag: '🇸🇰',
|
||||
},
|
||||
{ // Joke Language - Pirate
|
||||
name: 'Pirate',
|
||||
code: 'pirate',
|
||||
locale: pirate,
|
||||
flag: '🏴☠️',
|
||||
{
|
||||
name: 'Slovenščina',
|
||||
code: 'sl',
|
||||
locale: sl,
|
||||
flag: '🇸🇮',
|
||||
},
|
||||
{ // Swedish
|
||||
name: 'Svenska',
|
||||
|
@ -133,35 +146,23 @@ export const languages = [
|
|||
locale: sv,
|
||||
flag: '🇸🇪',
|
||||
},
|
||||
{ // Bulgarian
|
||||
name: 'Български',
|
||||
code: 'bg',
|
||||
locale: bg,
|
||||
flag: '🇧🇬',
|
||||
{ // Chinese
|
||||
name: '简体中文',
|
||||
code: 'cn',
|
||||
locale: zhCN,
|
||||
flag: '🇨🇳',
|
||||
},
|
||||
{ // Korean
|
||||
name: '한국어',
|
||||
code: 'ko',
|
||||
locale: ko,
|
||||
flag: '🇰🇷',
|
||||
{ // Chinese
|
||||
name: '繁體中文',
|
||||
code: 'zh-TW',
|
||||
locale: zhTW,
|
||||
flag: '🇹🇼',
|
||||
},
|
||||
{ // Slovak
|
||||
name: 'Slovenčina',
|
||||
code: 'sk',
|
||||
locale: sk,
|
||||
flag: '🇸🇰',
|
||||
},
|
||||
{ // Danish
|
||||
name: 'Dansk',
|
||||
code: 'da',
|
||||
locale: da,
|
||||
flag: '🇩🇰',
|
||||
},
|
||||
{ // Czech
|
||||
name: 'Čeština',
|
||||
code: 'cs',
|
||||
locale: cs,
|
||||
flag: '🇨🇿',
|
||||
{ // Joke Language - Pirate
|
||||
name: 'Pirate',
|
||||
code: 'pirate',
|
||||
locale: pirate,
|
||||
flag: '🏴☠️',
|
||||
},
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in New Issue