#add auth source title international language support

with zh.json and en.json.
This commit is contained in:
johnwii
2021-03-30 11:13:50 -05:00
committed by Umputun
parent 0b13e8a8d2
commit 8ef87f400a
4 changed files with 28 additions and 22 deletions
@@ -37,6 +37,10 @@ const messages = defineMessages({
id: 'token.invalid',
defaultMessage: 'Token is invalid',
},
oauthSource: {
id: 'auth.oauth-source',
defaultMessage: 'Use Social Network',
},
oauthTitle: {
id: 'auth.oauth-button',
defaultMessage: 'Sign In with {provider}',
+1 -1
View File
@@ -204,7 +204,7 @@ const Auth: FunctionComponent = () => {
<>
{hasOAuthProviders && (
<>
<h5 className={cn('auth-form-title', styles.title)}>Use Social Network</h5>
<h5 className={cn('auth-form-title', styles.title)}>{intl.formatMessage(messages.oauthSource)}</h5>
<OAuthProviders providers={oauthProviders} />
</>
)}