🌐 Re: #216 - Adds Spanish lang, thanks @lu4t
This commit is contained in:
@@ -4,9 +4,10 @@ import de from '@/assets/locales/de.json';
|
||||
import nl from '@/assets/locales/nl.json';
|
||||
import fr from '@/assets/locales/fr.json';
|
||||
import sl from '@/assets/locales/sl.json';
|
||||
import es from '@/assets/locales/es.json';
|
||||
import zhCN from '@/assets/locales/zh-CN.json';
|
||||
|
||||
// Language data - Add your country name, locale code and imported file here
|
||||
// Language data - Next register your language by adding it to this list
|
||||
export const languages = [
|
||||
{
|
||||
name: 'English',
|
||||
@@ -38,19 +39,32 @@ export const languages = [
|
||||
locale: sl,
|
||||
flag: '🇸🇮',
|
||||
},
|
||||
{
|
||||
name: 'Spanish',
|
||||
code: 'es',
|
||||
locale: es,
|
||||
flag: '🇪🇸',
|
||||
},
|
||||
{
|
||||
name: '简体中文',
|
||||
code: 'cn',
|
||||
locale: zhCN,
|
||||
flag: '🇨🇳',
|
||||
},
|
||||
// Including:
|
||||
// name - Human readable name for your language (e.g German)
|
||||
// code - ISO language code (e.g. de)
|
||||
// locale - The file that you imported above
|
||||
// flag - A nice emoji flag (optional, e.g. 🇩🇪)
|
||||
];
|
||||
|
||||
/**
|
||||
* Include the following info:
|
||||
* name - Human readable name for your language (e.g German)
|
||||
* code - ISO language code (e.g. de)
|
||||
* locale - The file that you imported above
|
||||
* flag - A nice emoji flag (optional, e.g. 🇩🇪)
|
||||
*/
|
||||
|
||||
// All done :)
|
||||
// You can also add your language to /README.md and credit yourself if you like
|
||||
|
||||
// Prepare each language for export
|
||||
const i18nMessages = {};
|
||||
languages.forEach((lang) => {
|
||||
i18nMessages[lang.code] = lang.locale;
|
||||
|
||||
Reference in New Issue
Block a user