Skip to content

Commit

Permalink
Added Swedish language.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao committed Sep 20, 2020
1 parent 1ace5fb commit 9e33d5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
File renamed without changes.
8 changes: 6 additions & 2 deletions lib/lang.js
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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,
Expand All @@ -24,6 +25,7 @@ export const messages = {
'fr-FR': frMessages,
'mn-MN': mnMNMessages,
'da-DK': daMessages,
'sv-SE': svMessages,
};

export const dateLocales = {
Expand All @@ -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,
Expand All @@ -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' },
];

Expand Down

1 comment on commit 9e33d5d

@vercel
Copy link

@vercel vercel bot commented on 9e33d5d Sep 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.