mirror of
https://github.com/BeamMP/BeamMP-Website.git
synced 2026-05-20 00:20:18 +00:00
Add initial templates for additional languages
Co-Authored-By: Tixx <83774803+WiserTixx@users.noreply.github.com>
This commit is contained in:
+10
-1
@@ -1,7 +1,16 @@
|
||||
import { nextTick } from 'vue'
|
||||
import { createI18n } from 'vue-i18n'
|
||||
|
||||
export const SUPPORT_LOCALES = ['en']
|
||||
export const SUPPORT_LOCALES = ['en', 'es', 'fr', 'de', 'it', 'ru']
|
||||
|
||||
export const LANGUAGES = {
|
||||
en: { name: 'English', code: 'en', flag: 'gb' },
|
||||
es: { name: 'Español', code: 'es', flag: 'es' },
|
||||
fr: { name: 'Français', code: 'fr', flag: 'fr' },
|
||||
de: { name: 'Deutsch', code: 'de', flag: 'de' },
|
||||
it: { name: 'Italiano', code: 'it', flag: 'it' },
|
||||
ru: { name: 'Русский', code: 'ru', flag: 'ru' },
|
||||
}
|
||||
|
||||
export function setupI18n(options = { locale: 'en' }) {
|
||||
const i18n = createI18n(options)
|
||||
|
||||
Reference in New Issue
Block a user