From effb2ed738e1f7a3bce7bc3818eb17caaaf1d6a1 Mon Sep 17 00:00:00 2001 From: LovelessCodes Date: Mon, 13 May 2024 10:00:52 +0200 Subject: [PATCH 1/4] added: Danish translation.json --- src/locales/da/translation.json | 174 ++++++++++++++++++++++++++++++++ 1 file changed, 174 insertions(+) create mode 100644 src/locales/da/translation.json diff --git a/src/locales/da/translation.json b/src/locales/da/translation.json new file mode 100644 index 00000000..dca04160 --- /dev/null +++ b/src/locales/da/translation.json @@ -0,0 +1,174 @@ +{ + "home": { + "featured": "Anbefalet", + "recently_added": "Nyligt tilføjet", + "trending": "Trender", + "surprise_me": "Overrask mig", + "no_results": "Ingen resultater fundet" + }, + "sidebar": { + "catalogue": "Katalog", + "downloads": "Downloads", + "settings": "Indstillinger", + "my_library": "Mit bibliotek", + "downloading_metadata": "{{title}} (Downloader metadata…)", + "checking_files": "{{title}} ({{percentage}} - Tjekker filer…)", + "paused": "{{title}} (Paused)", + "downloading": "{{title}} ({{percentage}} - Downloading…)", + "filter": "Filtrer bibliotek", + "follow_us": "Følg os", + "home": "Hjem", + "discord": "Tilslut dig vores Discord", + "telegram": "Tilslut dig vores Telegram", + "x": "Følg på X", + "github": "Bidrag på GitHub" + }, + "header": { + "search": "Søg spil", + "home": "Hjem", + "catalogue": "Katalog", + "downloads": "Downloads", + "search_results": "Søge resultater", + "settings": "Indstillinger" + }, + "bottom_panel": { + "no_downloads_in_progress": "Ingen downloads igang", + "downloading_metadata": "Downloader {{title}} metadata…", + "checking_files": "Tjekker {{title}} filer… ({{percentage}} færdig)", + "downloading": "Downloader {{title}}… ({{percentage}} færdig) - Konklusion {{eta}} - {{speed}}" + }, + "catalogue": { + "next_page": "Næste side", + "previous_page": "Tidligere side" + }, + "game_details": { + "open_download_options": "Åben download muligheder", + "download_options_zero": "Ingen download mulighed", + "download_options_one": "{{count}} download mulighed", + "download_options_other": "{{count}} download muligheder", + "updated_at": "Opdateret {{updated_at}}", + "install": "Installér", + "resume": "Fortsæt", + "pause": "Pause", + "cancel": "Annullér", + "remove": "Fjern", + "remove_from_list": "Fjern", + "space_left_on_disk": "{{space}} tilbage på harddisken", + "eta": "Konklusion {{eta}}", + "downloading_metadata": "Downloader metadata…", + "checking_files": "Tjekker filer…", + "filter": "Filtrer repacks", + "requirements": "System behov", + "minimum": "Mindste", + "recommended": "Anbefalet", + "no_minimum_requirements": "{{title}} angiver ikke mindste behov informationer", + "no_recommended_requirements": "{{title}} angiver ikke anbefalet behov informationer", + "paused_progress": "{{progress}} (Pauset)", + "release_date": "Offentliggjort den {{date}}", + "publisher": "Udgivet af {{publisher}}", + "copy_link_to_clipboard": "Kopier link", + "copied_link_to_clipboard": "Link kopieret", + "hours": "timer", + "minutes": "minutter", + "amount_hours": "{{amount}} timer", + "amount_minutes": "{{amount}} minutter", + "accuracy": "{{accuracy}}% nøjagtighed", + "add_to_library": "Tilføj til bibliotek", + "remove_from_library": "Fjern fra bibliotek", + "no_downloads": "Ingen downloads tilgængelige", + "play_time": "Spillet i {{amount}}", + "last_time_played": "Sidst spillet {{period}}", + "not_played_yet": "Du har ikke spillet {{title}} endnu", + "next_suggestion": "Næste forslag", + "play": "Spil", + "deleting": "Sletter installatør…", + "close": "Luk", + "playing_now": "Spiller nu", + "change": "Ændré", + "repacks_modal_description": "Vælg den repack du vil downloade", + "downloads_path": "Downloads sti", + "select_folder_hint": "For at ændre standard mappen, gå til <0>Instillingerne", + "download_now": "Download nu", + "installation_instructions": "Installations Instrukser", + "installation_instructions_description": "Yderligere skridt er krævet for at installere dette spil", + "online_fix_instruction": "OnlineFix spil kræver et kodeord for at kunne blive udpakket. Når krævet, brug det følgende kodeord:", + "dodi_installation_instruction": "Når du åbner DODI installatør, tryk på op-knappen på dit tastatur <0 /> for at starte installations processen:", + "dont_show_it_again": "Vis ikke igen", + "copy_to_clipboard": "Kopier", + "copied_to_clipboard": "Kopieret", + "got_it": "Forstået" + }, + "activation": { + "title": "Aktivér Hydra", + "installation_id": "Installations ID:", + "enter_activation_code": "Indtast din aktiverings kode", + "message": "Hvis du ikke ved hvor du skal spørge om dette, burde du ikke have dette.", + "activate": "Aktivér", + "loading": "Loader…" + }, + "downloads": { + "resume": "Fortsæt", + "pause": "Pause", + "eta": "Konklusion {{eta}}", + "paused": "Pauset", + "verifying": "Verificerer…", + "completed_at": "Færdiggjort på {{date}}", + "completed": "Færdigt", + "cancelled": "Annulleret", + "download_again": "Download igen", + "cancel": "Annullér", + "filter": "Filtrer downloadet spil", + "remove": "Fjern", + "downloading_metadata": "Downloader metadata…", + "checking_files": "Tjekker filer…", + "starting_download": "Starter download…", + "deleting": "Sletter installatør…", + "delete": "Fjern installatør", + "remove_from_list": "Fjern", + "delete_modal_title": "Er du sikker?", + "delete_modal_description": "Dette vil fjerne alle installations filerne fra din computer", + "install": "Installér", + "real_debrid": "Real Debrid", + "torrent": "Torrent" + }, + "settings": { + "downloads_path": "Downloads sti", + "change": "Opdatering", + "notifications": "Notifikationer", + "enable_download_notifications": "Når et download bliver færdigt", + "enable_repack_list_notifications": "Når en ny repack bliver tilføjet", + "telemetry": "Telemetri", + "telemetry_description": "Slå anonymt brugs statistik til", + "real_debrid_api_token_description": "Real Debrid API token", + "quit_app_instead_hiding": "Afslut Hydra instedet for at minimere til processlinjen", + "launch_with_system": "Åben Hydra ved start af systemet", + "general": "Generelt", + "behavior": "Opførsel", + "enable_real_debrid": "Slå Real Debrid til", + "real_debrid": "Real Debrid", + "real_debrid_api_token_hint": "Du kan få din API nøgle <0>her.", + "save_changes": "Gem ændringer" + }, + "notifications": { + "download_complete": "Download færdig", + "game_ready_to_install": "{{title}} er klar til at installeret", + "repack_list_updated": "Repack liste opdateret", + "repack_count_one": "{{count}} repack tilføjet", + "repack_count_other": "{{count}} repacks tilføjet" + }, + "system_tray": { + "open": "Åben Hydra", + "quit": "Afslut" + }, + "game_card": { + "no_downloads": "Ingen downloads tilgængelig" + }, + "binary_not_found_modal": { + "title": "Programmer ikke installeret", + "description": "Wine eller Lutris eksekverbare blev ikke fundet på dit system", + "instructions": "Tjek den korrekte måde at installere nogle af dem, på din Linux distribution, så spillet kan køre normalt" + }, + "modal": { + "close": "Luk knap" + } +} From d39ff3a3b58aed38ec678c5ec8d97369f7fb0c5b Mon Sep 17 00:00:00 2001 From: LovelessCodes Date: Mon, 13 May 2024 10:06:47 +0200 Subject: [PATCH 2/4] changed: added danish translation file to locales index --- src/locales/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/locales/index.ts b/src/locales/index.ts index f97cace3..bf0eaab0 100644 --- a/src/locales/index.ts +++ b/src/locales/index.ts @@ -11,3 +11,4 @@ export { default as tr } from "./tr/translation.json"; export { default as be } from "./be/translation.json"; export { default as uk } from "./uk/translation.json"; export { default as id } from "./id/translation.json"; +export { default as da } from "./da/translation.json"; From 388a6c458a1cce3c7cb85e4a79af830fa2e2a352 Mon Sep 17 00:00:00 2001 From: LovelessCodes Date: Mon, 13 May 2024 10:08:35 +0200 Subject: [PATCH 3/4] changed: added danish as a steam language in renderer helpers --- src/renderer/src/helpers.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/src/helpers.ts b/src/renderer/src/helpers.ts index 51e708a0..847b7673 100644 --- a/src/renderer/src/helpers.ts +++ b/src/renderer/src/helpers.ts @@ -25,6 +25,7 @@ export const getSteamLanguage = (language: string) => { if (language.startsWith("it")) return "italian"; if (language.startsWith("hu")) return "hungarian"; if (language.startsWith("pl")) return "polish"; + if (language.startsWith("da")) return "danish"; return "english"; }; From d56698b7283222ebd17af6246e8106dc2bebdcdd Mon Sep 17 00:00:00 2001 From: LovelessCodes Date: Mon, 13 May 2024 10:13:59 +0200 Subject: [PATCH 4/4] changed: added danish date locale --- src/renderer/src/hooks/use-date.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/hooks/use-date.ts b/src/renderer/src/hooks/use-date.ts index a8face46..c9c6ecc1 100644 --- a/src/renderer/src/hooks/use-date.ts +++ b/src/renderer/src/hooks/use-date.ts @@ -1,6 +1,6 @@ import { formatDistance } from "date-fns"; import type { FormatDistanceOptions } from "date-fns"; -import { ptBR, enUS, es, fr, pl, hu, tr, ru, it, be } from "date-fns/locale"; +import { ptBR, enUS, es, fr, pl, hu, tr, ru, it, be, da } from "date-fns/locale"; import { useTranslation } from "react-i18next"; export function useDate() { @@ -18,6 +18,7 @@ export function useDate() { if (language.startsWith("ru")) return ru; if (language.startsWith("it")) return it; if (language.startsWith("be")) return be; + if (language.startsWith("da")) return da; return enUS; };