Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Commit b88aeda

Browse files
committed
chore: update docs
1 parent db17782 commit b88aeda

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

i18n/ui.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"homepage": {
3-
"title": "Create accessible React apps<1> with speed</1>",
3+
"title": {
4+
"main": "Create accessible React apps",
5+
"highlighted": "with speed"
6+
},
47
"message": "Chakra UI is a simple, modular and accessible component library that gives you the building blocks you need to build your React applications.",
58
"get-started": "Get Started",
69
"supported-and-backed-by": "Supported and Backed by",

pages/index.tsx

+10-13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { t } from 'utils/i18n';
21
import {
32
Box,
43
BoxProps,
@@ -22,8 +21,8 @@ import {
2221
} from '@chakra-ui/react';
2322
import { chunk } from '@chakra-ui/utils';
2423
import users from 'chakra-users';
25-
import { ChakraProAd } from 'components/chakra-pro/home-page-ad';
2624
import { AdBanner } from 'components/chakra-pro/ad-banner';
25+
import { ChakraProAd } from 'components/chakra-pro/home-page-ad';
2726
import Container from 'components/container';
2827
import DiscordStrip from 'components/discord-strip';
2928
import { Footer } from 'components/footer';
@@ -44,7 +43,7 @@ import { getAllContributors } from 'utils/get-all-contributors';
4443
import { getAllMembers } from 'utils/get-all-members';
4544
import { getAllSponsors } from 'utils/get-all-sponsors';
4645
import { getGithubStars } from 'utils/get-github-stars';
47-
import { Trans } from 'react-i18next';
46+
import { t } from 'utils/i18n';
4847

4948
const Feature = ({ title, icon, children, ...props }) => {
5049
return (
@@ -135,16 +134,14 @@ const HomePage = ({ members, sponsors, githubStars }: HomePageProps) => {
135134
mb='16px'
136135
lineHeight='1.2'
137136
>
138-
<Trans t={t} i18nKey='homepage.title'>
139-
Create accessible React apps
140-
<Box
141-
as='span'
142-
color={useColorModeValue('teal.500', 'teal.300')}
143-
>
144-
{' '}
145-
with speed
146-
</Box>
147-
</Trans>
137+
{t('homepage.title.main')}
138+
<Box
139+
as='span'
140+
color={useColorModeValue('teal.500', 'teal.300')}
141+
>
142+
{' '}
143+
{t('homepage.title.highlighted')}
144+
</Box>
148145
</chakra.h1>
149146

150147
<Text

0 commit comments

Comments
 (0)