added Swedish/SE - Multi-language/I18n support #22

This commit is contained in:
Proddy
2022-09-09 21:09:51 +02:00
parent 5845c37672
commit 4cd655fb36
16 changed files with 347 additions and 63 deletions

View File

@@ -23,6 +23,7 @@ import { loadLocaleAsync } from './i18n/i18n-util.async';
import { ReactComponent as NLflag } from './i18n/NL.svg';
import { ReactComponent as DEflag } from './i18n/DE.svg';
import { ReactComponent as GBflag } from './i18n/GB.svg';
import { ReactComponent as SEflag } from './i18n/SE.svg';
const SignIn: FC = () => {
const authenticationContext = useContext(AuthenticationContext);
@@ -120,6 +121,10 @@ const SignIn: FC = () => {
<NLflag style={{ width: 24 }} />
&nbsp;NL
</Button>
<Button size="small" variant={locale === 'se' ? 'contained' : 'outlined'} onClick={() => selectLocale('se')}>
<SEflag style={{ width: 24 }} />
&nbsp;SE
</Button>
</Box>
<ValidatedTextField