Skip to content

Commit

Permalink
Adding login template strings for translation
Browse files Browse the repository at this point in the history
  • Loading branch information
sg00dwin committed May 10, 2021
1 parent 74f2cc1 commit cb3ebde
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frontend/public/components/pod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
7 changes: 7 additions & 0 deletions frontend/public/locales/en/public.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit cb3ebde

Please sign in to comment.