From 020effbb3cb96b5fa5c6c6d4f1e524aa087f5092 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 25 Feb 2022 09:38:12 +0530 Subject: [PATCH] Make log in/sign up and log out messages available for i18n --- src/components/AuthenticationModal.vue | 6 +++--- src/translations/en.json | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/AuthenticationModal.vue b/src/components/AuthenticationModal.vue index a7bc439..6f889ff 100644 --- a/src/components/AuthenticationModal.vue +++ b/src/components/AuthenticationModal.vue @@ -10,7 +10,7 @@ v-bind="attrs" v-on="on" > - Log In/Sign Up + {{ $t('actions.logInSignUp') }} - Log In/Sign Up + {{ $t('actions.logInSignUp') }} @@ -36,7 +36,7 @@ v-else-if="listMode === true" @click="logOut" > - Log Out + {{ $t('actions.logOut') }} Log Out diff --git a/src/translations/en.json b/src/translations/en.json index 212c794..c0a4711 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -2,7 +2,6 @@ "titles": { "homepage": "Homepage", "trending": "Trending", - "login": "Login", "register": "Register", "feed": "Feed", "preferences": "Preferences", @@ -21,6 +20,8 @@ "watchedAgo": "Watched {t} till {p}" }, "actions": { + "logInSignUp": "Log In/Sign Up", + "logOut": "Log Out", "subscribe": "Subscribe", "unsubscribe": "Unsubscribe", "view_subscriptions": "View Subscriptions",