Skip to content

Commit

Permalink
Translate description of homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
jinhoyim committed Dec 1, 2024
1 parent 57da0c3 commit 53a1325
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 0 additions & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ const config: Config = {
themeConfig: {
image: 'img/autoparams.png',
metadata: [
{ name: 'description', content: 'AutoParams is a versatile test data generator designed for parameterized tests in Java and Kotlin, drawing inspiration from AutoFixture.' },
{ name: 'google-site-verification', content: 'JTQC3Qse5xJxBr7GLaV4aYsN43IKAOO0pUhBayPB0wk'},
{ property: 'og:site_name', content: 'AutoParams' },
{ property: 'og:image', content: 'https://autoparams.github.io/img/autoparams.png' }
Expand Down
4 changes: 4 additions & 0 deletions i18n/ko/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -349,5 +349,9 @@
"homepage.codeExample.description": {
"message": "AutoParams가 테스트 데이터를 자동으로 생성하면 테스트에서 삼각 측량의 필요성을 없앨 수 있고, 이를 통해 테스트 프로세스를 간소화할 수 있습니다.",
"description": "Simple example description"
},
"homepage.meta.description": {
"message": "AutoParams는 AutoFixture에서 영감을 얻어 Java와 Kotlin에서 매개변수화된 테스트를 위해 설계된 다재다능한 테스트 데이터 생성기입니다.",
"description": "HTML property description and og:description of meta tag for i18n"
}
}
8 changes: 5 additions & 3 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Heading from '@theme/Heading';
import styles from './index.module.css';
import HomepageCodeExamples from '../components/HomepageCodeExamples';
import HeadingDecoration from '../components/HeadingDecoration';
import Translate from '@docusaurus/Translate';
import Translate, {translate} from '@docusaurus/Translate';

function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
Expand All @@ -30,10 +30,12 @@ function HomepageHeader() {
}

export default function Home(): JSX.Element {
const {siteConfig} = useDocusaurusContext();
return (
<Layout
description="AutoParams is a versatile test data generator designed for parameterized tests in Java and Kotlin, drawing inspiration from AutoFixture.">
description={translate({
message: 'AutoParams is a versatile test data generator designed for parameterized tests in Java and Kotlin, drawing inspiration from AutoFixture.',
id: 'homepage.meta.description'
})}>
<HomepageHeader />
<main>
<HomepageFeatures />
Expand Down

0 comments on commit 53a1325

Please sign in to comment.