-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathi18n.json
More file actions
44 lines (44 loc) · 1.68 KB
/
i18n.json
File metadata and controls
44 lines (44 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"$schema": "https://lingo.dev/schema/i18n.json",
"version": "1.13",
"locale": {
"source": "en",
"targets": [
"ar",
"zh-CN",
"fr",
"de",
"es",
"hi",
"id",
"it",
"ja",
"ko",
"pt-BR",
"sv",
"vi"
]
},
"buckets": {
"mdx": {
"include": [
"[locale]/*.mdx",
"[locale]/*/*.mdx",
"[locale]/*/*/*.mdx",
"[locale]/*/*/*/*.mdx"
],
"exclude": [
"[locale]/miscellaneous/faq.mdx"
],
"lockedPatterns": [
"<\\/?(?:Note|Tip|Warning|Info|Check|Steps|Step|Tabs|Tab|CodeGroup|Card|CardGroup|Accordion|AccordionGroup|Frame|Expandable|ResponseField|ParamField|RequestExample|ResponseExample|Tooltip|Update|Snippet|Icon)(?:\\s[^>]*)?\\/?>"
],
"lockedKeys": ["tag", "openapi", "api", "icon"]
}
},
"provider": {
"id": "openai",
"model": "gpt-4o",
"prompt": "Act as a professional technical documentation translator. Translate the content from {source} to {target} while preserving all Markdown formatting, code blocks, links, frontmatter metadata, and Mintlify components. Do not translate or modify JSX/MDX component tags (e.g. <Note>, <Warning>, <Steps>, <Card>, <Accordion>, etc.) — keep tag names exactly as written. Do not change link destinations: keep every URL, path, anchor, and query string exactly as written. Only translate link text when needed, never the target. Maintain technical terminology appropriately (keep common technical terms in English when standard in the industry). Preserve code examples exactly as they are. Match the tone and formality of the source text. Do not invent or remove links."
}
}