Test internationalization
Signed-off-by: Joshua Castle <26531652+Kas-tle@users.noreply.github.com>
This commit is contained in:
8 files changed
+133
-119
No files matched your search
@@ -9,8 +9,8 @@ export const Collapsibles = ({ children }) => {
|
||||
};
|
||||
|
||||
interface CollapsibleProps {
|
||||
title: string;
|
||||
subtitle?: string;
|
||||
title: React.ReactNode;
|
||||
subtitle?: React.ReactNode;
|
||||
inner: React.ReactNode;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import styles from './styles.module.css';
|
||||
import Crossplatform0Img from '@site/static/img/site/crossplatform_0.png';
|
||||
import Crossplatform1Img from '@site/static/img/site/crossplatform_1.png';
|
||||
import Crossplatform2Img from '@site/static/img/site/crossplatform_2.png';
|
||||
import Translate from '@docusaurus/Translate';
|
||||
|
||||
type FeatureItem = {
|
||||
title: string;
|
||||
@@ -18,7 +19,7 @@ const FeatureList: FeatureItem[] = [
|
||||
image: Crossplatform2Img,
|
||||
description: (
|
||||
<>
|
||||
Geyser is a program that allows Minecraft: Bedrock Edition clients to join Minecraft: Java Edition servers, allowing for true crossplay between both editions of the game. The ultimate goal of this project is to allow Minecraft: Bedrock Edition users to join Minecraft: Java Edition servers as seamlessly as possible.
|
||||
<Translate>Geyser is a program that allows Minecraft: Bedrock Edition clients to join Minecraft: Java Edition servers, allowing for true crossplay between both editions of the game. The ultimate goal of this project is to allow Minecraft: Bedrock Edition users to join Minecraft: Java Edition servers as seamlessly as possible.</Translate>
|
||||
</>
|
||||
),
|
||||
},
|
||||
@@ -27,7 +28,7 @@ const FeatureList: FeatureItem[] = [
|
||||
image: Crossplatform1Img,
|
||||
description: (
|
||||
<>
|
||||
Geyser acts as a translator which sits between the Bedrock client and the Java server. It takes data from the Bedrock client and translates it into a format the Java server understands and vice versa. Geyser works with any modern Minecraft version and can be installed either as a plugin or ran as a standalone program.
|
||||
<Translate>Geyser acts as a translator which sits between the Bedrock client and the Java server. It takes data from the Bedrock client and translates it into a format the Java server understands and vice versa. Geyser works with any modern Minecraft version and can be installed either as a plugin or ran as a standalone program.</Translate>
|
||||
</>
|
||||
),
|
||||
},
|
||||
@@ -36,9 +37,9 @@ const FeatureList: FeatureItem[] = [
|
||||
image: Crossplatform0Img,
|
||||
description: (
|
||||
<>
|
||||
Geyser can be joined from Bedrock clients on Windows 10/11, iOS, Android, and even consoles (more info here). Geyser works with a wide array of hosting providers, but can also be used as its own standalone proxy to join any Minecraft server!
|
||||
<Translate>Geyser can be joined from Bedrock clients on Windows 10/11, iOS, Android, and even consoles (more info here). Geyser works with a wide array of hosting providers, but can also be used as its own standalone proxy to join any Minecraft server!</Translate>
|
||||
|
||||
If you are a server owner, you can install our Floodgate plugin which allows Xbox Live authenticated Bedrock users to join without a Java Edition account!
|
||||
<Translate>If you are a server owner, you can install our Floodgate plugin which allows Xbox Live authenticated Bedrock users to join without a Java Edition account!</Translate>
|
||||
</>
|
||||
),
|
||||
},
|
||||
|
||||
@@ -7,10 +7,10 @@ import { Grid } from './Grid';
|
||||
|
||||
interface ProjectDownloadProps {
|
||||
projectId: string;
|
||||
description: string;
|
||||
description?: React.ReactNode;
|
||||
setup?: string;
|
||||
downloadsInfo: {
|
||||
[key: string]: string;
|
||||
[key: string]: string | React.ReactNode;
|
||||
};
|
||||
gridColumns?: number;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ import type { Providers, HostingProvider, ProviderType } from "@site/src/types/p
|
||||
import ReactMarkdown from "react-markdown";
|
||||
import Admonition from '@theme/Admonition';
|
||||
import React, { useState } from 'react';
|
||||
import Translate from "@docusaurus/Translate";
|
||||
|
||||
export const noP = (props: { children: any; }) => {
|
||||
const { children } = props;
|
||||
@@ -66,7 +67,9 @@ export const ProviderSelector = () => {
|
||||
{selectedProvider ? (
|
||||
<ReactMarkdown>{selectedProvider.description}</ReactMarkdown>
|
||||
) : (
|
||||
<p>Select a provider to see specific installation instructions</p>
|
||||
<p>
|
||||
<Translate>Select a provider to see specific installation instructions</Translate>
|
||||
</p>
|
||||
)}
|
||||
</Admonition>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user