diff --git a/lang/sv_SE.json b/lang/sv-SE.json similarity index 100% rename from lang/sv_SE.json rename to lang/sv-SE.json diff --git a/lib/lang.js b/lib/lang.js index 8074c169..54dfa6de 100644 --- a/lib/lang.js +++ b/lib/lang.js @@ -1,5 +1,5 @@ import { format } from 'date-fns'; -import { enUS, nl, zhCN, tr, ru, de, ja, es, fr, da } from 'date-fns/locale'; +import { enUS, nl, zhCN, tr, ru, de, ja, es, fr, da, sv } from 'date-fns/locale'; import enMessages from 'lang-compiled/en-US.json'; import nlMessages from 'lang-compiled/nl-NL.json'; import zhCNMessages from 'lang-compiled/zh-CN.json'; @@ -11,6 +11,7 @@ import esMXMessages from 'lang-compiled/es-MX.json'; import frMessages from 'lang-compiled/fr-FR.json'; import mnMNMessages from 'lang-compiled/mn-MN.json'; import daMessages from 'lang-compiled/da-DK.json'; +import svMessages from 'lang-compiled/sv-SE.json'; export const messages = { 'en-US': enMessages, @@ -24,6 +25,7 @@ export const messages = { 'fr-FR': frMessages, 'mn-MN': mnMNMessages, 'da-DK': daMessages, + 'sv-SE': svMessages, }; export const dateLocales = { @@ -33,6 +35,7 @@ export const dateLocales = { 'de-DE': de, 'da-DK': da, 'ru-RU': ru, + 'sv-SE': sv, 'tr-TR': tr, 'ja-JP': ja, 'es-MX': es, @@ -47,10 +50,11 @@ export const menuOptions = [ { label: 'Deutsch', value: 'de-DE', display: 'DE' }, { label: 'Español', value: 'es-MX', display: 'ES' }, { label: 'Français', value: 'fr-FR', display: 'FR' }, - { label: '日本語', value: 'ja-JP', display: 'JP' }, + { label: '日本語', value: 'ja-JP', display: 'JA' }, { label: 'Монгол', value: 'mn-MN', display: 'MN' }, { label: 'Nederlands', value: 'nl-NL', display: 'NL' }, { label: 'Русский', value: 'ru-RU', display: 'RU' }, + { label: 'Svenska', value: 'sv-SE', display: 'SV' }, { label: 'Turkish', value: 'tr-TR', display: 'TR' }, ];