1+ import { Fragment } from "hono/jsx/jsx-runtime" ;
12import type { TooltipProps } from "../components/ui/Tooltip" ;
23import { githubOrganizationUrl } from "../metadata" ;
34import type { TranslationComponent , TranslationObject } from "./" ;
@@ -39,148 +40,158 @@ export const translation: TranslationObject = {
3940export const Translation : TranslationComponent = ( props ) => {
4041 switch ( props . translationKey ) {
4142 case "definition" :
42- return < > Definition</ > ;
43+ return < Fragment > Definition</ Fragment > ;
4344 case "constructor" :
44- return < > Constructor</ > ;
45+ return < Fragment > Constructor</ Fragment > ;
4546 case "definitionOf" :
4647 return (
47- < >
48+ < Fragment >
4849 < code > { props . name } </ code > Definition
49- </ >
50+ </ Fragment >
5051 ) ;
5152 case "search" :
52- return < > Search</ > ;
53+ return < Fragment > Search</ Fragment > ;
5354 case "defaultValue" :
54- return < > Default value:</ > ;
55+ return < Fragment > Default value:</ Fragment > ;
5556 case "stringValues" :
56- return < > Available string values:</ > ;
57+ return < Fragment > Available string values:</ Fragment > ;
5758 case "showExample" :
58- return < > Show example</ > ;
59+ return < Fragment > Show example</ Fragment > ;
5960 case "tableOfContents" :
60- return < > On this page</ > ;
61+ return < Fragment > On this page</ Fragment > ;
6162 case "nextPage" :
62- return < > Next page</ > ;
63+ return < Fragment > Next page</ Fragment > ;
6364 case "previousPage" :
64- return < > Previous page</ > ;
65+ return < Fragment > Previous page</ Fragment > ;
6566 case "referenceDescription" :
6667 return (
67- < >
68+ < Fragment >
6869 Detailed reference for all Typst syntax, concepts, types, and
6970 functions.
70- </ >
71+ </ Fragment >
7172 ) ;
7273 case "tutorialDescription" :
73- return < > Learn how to use Typst step by step.</ > ;
74+ return < Fragment > Learn how to use Typst step by step.</ Fragment > ;
7475 case "tutorial" :
75- return < > Tutorial</ > ;
76+ return < Fragment > Tutorial</ Fragment > ;
7677 case "openOfficialDocs" :
77- return < > Open official docs</ > ;
78+ return < Fragment > Open official docs</ Fragment > ;
7879 case "reference" :
79- return < > Reference</ > ;
80+ return < Fragment > Reference</ Fragment > ;
8081 case "typstOfficialDocs" :
81- return < > Typst official docs</ > ;
82+ return < Fragment > Typst official docs</ Fragment > ;
8283 case "typstOfficialWebsite" :
83- return < > Typst official website</ > ;
84+ return < Fragment > Typst official website</ Fragment > ;
8485 case "untranslated" :
85- return < > Untranslated</ > ;
86+ return < Fragment > Untranslated</ Fragment > ;
8687 case "untranslatedMessage" :
8788 return (
88- < >
89+ < Fragment >
8990 This page has not been translated yet. The original content is shown.
90- </ >
91+ </ Fragment >
9192 ) ;
9293 case "communityContent" :
93- return < > Community original content</ > ;
94+ return < Fragment > Community original content</ Fragment > ;
9495 case "contentAddedByCommunity" :
9596 return (
96- < >
97+ < Fragment >
9798 This page contains content that is not part of the official
9899 documentation, added independently by the community.
99- </ >
100+ </ Fragment >
100101 ) ;
101102 case "partiallyTranslated" :
102- return < > Partially translated</ > ;
103+ return < Fragment > Partially translated</ Fragment > ;
103104 case "partiallyTranslatedMessage" :
104105 return (
105- < >
106+ < Fragment >
106107 This page is partially translated. Some original content is included.
107- </ >
108+ </ Fragment >
108109 ) ;
109110 case "translated" :
110- return < > Translated</ > ;
111+ return < Fragment > Translated</ Fragment > ;
111112 case "translatedMessage" :
112- return < > This page has been translated into English.</ > ;
113+ return < Fragment > This page has been translated into English.</ Fragment > ;
113114 case "elementFunction" :
114- return < > Element</ > ;
115+ return < Fragment > Element</ Fragment > ;
115116 case "elementFunctionDescription" :
116117 return (
117- < >
118+ < Fragment >
118119 Element functions can be customized with < code > set</ code > and{ " " }
119120 < code > show</ code > rules.
120- </ >
121+ </ Fragment >
121122 ) ;
122123 case "contextFunction" :
123- return < > Context</ > ;
124+ return < Fragment > Context</ Fragment > ;
124125 case "contextFunctionDescription" :
125- return < > Context functions can only be used when the context is known.</ > ;
126+ return (
127+ < Fragment >
128+ Context functions can only be used when the context is known.
129+ </ Fragment >
130+ ) ;
126131 case "definitionTooltip" :
127- return < > Definition</ > ;
132+ return < Fragment > Definition</ Fragment > ;
128133 case "definitionTooltipDescription" :
129134 return (
130- < >
135+ < Fragment >
131136 These functions and types can have related definitions. To access a
132137 definition, specify the name of the function or type, followed by the
133138 definition name separated by a period.
134- </ >
139+ </ Fragment >
135140 ) ;
136141 case "argument" :
137- return < > Parameter</ > ;
142+ return < Fragment > Parameter</ Fragment > ;
138143 case "argumentDescription" :
139144 return (
140- < >
145+ < Fragment >
141146 Parameters are input values for functions. Specify them in parentheses
142147 after the function name.
143- </ >
148+ </ Fragment >
144149 ) ;
145150 case "variadic" :
146- return < > Variadic</ > ;
151+ return < Fragment > Variadic</ Fragment > ;
147152 case "variadicDescription" :
148- return < > Variadic parameters can be specified multiple times.</ > ;
153+ return (
154+ < Fragment >
155+ Variadic parameters can be specified multiple times.
156+ </ Fragment >
157+ ) ;
149158 case "positional" :
150- return < > Positional</ > ;
159+ return < Fragment > Positional</ Fragment > ;
151160 case "positionalDescription" :
152161 return (
153- < >
162+ < Fragment >
154163 Positional parameters can be set by specifying them in order, omitting
155164 the parameter name.
156- </ >
165+ </ Fragment >
157166 ) ;
158167 case "required" :
159- return < > Required</ > ;
168+ return < Fragment > Required</ Fragment > ;
160169 case "requiredDescription" :
161170 return (
162- < > Required parameters must be specified when calling the function.</ >
171+ < Fragment >
172+ Required parameters must be specified when calling the function.
173+ </ Fragment >
163174 ) ;
164175 case "document" :
165- return < > Document</ > ;
176+ return < Fragment > Document</ Fragment > ;
166177 case "langVersion" :
167- return < > English</ > ;
178+ return < Fragment > English</ Fragment > ;
168179 case "translationRate" :
169- return < > Translated</ > ;
180+ return < Fragment > Translated</ Fragment > ;
170181 case "settable" :
171- return < > Settable</ > ;
182+ return < Fragment > Settable</ Fragment > ;
172183 case "settableDescription" :
173184 return (
174- < >
185+ < Fragment >
175186 Settable parameters can be set using the < code > set</ code > rule,
176187 changing the default value used thereafter.
177- </ >
188+ </ Fragment >
178189 ) ;
179190 case "siteNoticeBannerTitle" :
180- return < > Info</ > ;
191+ return < Fragment > Info</ Fragment > ;
181192 case "siteNoticeBannerDescription" :
182193 return (
183- < >
194+ < Fragment >
184195 This site is generated using the static site generator developed by
185196 the < a href = "https://github.com/typst-community" > Typst Community</ a > .
186197 Please adjust the text content of this banner according to your usage
@@ -191,13 +202,13 @@ export const Translation: TranslationComponent = (props) => {
191202 Issue #874 on typst/typst
192203 </ a >
193204 .
194- </ >
205+ </ Fragment >
195206 ) ;
196207 case "footer" :
197208 return (
198- < >
209+ < Fragment >
199210 Translated by < a href = { githubOrganizationUrl } > Typst Community</ a >
200- </ >
211+ </ Fragment >
201212 ) ;
202213 default :
203214 return null ;
0 commit comments