From b514a997201f9f5e7cb81b3aa5b5182befc5c5b5 Mon Sep 17 00:00:00 2001 From: BOZG Date: Tue, 7 Dec 2021 08:08:00 +0100 Subject: [PATCH 1/3] Adding initial Swedish translation --- README.md | 1 + src/assets/locales/sv.json | 248 +++++++++++++++++++++++++++++++++++++ src/utils/languages.js | 7 ++ 3 files changed, 256 insertions(+) create mode 100644 src/assets/locales/sv.json diff --git a/README.md b/README.md index 6518e68f..73c06547 100644 --- a/README.md +++ b/README.md @@ -396,6 +396,7 @@ Dashy supports multiple languages and locales. When available, your language sho - 🇩đŸ‡Ș **Arabic**: `ar` - Contributed by Anon - 🇼🇳 **Hindi**: `hi` - Contributed by Anon - đŸ‡ŻđŸ‡” **Japanese**: `ja` - Contributed by Anon +- sv **Swedish**: `sv` - Contributed by **[@BOZG](https://github.com/BOZG)** #### Add your Language I would love Dashy to be available to everyone, without language being a barrier to entry. If you've got a few minutes to spare, consider adding translations for your language. It's a quick task and all text is in [a single JSON file](https://github.com/Lissy93/dashy/tree/master/src/assets/locales). Since any missing text will fallback to English, you don't need to translate it all. diff --git a/src/assets/locales/sv.json b/src/assets/locales/sv.json new file mode 100644 index 00000000..30b7b53c --- /dev/null +++ b/src/assets/locales/sv.json @@ -0,0 +1,248 @@ +{ + "home": { + "no-results": "Inga sökresultat", + "no-data": "Ingen data konfigurerad" + }, + "search": { + "search-label": "Sök", + "search-placeholder": "Börja skriva för att filtrera", + "clear-search-tooltip": "Rensa sök", + "enter-to-search-web": "Tryck pĂ„ Retur för att söka pĂ„ webben" + }, + "login": { + "title": "Dashy", + "username-label": "AnvĂ€ndarnamn", + "password-label": "Lösenord", + "login-button": "Logga in", + "remember-me-label": "Kom ihĂ„g mig", + "remember-me-never": "Aldrig", + "remember-me-hour": "4 Timmar", + "remember-me-day": "1 Dag", + "remember-me-week": "1 Vecka", + "remember-me-long-time": "LĂ€nge", + "error-missing-username": "AnvĂ€ndarnamn saknas", + "error-missing-password": "Lösenord saknas", + "error-incorrect-username": "AnvĂ€ndaren hittas inte", + "error-incorrect-password": "Fel lösenord", + "success-message": "Loggar in...", + "logout-message": "Utloggad", + "already-logged-in-title": "Redan inloggad", + "already-logged-in-text": "Du Ă€r inloggad som", + "proceed-to-dashboard": "FortsĂ€tt till Dashboard", + "log-out-button": "Logga ut", + "proceed-guest-button": "FortsĂ€tt som GĂ€st" + }, + "config": { + "main-tab": "Huvudmeny", + "view-config-tab": "Visa konfiguration", + "edit-config-tab": "Redigera konfiguration", + "custom-css-tab": "Egendefinierade stilmallar", + "heading": "Konfigurationsalternativ", + "download-config-button": "Visa / Exportera konfiguration", + "edit-config-button": "Redigera konfiguration", + "edit-css-button": "Redigera egendefinierad CSS", + "cloud-sync-button": "Aktivera molnsynkronisering", + "edit-cloud-sync-button": "Redigera molnsynkronisering", + "rebuild-app-button": "Återuppbygga appen", + "change-language-button": "Ändra appsprĂ„k", + "reset-settings-button": "ÅterstĂ€ll lokala instĂ€llningar", + "app-info-button": "Appinfo", + "backup-note": "Det rekommenderas att du gör en sĂ€kerhetskopia av din konfiguration innan du gör Ă€ndringar.", + "reset-config-msg-l1": "Detta tar bort alla anvĂ€ndarinstĂ€llningar frĂ„n lokal lagring, men pĂ„verkar inte din 'conf.yml'-fil", + "reset-config-msg-l2": "Du bör först göra en sĂ€kerhetskopia av alla Ă€ndringar du har gjort lokalt, om du vill anvĂ€nda dem i framtiden.", + "reset-config-msg-l3": "Är du sĂ€ker pĂ„ att du vill fortsĂ€tta?", + "data-cleared-msg": "Datarensning har lyckats", + "actions-label": "ÅtgĂ€rder", + "copy-config-label": "Kopiera konfiguration", + "data-copied-msg": "Konfiguration har kopierats till urklipp", + "reset-config-label": "ÅterstĂ€ll konfiguration", + "css-save-btn": "Spara Ă€ndringar", + "css-note-label": "Not", + "css-note-l1": "Du mĂ„ste uppdatera sidan för att dina Ă€ndringar ska gĂ€lla.", + "css-note-l2": "Styles overrides lagras bara lokalt, sĂ„ det rekommenderas att du gör en kopia av din CSS.", + "css-note-l3": "För att ta bort alla egendefinierade stilmallar, radera innehĂ„llet och tryck pĂ„ Spara Ă€ndringar" + }, + "alternate-views": { + "alternate-view-heading": "Ändra vy", + "default": "Standard", + "workspace": "Workspace", + "minimal": "Minimal" + }, + "settings": { + "theme-label": "Tema", + "layout-label": "Layout", + "layout-auto": "Auto", + "layout-horizontal": "VĂ„grĂ€t", + "layout-vertical": "LodrĂ€t", + "item-size-label": "Storlek", + "item-size-small": "Liten", + "item-size-medium": "Mellan", + "item-size-large": "Stor", + "config-launcher-label": "Konfig", + "config-launcher-tooltip": "Uppdatera konfiguration", + "sign-out-tooltip": "Logga ut", + "sign-in-tooltip": "Logga in", + "sign-in-welcome": "Hej {username}!" + }, + "updates": { + "app-version-note": "Dashy-version", + "up-to-date": "Uppdaterat", + "out-of-date": "Uppdatering finns", + "unsupported-version-l1": "Du anvĂ€nder en icke-stödd version av Dashy", + "unsupported-version-l2": "För den bĂ€sta upplevelsen och de senaste sĂ€kerhetskorrigeringarna, uppdatera till" + }, + "language-switcher": { + "title": "Ändra appsprĂ„k", + "dropdown-label": "VĂ€lj sprĂ„k", + "save-button": "Spara", + "success-msg": "SprĂ„ket har Ă€ndrats till" + }, + "theme-maker": { + "title": "Temakonfigurator", + "export-button": "Exportera egendefinierade variabler", + "reset-button": "ÅterstĂ€ll stilmallar för", + "show-all-button": "Visa alla variabler", + "change-fonts-button": "Ändra typsnitt", + "save-button": "Spara", + "cancel-button": "Avbryt", + "saved-toast": "Uppdatering av {theme} har lyckats", + "copied-toast": "Temadatan för {theme} har kopierats till urklipp", + "reset-toast": "Egendefinierade fĂ€rger för {theme} har tagits bort" + }, + "config-editor": { + "save-location-label": "Sparningsplats", + "location-local-label": "TillĂ€mpa lokalt", + "location-disk-label": "Skriv Ă€ndringar till konfigurationsfil", + "save-button": "Spara Ă€ndringar", + "preview-button": "Förhandsgranska Ă€ndringar", + "valid-label": "Konfigurationen Ă€r giltig", + "status-success-msg": "ÅtgĂ€rden slutförts", + "status-fail-msg": "ÅtgĂ€rden misslyckats", + "success-msg-disk": "Konfigurationsfil har skrivits till disk utan problem", + "success-msg-local": "Lokala Ă€ndringar har sparats utan problem", + "success-note-l1": "Återskapa", + "success-note-l2": "Detta kan ta upp till en minut.", + "success-note-l3": "Du mĂ„ste uppdatera sidan för att Ă€ndringar ska gĂ€lla", + "error-msg-save-mode": "VĂ€lj LagringslĂ€ge: Lokalt eller Fil", + "error-msg-cannot-save": "Ett fel uppstod nĂ€r konfigurationen skulle sparas", + "error-msg-bad-json": "Fel i JSON, möjligen felformaterat", + "warning-msg-validation": "Valideringsvarning", + "not-admin-note": "Du kan inte skriva Ă€ndringar till disk, eftersom du inte Ă€r inloggad som admin" + }, + "app-rebuild": { + "title": "Återskapa appen", + "rebuild-note-l1": "Appen mĂ„ste Ă„terskapas för att Ă€ndringar som skrivits till filen conf.yml ska gĂ€lla.", + "rebuild-note-l2": "Detta bör ske automatiskt, men om det inte har gjort det kan du aktivera det manuellt hĂ€r.", + "rebuild-note-l3": "Detta krĂ€vs inte för Ă€ndringar som lagras lokalt.", + "rebuild-button": "Återskapa", + "rebuilding-status-1": "Återskapar...", + "rebuilding-status-2": "Detta kan ta nĂ„gra minuter", + "error-permission": "Du har inte behörighet att utföra denna Ă„tgĂ€rd", + "success-msg": "Återskapning lyckats", + "fail-msg": "Återskapning misslyckats", + "reload-note": "En omladdning av sidan krĂ€vs nu för att Ă€ndringarna ska gĂ€lla", + "reload-button": "Ladda om sidan" + }, + "cloud-sync": { + "title": "MolnsĂ€kerhetskopiering och Ă„terstĂ€llning", + "intro-l1": "MolnsĂ€kerhetskopiering och Ă„terstĂ€llning Ă€r en valfri funktion som gör att du kan ladda upp din konfiguration till internet och sedan Ă„terstĂ€lla den pĂ„ nĂ„gon annan enhet eller instans av Dashy.", + "intro-l2": "All data Ă€r fullstĂ€ndigt end-to-end krypterad med AES, med ditt lösenord som nyckel.", + "intro-l3": "För mer information, vĂ€nligen se", + "backup-title-setup": "Gör en sĂ€kerhetskopia", + "backup-title-update": "Uppdatera sĂ€kerhetskopia", + "password-label-setup": "VĂ€lj lösenord", + "password-label-update": "Ange ditt lösenord", + "backup-button-setup": "SĂ€kerhetskopiering", + "backup-button-update": "Uppdatera sĂ€kerhetskopia", + "backup-id-label": "Ditt sĂ€kerhetskopierings-ID", + "backup-id-note": "Detta anvĂ€nds för att Ă„terstĂ€lla frĂ„n sĂ€kerhetskopior senare. SĂ„ förvara det tillsammans med ditt lösenord nĂ„gonstans sĂ€kert.", + "restore-title": "ÅterstĂ€ll en sĂ€kerhetskopia", + "restore-id-label": "ÅterstĂ€ll ID", + "restore-password-label": "Lösenord", + "restore-button": "ÅterstĂ€ll", + "backup-missing-password": "Lösenord saknas", + "backup-error-unknown": "BegĂ€ran kan inte behandlas", + "backup-error-password": "Fel lösenord. VĂ€nligen ange ditt aktuella lösenord.", + "backup-success-msg": "Slutfört utan problem", + "restore-success-msg": "Konfigurationen har Ă„terstĂ€llts utan problem" + }, + "menu": { + "open-section-title": "Öppna i", + "sametab": "Denna flik", + "newtab": "Ny flik", + "modal": "Pop-Up Modal", + "workspace": "Workspace-vy", + "options-section-title": "Alternativ", + "edit-item": "Redigera", + "move-item": "Kopiera eller flytta", + "remove-item": "Ta bort" + }, + "context-menus": { + "item": { + "open-section-title": "Öppna i", + "sametab": "Denna flik", + "newtab": "Ny flik", + "modal": "Pop-Up Modal", + "workspace": "Workspace View", + "options-section-title": "Alternativ", + "edit-item": "Redigera", + "move-item": "Kopiera eller flytta", + "remove-item": "Ta bort" + }, + "section": { + "open-section": "Öppna sektion", + "edit-section": "Redigera", + "move-section": "Flytta till", + "remove-section": "Ta bort" + } + }, + "interactive-editor": { + "menu": { + "start-editing-tooltip": "Öppna den interaktiva redigeraren", + "edit-site-data-subheading": "Redigera webbplatsinformation", + "edit-page-info-btn": "Redigera sidinformation", + "edit-page-info-tooltip": "Appnamn, beskrivning, navigeringslĂ€nkar, sidfotstext, etc", + "edit-app-config-btn": "Redigera appkonfiguration", + "edit-app-config-tooltip": "Övriga appkonfigurationsalternativ", + "config-save-methods-subheading": "Alternativ för konfigurationssparande", + "save-locally-btn": "Spara lokalt", + "save-locally-tooltip": "Spara konfigurationen lokalt, till webblĂ€sarens lagring. Detta pĂ„verkar inte din konfigurationsfil, men Ă€ndringarna sparas bara pĂ„ denna enhet", + "save-disk-btn": "Spara till disk", + "save-disk-tooltip": "Spara konfiguration to conf.yml-filen pĂ„ disk. Detta kommer att sĂ€kerhetskopiera och sedan skriva över din befintliga konfiguration", + "export-config-btn": "Exportera konfiguration", + "export-config-tooltip": "Visa och exportera den nya konfigurationen, antingen till fil eller urklipp", + "cloud-backup-btn": "SĂ€kerhetskopiera till molnet", + "cloud-backup-tooltip": "Spara krypterad sĂ€kerhetskopia av konfigurationen i molnet", + "edit-raw-config-btn": "Redigera raw-konfiguration", + "edit-raw-config-tooltip": "Visa och redigera raw-konfiguration via JSON-redigeraren", + "cancel-changes-btn": "Avbryt redigering", + "cancel-changes-tooltip": "Radera nuvarande Ă€ndringar och lĂ€mna RedigeringslĂ€ge. Detta kommer in pĂ„verka din sparade konfiguration.", + "edit-mode-name": "RedigeringslĂ€ge", + "edit-mode-subtitle": "Du Ă€r i RedigeringslĂ€ge", + "edit-mode-description": "Detta innebĂ€r att du kan göra Ă€ndringar i din konfiguration och förhandsgranska resultaten, men tills du sparar kommer inga av dina Ă€ndringar att bevaras.", + "save-stage-btn": "Spara", + "cancel-stage-btn": "Avbryt" + }, + "edit-section": { + "edit-section-title": "Redigera sektion", + "add-section-title": "LĂ€gg till ny sektion", + "edit-tooltip": "Tryck för att redigera, eller högerklicka för fler alternativ", + "remove-confirm": "Är du sĂ€ker pĂ„ att du vill ta bort denna sektion? Denna Ă„tgĂ€rd kan Ă„ngras senare." + }, + "edit-app-config": { + "warning-msg-title": "FortsĂ€tt med försiktighet", + "warning-msg-l1": "Följande alternativ Ă€r för avancerade appkonfigurationer.", + "warning-msg-l2": "Om du Ă€r osĂ€ker pĂ„ nĂ„got av fĂ€lten, vĂ€nligen kolla", + "warning-msg-docs": "dokumentationen", + "warning-msg-l3": "för att undvika oavsiktliga konsekvenser." + }, + "export": { + "export-title": "Exportera konfiguration", + "copy-clipboard-btn": "Kopiera till urklipp", + "copy-clipboard-tooltip": "Kopiera alla appkonfigurationer till systemets urklipp i YAML-format", + "download-file-btn": "Ladda ned som fil", + "download-file-tooltip": "Ladda ner alla appkonfigurationer till din enhet som en YAML-fil", + "view-title": "Visa konfiguration" + } + } + } \ No newline at end of file diff --git a/src/utils/languages.js b/src/utils/languages.js index bea5b973..8e9ae24e 100644 --- a/src/utils/languages.js +++ b/src/utils/languages.js @@ -15,6 +15,7 @@ import pt from '@/assets/locales/pt.json'; import ru from '@/assets/locales/ru.json'; import nb from '@/assets/locales/nb.json'; import pirate from '@/assets/locales/zz-pirate.json'; +import sv from '@/assets/locales/sv.json'; // Language data - Next register your language by adding it to this list export const languages = [ @@ -114,6 +115,12 @@ export const languages = [ locale: pirate, flag: 'đŸŽâ€â˜ ïž', }, + { // Swedish + name: 'Svenska', + code: 'sv', + locale: sv, + flag: 'sv', + }, ]; /** From c6052edd864b93f8b2dddc255478cb0d4a599bbb Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Tue, 7 Dec 2021 11:45:06 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=8C=90=20Adds=20Flag=20for=20Swedish?= =?UTF-8?q?=20Translations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/languages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/languages.js b/src/utils/languages.js index 8e9ae24e..45a7eb40 100644 --- a/src/utils/languages.js +++ b/src/utils/languages.js @@ -119,7 +119,7 @@ export const languages = [ name: 'Svenska', code: 'sv', locale: sv, - flag: 'sv', + flag: '🇾đŸ‡Ș', }, ]; From 8b0a38f758f7169e0d3bfe962cb78470f7bb7f5b Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Tue, 7 Dec 2021 11:46:44 +0000 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=8C=90=20Flag=20emoji=20for=20Swedish?= =?UTF-8?q?=20translations?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 73c06547..cc04369d 100644 --- a/README.md +++ b/README.md @@ -390,13 +390,13 @@ Dashy supports multiple languages and locales. When available, your language sho - đŸ‡”đŸ‡± **Polish**: `pl` - Contributed by **[@skaarj1989](https://github.com/skaarj1989)** - đŸ‡Ș🇾 **Spanish**: `es` - Contributed by **[@lu4t](https://github.com/lu4t)** - 🇾🇼 **Slovenian**: `sl` - Contributed by **[@UrekD](https://github.com/UrekD)** +- 🇾đŸ‡Ș **Swedish**: `sv` - Contributed by **[@BOZG](https://github.com/BOZG)** - 🇼đŸ‡č **Italian**: `it` - Machine Translated *(awaiting human review)* - đŸ‡”đŸ‡č **Portuguese**: `pt` - Machine Translated *(awaiting human review)* - đŸ‡·đŸ‡ș **Russian**: `ru` - Contributed by Anon - 🇩đŸ‡Ș **Arabic**: `ar` - Contributed by Anon - 🇼🇳 **Hindi**: `hi` - Contributed by Anon - đŸ‡ŻđŸ‡” **Japanese**: `ja` - Contributed by Anon -- sv **Swedish**: `sv` - Contributed by **[@BOZG](https://github.com/BOZG)** #### Add your Language I would love Dashy to be available to everyone, without language being a barrier to entry. If you've got a few minutes to spare, consider adding translations for your language. It's a quick task and all text is in [a single JSON file](https://github.com/Lissy93/dashy/tree/master/src/assets/locales). Since any missing text will fallback to English, you don't need to translate it all.