mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Webatrice: i18n login screen (#4584)
* i18n: login container and form * i18n: activate, host, and register forms * i18n: reset password forms * i18n: login dialogs, ICU formatting * i18n: login containers and components Co-authored-by: Jeremy Letto <jeremy.letto@datasite.com>
This commit is contained in:
parent
baaf261116
commit
f5b973e15c
35 changed files with 424 additions and 99 deletions
6
webclient/src/containers/Initialize/Initialize.i18n.json
Normal file
6
webclient/src/containers/Initialize/Initialize.i18n.json
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"InitializeContainer": {
|
||||
"title": "DID YOU KNOW",
|
||||
"subtitle": "<1>Cockatrice is run by volunteers</1><1>that love card games!</1>"
|
||||
}
|
||||
}
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
import { useState } from 'react';
|
||||
import { useTranslation, Trans } from 'react-i18next';
|
||||
import { connect } from 'react-redux';
|
||||
import { Redirect, withRouter } from 'react-router-dom';
|
||||
import { makeStyles } from '@material-ui/core/styles';
|
||||
|
|
@ -24,6 +25,7 @@ const useStyles = makeStyles(theme => ({
|
|||
|
||||
const Initialize = ({ initialized }: InitializeProps) => {
|
||||
const classes = useStyles();
|
||||
const { t } = useTranslation();
|
||||
|
||||
return initialized
|
||||
? <Redirect from="*" to={RouteEnum.LOGIN} />
|
||||
|
|
@ -31,9 +33,11 @@ const Initialize = ({ initialized }: InitializeProps) => {
|
|||
<div className={'Initialize ' + classes.root}>
|
||||
<div className='Initialize-content'>
|
||||
<img src={Images.Logo} alt="logo" />
|
||||
<Typography variant="subtitle1" className='subtitle'>DID YOU KNOW</Typography>
|
||||
<Typography variant="subtitle2">Cockatrice is run by volunteers</Typography>
|
||||
<Typography variant="subtitle2">that love card games!</Typography>
|
||||
<Typography variant="subtitle1" className='subtitle'>{ t('InitializeContainer.title') }</Typography>
|
||||
<Trans i18nKey="InitializeContainer.subtitle">
|
||||
<Typography variant="subtitle2"></Typography>
|
||||
<Typography variant="subtitle2"></Typography>
|
||||
</Trans>
|
||||
</div>
|
||||
|
||||
<div className="Initialize-graphics">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue