Skip to content

Commit 779e3a0

Browse files
committed
docs: add footer to translation
1 parent 7e8de2c commit 779e3a0

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

website/src/translation/en-US.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { TooltipProps } from "../components/ui/Tooltip";
2+
import { githubOrganizationUrl } from "../metadata";
23
import type { TranslationComponent, TranslationObject } from "./";
34

45
export const translation: TranslationObject = {
@@ -192,6 +193,12 @@ export const Translation: TranslationComponent = (props) => {
192193
.
193194
</>
194195
);
196+
case "footer":
197+
return (
198+
<>
199+
Translated by <a href={githubOrganizationUrl}>Typst Community</a>
200+
</>
201+
);
195202
default:
196203
return null;
197204
}

website/src/translation/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ type TranslationComponentKey =
6565
| "settable"
6666
| "settableDescription"
6767
| "previousPage"
68-
| "nextPage";
68+
| "nextPage"
69+
| "footer";
6970

7071
export type TranslationComponentProps =
7172
| { translationKey: TranslationComponentKey }

website/src/translation/ja-JP.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,13 @@ export const Translation: TranslationComponent = (props) => {
198198
<a href={discordServerUrl}>our Discord server "Kumihan Club"</a>.
199199
</>
200200
);
201+
case "footer":
202+
return (
203+
<>
204+
Translated by{" "}
205+
<a href={githubOrganizationUrl}>Typst Japanese Community</a>
206+
</>
207+
);
201208
default:
202209
return null;
203210
}

0 commit comments

Comments
 (0)