From 963a08234f9014994de8512ee8943dcc65caa539 Mon Sep 17 00:00:00 2001 From: andlil Date: Sun, 20 Sep 2020 11:40:39 +0200 Subject: [PATCH 1/4] Create sv_SE.json --- lang/sv_SE.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 lang/sv_SE.json diff --git a/lang/sv_SE.json b/lang/sv_SE.json new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/lang/sv_SE.json @@ -0,0 +1 @@ + From 7f8ab5344524cbf57816c03ec43f22352ea629b9 Mon Sep 17 00:00:00 2001 From: andlil Date: Sun, 20 Sep 2020 11:58:28 +0200 Subject: [PATCH 2/4] Update sv_SE.json --- lang/sv_SE.json | 95 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/lang/sv_SE.json b/lang/sv_SE.json index 8b137891..9a08f063 100644 --- a/lang/sv_SE.json +++ b/lang/sv_SE.json @@ -1 +1,96 @@ +{ + "button.add-account": "Lägg till konto", + "button.add-website": "Lägg till webbsajt", + "button.back": "Tillbaka", + "button.cancel": "Avbryt", + "button.change-password": "Byt lösenord", + "button.copy-to-clipboard": "Kopiera till urklipp", + "button.date-range": "Datumomfång", + "button.delete": "Radera", + "button.edit": "Redigera", + "button.login": "Logga in", + "button.more": "Mer", + "button.refresh": "Uppdatera", + "button.reset": "Återställ", + "button.save": "Spara", + "button.single-day": "En dag", + "button.view-details": "Visa detaljer", + "label.accounts": "Konton", + "label.administrator": "Administratör", + "label.confirm-password": "Bekräfta lösenord", + "label.current-password": "Nuvarande lösenord", + "label.custom-range": "Anpassat urval", + "label.dashboard": "Dashboard", + "label.default-date-range": "Standard datum-urval", + "label.domain": "Domän", + "label.enable-share-url": "Aktivera delnings-URL", + "label.invalid": "Ogiltig", + "label.invalid-domain": "Ogiltig domän", + "label.last-days": "Senaste {x} dagarna", + "label.last-hours": "Senaste {x} timmarna", + "label.logged-in-as": "Inloggad som {username}", + "label.logout": "Logga ut", + "label.name": "Namn", + "label.new-password": "Nytt lösenord", + "label.password": "Lösenord", + "label.passwords-dont-match": "Lösenorden är inte samma", + "label.profile": "Profil", + "label.required": "Krävs", + "label.settings": "Inställningar", + "label.this-month": "Denna månad", + "label.this-week": "Denna vecka", + "label.this-year": "Detta år", + "label.timezone": "Tidzon", + "label.today": "Idag", + "label.unknown": "Okänd", + "label.username": "Användarnamn", + "label.websites": "Webbsajt", + "message.active-users": "{x} just nu {x, plural, one {besökare} other {besökare}}", + "message.confirm-delete": "Är du säker på att du vill radera {target}?", + "message.copied": "Kopierad!", + "message.delete-warning": "All tillhörande data kommer också raderas.", + "message.failure": "Något gick fel.", + "message.get-share-url": "Visa delnings-URL", + "message.get-tracking-code": "Visa spårningskod", + "message.go-to-settings": "Gå till inställningar", + "message.incorrect-username-password": "Felaktikt användarnamn/lösenord.", + "message.no-data-available": "Ingen data tillgänglig.", + "message.no-websites-configured": "Du har inga webbsajter.", + "message.page-not-found": "Sidan kan inte hittas.", + "message.powered-by": "Drivs av {name}", + "message.save-success": "Sparades!", + "message.share-url": "Det här är den offentliga delnings-URL:en {target}.", + "message.track-stats": "För att spåra statistik för {target}, placera följande kod i {head}-avsnittet på din webbsajt.", + "message.type-delete": "Skriv {delete} i rutan nedan för att radera.", + "metrics.actions": "Händelser", + "metrics.average-visit-time": "Medelbesökstid", + "metrics.bounce-rate": "Avvisningfrekvens", + "metrics.browsers": "Webbläsare", + "metrics.countries": "Länder", + "metrics.device.desktop": "Desktop", + "metrics.device.laptop": "Laptop", + "metrics.device.mobile": "Mobil", + "metrics.device.tablet": "Platta", + "metrics.devices": "Enheter", + "metrics.events": "Händelser", + "metrics.filter.combined": "Kombinerade", + "metrics.filter.domain-only": "Endast domän", + "metrics.filter.raw": "Rå", + "metrics.operating-systems": "Operativsystem", + "metrics.page-views": "Sidvisningar", + "metrics.pages": "Sido", + "metrics.referrers": "Hänvisare", + "metrics.unique-visitors": "Unika besökare", + "metrics.views": "Visningar", + "metrics.visitors": "Besökare", + "title.add-account": "Lägg till konto", + "title.add-website": "Lägg till webbsajt", + "title.change-password": "Byt lösenord", + "title.delete-account": "Radera konto", + "title.delete-website": "Radera webbsajt", + "title.edit-account": "Redigera konto", + "title.edit-website": "Redigera webbsajt", + "title.share-url": "Delnings-URL", + "title.tracking-code": "Spårningskod" +} From 10bac8927e65970c0fbf03d7fedecb547709a68d Mon Sep 17 00:00:00 2001 From: andlil Date: Sun, 20 Sep 2020 12:03:23 +0200 Subject: [PATCH 3/4] Update sv_SE.json --- lang/sv_SE.json | 1 - 1 file changed, 1 deletion(-) diff --git a/lang/sv_SE.json b/lang/sv_SE.json index 9a08f063..91e32bd7 100644 --- a/lang/sv_SE.json +++ b/lang/sv_SE.json @@ -1,4 +1,3 @@ - { "button.add-account": "Lägg till konto", "button.add-website": "Lägg till webbsajt", From 9e33d5de77f8d50d95ad9ef16f384945414799fa Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Sun, 20 Sep 2020 11:38:37 -0700 Subject: [PATCH 4/4] Added Swedish language. --- lang/{sv_SE.json => sv-SE.json} | 0 lib/lang.js | 8 ++++++-- 2 files changed, 6 insertions(+), 2 deletions(-) rename lang/{sv_SE.json => sv-SE.json} (100%) 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' }, ];