Russian language

This commit is contained in:
Ben Grant 2021-05-26 20:18:30 +10:00
parent acc25a1a66
commit bb4b6468b4
10 changed files with 264 additions and 2 deletions

View file

@ -96,6 +96,7 @@ const Settings = () => {
'hi': 'हिंदी',
'id': 'Indonesia',
'ko': '한국어',
'ru': 'Pусский',
...process.env.NODE_ENV !== 'production' && { 'cimode': 'DEV' },
}}
small

View file

@ -56,7 +56,7 @@ export const Modal = styled.div`
z-index: 150;
padding: 10px 18px;
border-radius: 3px;
width: 250px;
width: 270px;
box-sizing: border-box;
max-width: calc(100% - 20px);
box-shadow: 0 3px 6px 0 rgba(0,0,0,.3);

View file

@ -152,7 +152,7 @@ const Home = ({ offline }) => {
<Center>
<Logo src={logo} alt="" />
</Center>
<TitleSmall>{t('home:create')}</TitleSmall>
<TitleSmall altChars={/[A-Z]/g.test(t('home:create'))}>{t('home:create')}</TitleSmall>
<TitleLarge>CRAB FIT</TitleLarge>
<Links>
<a href="#about">{t('home:nav.about')}</a> / <a href="#donate">{t('home:nav.donate')}</a>

View file

@ -20,6 +20,13 @@ export const TitleSmall = styled.span`
color: ${props => props.theme.primaryDark};
line-height: 1em;
text-transform: uppercase;
${props => !props.altChars && `
font-size: 2rem;
font-weight: 600;
line-height: 1.2em;
padding-top: .3em;
`}
`;
export const TitleLarge = styled.h1`

View file

@ -6,6 +6,7 @@ const locales = {
hi: () => import('dayjs/locale/hi'), // Hindi
id: () => import('dayjs/locale/id'), // Indonesian
ko: () => import('dayjs/locale/ko'), // Korean
ru: () => import('dayjs/locale/ru'), // Russian
};
export default locales;