- Index: {currentAnimation.index}
+ Index: {currentAnimation.index}
- Frames: {currentAnimation.frames}
+ Frames: {currentAnimation.frames}
- Duration: {currentAnimation.duration}{" "}
- seconds
+ Duration: {currentAnimation.duration}{" "}
+ seconds
- Description:{" "}
+ Description:{" "}
{currentAnimation.description}
{currentAnimation.notes && (
- Notes: {currentAnimation.notes}
+ Notes: {currentAnimation.notes}
)}
- Video credits:{" "}
+ Video credits:{" "}
{
-
Usage Examples:
+
Usage Examples:
{`// For players
@@ -185,8 +188,9 @@ ApplyActorAnimation(actorid, "${currentAnimation.library}", "${currentAnimation.
{selectedLibrary && !selectedAnimation && (
- Select an animation from the dropdown above to see the
- preview.
+
+ Select an animation from the dropdown above to see the preview.
+
)}
@@ -194,10 +198,13 @@ ApplyActorAnimation(actorid, "${currentAnimation.library}", "${currentAnimation.
{!selectedLibrary && (
- Browse and preview all available animations.
+
+ Browse and preview all available animations.
+
- These are used by ApplyAnimation/ApplyActorAnimation
- functions.
+
+ These are used by ApplyAnimation/ApplyActorAnimation functions.
+
)}
diff --git a/frontend/src/pages/index.tsx b/frontend/src/pages/index.tsx
index 00f760c72c8..281abb47477 100644
--- a/frontend/src/pages/index.tsx
+++ b/frontend/src/pages/index.tsx
@@ -4,11 +4,13 @@ import Heading from "@theme/Heading";
import Layout from "@theme/Layout";
import Image from "@theme/ThemedImage";
import clsx from "clsx";
-import { useState } from "react";
+import React, { useState } from "react";
import Admonition from "../components/Admonition";
import styles from "./index.module.css";
+import Translate from '@docusaurus/Translate';
+
const socials = [
{
alt: "Discord icon",
@@ -52,18 +54,18 @@ const SocialIcons = () => {
return (
{socials.map((social, index) => (
-
{
return (
);
};
-const Home = () => {
+const Home = (): React.ReactElement => {
return (
{
);
};
-export default Home;
+export default Home;
\ No newline at end of file
diff --git a/frontend/src/pages/partners.tsx b/frontend/src/pages/partners.tsx
index 7a637d58452..e3d45308f4d 100644
--- a/frontend/src/pages/partners.tsx
+++ b/frontend/src/pages/partners.tsx
@@ -1,5 +1,6 @@
import Layout from "@theme/Layout";
import { ReactNode, useEffect, useMemo, useState } from "react";
+import Translate from '@docusaurus/Translate';
import { FixedSizeList } from "react-window";
import LoadingBanner from "../components/LoadingBanner";
import ServerRow from "../components/ServerRow";
@@ -9,6 +10,14 @@ import { CoreServerData } from "../types";
const API_SERVERS = `${API_ADDRESS}/servers/`;
+import { renderToStaticMarkup } from "react-dom/server";
+
+const translate = (id: string, message: string, description?: string) => {
+ return renderToStaticMarkup(
+ {message}
+ );
+};
+
const getServers = async () => {
try {
const r: Response = await fetch(API_SERVERS);
@@ -63,9 +72,17 @@ const StatsComponent = ({ stats: { players, servers } }: { stats: Stats }) => {
return (
- {players} players on {servers} servers
- with an average of {(players / servers).toFixed(1)}{" "}
- players per server.
+ {players},
+ servers: {servers},
+ average: {(players / servers).toFixed(1)}
+ }}
+ >
+ {'{players} players on {servers} servers with an average of {average} players per server.'}
+
);
@@ -105,13 +122,25 @@ const List = ({ data }: { data: CoreServerData[] }) => {
onChange={(e) => setSort(e.target.value as SortBy)}
className="servers-select"
>
-
-
+
+
{
- Note: The partnership program application is temporarily closed as
- promised. Servers that have already reserved a slot can still
- join, but we are not accepting new requests at this time. If you
- have any questions, feel free to ask on our Discord. However, if
- your question is about new ways to get on the list, we currently
- have no plans for that.
+
+ Note: The partnership program application is temporarily closed as
+ promised. Servers that have already reserved a slot can still
+ join, but we are not accepting new requests at this time. If you
+ have any questions, feel free to ask on our Discord. However, if
+ your question is about new ways to get on the list, we currently
+ have no plans for that.
+
{loading ? :
}
@@ -172,4 +203,4 @@ const Page = (): ReactNode => {
);
};
-export default Page;
+export default Page;
\ No newline at end of file