From 1c2636d6693cafe9011d24c1cbdefc9a3eaa008c Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Sat, 9 Jan 2021 14:01:20 +0100 Subject: [PATCH] =?UTF-8?q?i18n=20=F0=9F=8C=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ref #17 --- src/components/About.svelte | 16 ++++++++-------- src/locales/en.json | 7 +++++++ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/components/About.svelte b/src/components/About.svelte index caee3b35..4743c124 100644 --- a/src/components/About.svelte +++ b/src/components/About.svelte @@ -62,7 +62,7 @@

- Read License + {$_('read-license')}

{currentlicense}

@@ -124,11 +124,11 @@ - - - - - + + + + + @@ -141,8 +141,8 @@ on:click={() => { modal_open = true; currentlicense = l.name + '@' + l.version; - licensetext = l.licensetext || 'No license text could be found 😢'; - }}>read license + licensetext = l.licensetext || $_('no-license-text-could-be-found'); + }}>{$_('read-license')}
NameLicenseLinkInstalled versionAuthor{$_('dependency_name')}{$_('license')}{$_('repo_link')}{$_('installed-version')}{$_('author')}
{(l.repo?.url || l.repo) diff --git a/src/locales/en.json b/src/locales/en.json index 65019c32..dd2357e7 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -5,6 +5,7 @@ "action": "Action", "add-your-first-track": "Add your first track", "application_name": "Lauf für Kaya! - Admin", + "author": "Author", "by": "by", "cannot-reset-your-password-directly": "Bummer. We unfortunately cannot reset your password directly. Please send us a mail and confirm your identity", "changelog": "Changelog", @@ -29,6 +30,7 @@ "no_matching_records_found": "No matching records found", "an_error_happened_while_fetching_the_data": "An error happened while fetching the data" }, + "dependency_name": "Name", "dont-have-your-email-connected": "Don't have your email connected?", "dont-panic-were-resetting-it": "Don't panic, we're resetting it ✌", "e-mail-adress": "E-Mail Adress", @@ -40,20 +42,25 @@ "general_promise_error": "😢 Error", "goback": "Go Home", "hallo": "hello", + "installed-version": "Installed version", "invalid-mail-reset": "the provided email is invalid", "lfk-is-os": "The \"Lauf für Kaya!\" Frontend is (like all other projects for the \"LfK!\" Also) an open source project.", + "license": "License", "log_in": "Log in", "log_in_to_your_account": "Log in to your account", "login_is_checked": "Login is being checked...", "logout": "Logout", "mail-validation-in-progress": "mail validation in progress...", "minimum-lap-time-in-s": "minimum lap time in s", + "no-license-text-could-be-found": "No license text could be found 😢", "no-tracks-added-yet": "there are no tracks added yet.", "orgs": "Orgs", "oss_credit_description": "We use a lot of open source software on these projects, and would like to thank the following projects and contributors who help make open source great!", "password": "Password", "please-provide-the-required-information-to-add-a-new-track": "Please provide the required information to add a new track.", + "read-license": "Read License", "register": "Register", + "repo_link": "Link", "reset-my-password": "Reset my password", "runners": "Runners", "send-a-mail-to-lfk-odit-services": "send a mail to lfk@odit.services",