From cb3ebdeb2d617ae116860011394ded45616130e4 Mon Sep 17 00:00:00 2001 From: sg00dwin Date: Wed, 7 Apr 2021 18:13:06 -0400 Subject: [PATCH] Adding login template strings for translation --- frontend/public/components/pod.tsx | 9 +++++++++ frontend/public/locales/en/public.json | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/frontend/public/components/pod.tsx b/frontend/public/components/pod.tsx index 098296f9938..21cee0284c0 100644 --- a/frontend/public/components/pod.tsx +++ b/frontend/public/components/pod.tsx @@ -69,6 +69,15 @@ import { VolumesTable } from './volumes-table'; import { PodModel } from '../models'; import { Conditions } from './conditions'; +// Key translations for oauth login templates +// t('public~Log in to your account') +// t('public~Log in') +// t('public~Welcome to {{platformTitle}}') +// t('public~Log in with {{providerName}}') +// t('public~Login is required. Please try again.') +// t('public~Could not check CSRF token. Please try again.') +// t('public~Invalid login or password. Please try again.') + // Only request metrics if the device's screen width is larger than the // breakpoint where metrics are visible. const showMetrics = diff --git a/frontend/public/locales/en/public.json b/frontend/public/locales/en/public.json index 07fe90a56ec..2f444d0562a 100644 --- a/frontend/public/locales/en/public.json +++ b/frontend/public/locales/en/public.json @@ -1048,6 +1048,13 @@ "Claim": "Claim", "Reconnect": "Reconnect", "Connecting to": "Connecting to", + "Log in to your account": "Log in to your account", + "Log in": "Log in", + "Welcome to {{platformTitle}}": "Welcome to {{platformTitle}}", + "Log in with {{providerName}}": "Log in with {{providerName}}", + "Login is required. Please try again.": "Login is required. Please try again.", + "Could not check CSRF token. Please try again.": "Could not check CSRF token. Please try again.", + "Invalid login or password. Please try again.": "Invalid login or password. Please try again.", "Ready": "Ready", "Owner": "Owner", "IP address": "IP address",