@umami/shiso 1.17.0 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/App.js +147 -160
- package/dist/chunks/architectureDiagram-5GKGNRK7.js +1 -1
- package/dist/chunks/chunk-GMAD6QVW.js +1 -1
- package/dist/chunks/cose-bilkent-JH36ORCC.js +1 -1
- package/dist/chunks/dist.js +1 -1
- package/dist/chunks/docs.js +668 -22
- package/dist/chunks/ganttDiagram-EL5Y4UJY.js +1 -1
- package/dist/chunks/src.js +1 -1
- package/dist/entry-client.js +1 -1
- package/dist/entry-server.js +1 -1
- package/docs.schema.json +4 -0
- package/package.json +1 -1
- package/scripts/check-content.mjs +2 -0
- package/scripts/load-shiso-config.mjs +30 -1
- package/src/App.tsx +32 -22
- package/src/components/CodeBlock.tsx +3 -1
- package/src/components/Docs.tsx +3 -1
- package/src/components/Footer.tsx +3 -1
- package/src/components/Header.tsx +4 -3
- package/src/components/LanguageSwitcher.tsx +17 -4
- package/src/components/OpenApiOperation.tsx +22 -15
- package/src/components/PageActions.tsx +8 -7
- package/src/components/docs/Changelog.tsx +5 -5
- package/src/components/docs/CodeGroup.tsx +3 -1
- package/src/components/docs/Mermaid.tsx +8 -6
- package/src/components/docs/PropertiesTable.tsx +11 -6
- package/src/components/docs/Tabs.tsx +3 -1
- package/src/components/docs/Tree.tsx +3 -1
- package/src/components/docs/ZoomableImage.tsx +4 -2
- package/src/components/ui/dialog.tsx +7 -2
- package/src/components/ui/sheet.tsx +5 -2
- package/src/lib/label-context.tsx +7 -0
- package/src/lib/labels.ts +37 -0
- package/src/lib/openapi.ts +21 -8
- package/src/lib/site-config.ts +66 -2
- package/src/lib/site-model.ts +2 -32
- package/src/lib/standalone-pages.ts +15 -1
- package/src/lib/translations/de.json +74 -0
- package/src/lib/translations/en.json +74 -0
- package/src/lib/translations/es.json +74 -0
- package/src/lib/translations/fr.json +74 -0
- package/src/lib/translations/ja.json +74 -0
- package/src/lib/translations/zh-Hans.json +74 -0
- package/src/lib/translations/zh-Hant.json +74 -0
- package/src/lib/types.ts +20 -32
- package/types/config.d.ts +7 -1
- package/types/labels.d.ts +76 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"menu": "Menú",
|
|
3
|
+
"documentationNavigation": "Navegación de documentación",
|
|
4
|
+
"sections": "Secciones",
|
|
5
|
+
"tableOfContents": "En esta página",
|
|
6
|
+
"tableOfContentsNavigation": "Índice",
|
|
7
|
+
"searchTitle": "Buscar",
|
|
8
|
+
"searching": "Buscando...",
|
|
9
|
+
"searchUnavailable": "Búsqueda no disponible",
|
|
10
|
+
"noResults": "Sin resultados",
|
|
11
|
+
"lastUpdated": "Última actualización el",
|
|
12
|
+
"relatedTopics": "Temas relacionados",
|
|
13
|
+
"previousPage": "Anterior",
|
|
14
|
+
"nextPage": "Siguiente",
|
|
15
|
+
"notFound": "Página no encontrada",
|
|
16
|
+
"dismissBanner": "Cerrar aviso",
|
|
17
|
+
"toggleTheme": "Cambiar tema",
|
|
18
|
+
"moreOptions": "Más opciones",
|
|
19
|
+
"copied": "Copiado",
|
|
20
|
+
"expand": "Expandir",
|
|
21
|
+
"collapse": "Contraer",
|
|
22
|
+
"copyPage": "Copiar página",
|
|
23
|
+
"copyPageDescription": "Copiar esta página como Markdown",
|
|
24
|
+
"viewMarkdown": "Ver como Markdown",
|
|
25
|
+
"viewMarkdownDescription": "Abrir esta página como Markdown sin formato",
|
|
26
|
+
"openInChatGPT": "Abrir en ChatGPT",
|
|
27
|
+
"openInClaude": "Abrir en Claude",
|
|
28
|
+
"openInPerplexity": "Abrir en Perplexity",
|
|
29
|
+
"askQuestionsAboutPage": "Hacer preguntas sobre esta página",
|
|
30
|
+
"searchPlaceholder": "Buscar...",
|
|
31
|
+
"poweredBy": "Desarrollado con",
|
|
32
|
+
"copyCode": "Copiar código",
|
|
33
|
+
"editPage": "Editar esta página",
|
|
34
|
+
"feedbackPrompt": "¿Te ha resultado útil esta página?",
|
|
35
|
+
"feedbackYes": "Sí",
|
|
36
|
+
"feedbackNo": "No",
|
|
37
|
+
"feedbackSuccess": "¡Gracias por tus comentarios!",
|
|
38
|
+
"feedbackError": "No se pudieron enviar los comentarios. Inténtalo de nuevo.",
|
|
39
|
+
"close": "Cerrar",
|
|
40
|
+
"filterUpdates": "Filtrar novedades por etiqueta",
|
|
41
|
+
"clear": "Limpiar",
|
|
42
|
+
"noUpdates": "No se encontraron novedades.",
|
|
43
|
+
"codeSnippets": "Fragmentos de código",
|
|
44
|
+
"contentTabs": "Pestañas de contenido",
|
|
45
|
+
"fileTree": "Árbol de archivos",
|
|
46
|
+
"diagram": "Diagrama",
|
|
47
|
+
"diagramError": "No se pudo mostrar este diagrama.",
|
|
48
|
+
"zoomOut": "Alejar",
|
|
49
|
+
"resetView": "Restablecer vista",
|
|
50
|
+
"zoomIn": "Acercar",
|
|
51
|
+
"viewImage": "Ver imagen a tamaño completo",
|
|
52
|
+
"viewNamedImage": "Ver «{alt}» a tamaño completo",
|
|
53
|
+
"fullSizeImage": "Imagen a tamaño completo",
|
|
54
|
+
"diagramSource": "Código del diagrama",
|
|
55
|
+
"fieldName": "Nombre",
|
|
56
|
+
"fieldType": "Tipo",
|
|
57
|
+
"fieldDescription": "Descripción",
|
|
58
|
+
"fieldRequired": "obligatorio",
|
|
59
|
+
"fieldDeprecated": "obsoleto",
|
|
60
|
+
"fieldDefault": "Predeterminado:",
|
|
61
|
+
"fieldOptions": "Opciones:",
|
|
62
|
+
"allowedTypes": "Tipos permitidos",
|
|
63
|
+
"properties": "propiedades",
|
|
64
|
+
"apiHeaders": "Cabeceras",
|
|
65
|
+
"apiPathParameters": "Parámetros de ruta",
|
|
66
|
+
"apiQueryParameters": "Parámetros de consulta",
|
|
67
|
+
"apiCookieParameters": "Parámetros de cookies",
|
|
68
|
+
"apiRequestBody": "Cuerpo de la solicitud",
|
|
69
|
+
"apiResponses": "Respuestas",
|
|
70
|
+
"apiCodeSamples": "Ejemplos de código",
|
|
71
|
+
"apiExampleRequest": "Ejemplo de solicitud",
|
|
72
|
+
"apiExampleResponse": "Ejemplo de {status}",
|
|
73
|
+
"apiCredentials": "Credenciales de autenticación, p. ej."
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"menu": "Menu",
|
|
3
|
+
"documentationNavigation": "Navigation de la documentation",
|
|
4
|
+
"sections": "Sections",
|
|
5
|
+
"tableOfContents": "Sur cette page",
|
|
6
|
+
"tableOfContentsNavigation": "Table des matières",
|
|
7
|
+
"searchTitle": "Rechercher",
|
|
8
|
+
"searching": "Recherche en cours...",
|
|
9
|
+
"searchUnavailable": "Recherche indisponible",
|
|
10
|
+
"noResults": "Aucun résultat",
|
|
11
|
+
"lastUpdated": "Dernière mise à jour le",
|
|
12
|
+
"relatedTopics": "Sujets connexes",
|
|
13
|
+
"previousPage": "Précédent",
|
|
14
|
+
"nextPage": "Suivant",
|
|
15
|
+
"notFound": "Page introuvable",
|
|
16
|
+
"dismissBanner": "Fermer la bannière",
|
|
17
|
+
"toggleTheme": "Changer de thème",
|
|
18
|
+
"moreOptions": "Plus d’options",
|
|
19
|
+
"copied": "Copié",
|
|
20
|
+
"expand": "Développer",
|
|
21
|
+
"collapse": "Réduire",
|
|
22
|
+
"copyPage": "Copier la page",
|
|
23
|
+
"copyPageDescription": "Copier cette page au format Markdown",
|
|
24
|
+
"viewMarkdown": "Voir en Markdown",
|
|
25
|
+
"viewMarkdownDescription": "Ouvrir cette page en Markdown brut",
|
|
26
|
+
"openInChatGPT": "Ouvrir dans ChatGPT",
|
|
27
|
+
"openInClaude": "Ouvrir dans Claude",
|
|
28
|
+
"openInPerplexity": "Ouvrir dans Perplexity",
|
|
29
|
+
"askQuestionsAboutPage": "Poser des questions sur cette page",
|
|
30
|
+
"searchPlaceholder": "Rechercher...",
|
|
31
|
+
"poweredBy": "Propulsé par",
|
|
32
|
+
"copyCode": "Copier le code",
|
|
33
|
+
"editPage": "Modifier cette page",
|
|
34
|
+
"feedbackPrompt": "Cette page vous a-t-elle été utile ?",
|
|
35
|
+
"feedbackYes": "Oui",
|
|
36
|
+
"feedbackNo": "Non",
|
|
37
|
+
"feedbackSuccess": "Merci pour votre avis !",
|
|
38
|
+
"feedbackError": "Impossible d’envoyer votre avis. Veuillez réessayer.",
|
|
39
|
+
"close": "Fermer",
|
|
40
|
+
"filterUpdates": "Filtrer les mises à jour par étiquette",
|
|
41
|
+
"clear": "Effacer",
|
|
42
|
+
"noUpdates": "Aucune mise à jour trouvée.",
|
|
43
|
+
"codeSnippets": "Extraits de code",
|
|
44
|
+
"contentTabs": "Onglets de contenu",
|
|
45
|
+
"fileTree": "Arborescence des fichiers",
|
|
46
|
+
"diagram": "Diagramme",
|
|
47
|
+
"diagramError": "Impossible d’afficher ce diagramme.",
|
|
48
|
+
"zoomOut": "Zoom arrière",
|
|
49
|
+
"resetView": "Réinitialiser la vue",
|
|
50
|
+
"zoomIn": "Zoom avant",
|
|
51
|
+
"viewImage": "Afficher l’image en taille réelle",
|
|
52
|
+
"viewNamedImage": "Afficher « {alt} » en taille réelle",
|
|
53
|
+
"fullSizeImage": "Image en taille réelle",
|
|
54
|
+
"diagramSource": "Source du diagramme",
|
|
55
|
+
"fieldName": "Nom",
|
|
56
|
+
"fieldType": "Type",
|
|
57
|
+
"fieldDescription": "Description",
|
|
58
|
+
"fieldRequired": "obligatoire",
|
|
59
|
+
"fieldDeprecated": "obsolète",
|
|
60
|
+
"fieldDefault": "Valeur par défaut :",
|
|
61
|
+
"fieldOptions": "Options :",
|
|
62
|
+
"allowedTypes": "Types autorisés",
|
|
63
|
+
"properties": "propriétés",
|
|
64
|
+
"apiHeaders": "En-têtes",
|
|
65
|
+
"apiPathParameters": "Paramètres de chemin",
|
|
66
|
+
"apiQueryParameters": "Paramètres de requête",
|
|
67
|
+
"apiCookieParameters": "Paramètres de cookies",
|
|
68
|
+
"apiRequestBody": "Corps de la requête",
|
|
69
|
+
"apiResponses": "Réponses",
|
|
70
|
+
"apiCodeSamples": "Exemples de code",
|
|
71
|
+
"apiExampleRequest": "Exemple de requête",
|
|
72
|
+
"apiExampleResponse": "Exemple {status}",
|
|
73
|
+
"apiCredentials": "Identifiants d’authentification, par exemple"
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"menu": "メニュー",
|
|
3
|
+
"documentationNavigation": "ドキュメントナビゲーション",
|
|
4
|
+
"sections": "セクション",
|
|
5
|
+
"tableOfContents": "このページの内容",
|
|
6
|
+
"tableOfContentsNavigation": "目次",
|
|
7
|
+
"searchTitle": "検索",
|
|
8
|
+
"searching": "検索中...",
|
|
9
|
+
"searchUnavailable": "検索を利用できません",
|
|
10
|
+
"noResults": "結果がありません",
|
|
11
|
+
"lastUpdated": "最終更新日",
|
|
12
|
+
"relatedTopics": "関連トピック",
|
|
13
|
+
"previousPage": "前へ",
|
|
14
|
+
"nextPage": "次へ",
|
|
15
|
+
"notFound": "ページが見つかりません",
|
|
16
|
+
"dismissBanner": "バナーを閉じる",
|
|
17
|
+
"toggleTheme": "テーマを切り替える",
|
|
18
|
+
"moreOptions": "その他のオプション",
|
|
19
|
+
"copied": "コピーしました",
|
|
20
|
+
"expand": "展開",
|
|
21
|
+
"collapse": "折りたたむ",
|
|
22
|
+
"copyPage": "ページをコピー",
|
|
23
|
+
"copyPageDescription": "このページをMarkdownとしてコピー",
|
|
24
|
+
"viewMarkdown": "Markdownで表示",
|
|
25
|
+
"viewMarkdownDescription": "このページをプレーンなMarkdownで開く",
|
|
26
|
+
"openInChatGPT": "ChatGPTで開く",
|
|
27
|
+
"openInClaude": "Claudeで開く",
|
|
28
|
+
"openInPerplexity": "Perplexityで開く",
|
|
29
|
+
"askQuestionsAboutPage": "このページについて質問する",
|
|
30
|
+
"searchPlaceholder": "検索...",
|
|
31
|
+
"poweredBy": "使用ツール:",
|
|
32
|
+
"copyCode": "コードをコピー",
|
|
33
|
+
"editPage": "このページを編集",
|
|
34
|
+
"feedbackPrompt": "このページは役に立ちましたか?",
|
|
35
|
+
"feedbackYes": "はい",
|
|
36
|
+
"feedbackNo": "いいえ",
|
|
37
|
+
"feedbackSuccess": "フィードバックありがとうございます!",
|
|
38
|
+
"feedbackError": "フィードバックを送信できませんでした。もう一度お試しください。",
|
|
39
|
+
"close": "閉じる",
|
|
40
|
+
"filterUpdates": "タグで更新情報を絞り込む",
|
|
41
|
+
"clear": "クリア",
|
|
42
|
+
"noUpdates": "更新情報が見つかりません。",
|
|
43
|
+
"codeSnippets": "コードスニペット",
|
|
44
|
+
"contentTabs": "コンテンツタブ",
|
|
45
|
+
"fileTree": "ファイルツリー",
|
|
46
|
+
"diagram": "図",
|
|
47
|
+
"diagramError": "この図を表示できませんでした。",
|
|
48
|
+
"zoomOut": "縮小",
|
|
49
|
+
"resetView": "表示をリセット",
|
|
50
|
+
"zoomIn": "拡大",
|
|
51
|
+
"viewImage": "画像を原寸で表示",
|
|
52
|
+
"viewNamedImage": "「{alt}」を原寸で表示",
|
|
53
|
+
"fullSizeImage": "原寸の画像",
|
|
54
|
+
"diagramSource": "図のソース",
|
|
55
|
+
"fieldName": "名前",
|
|
56
|
+
"fieldType": "型",
|
|
57
|
+
"fieldDescription": "説明",
|
|
58
|
+
"fieldRequired": "必須",
|
|
59
|
+
"fieldDeprecated": "非推奨",
|
|
60
|
+
"fieldDefault": "デフォルト:",
|
|
61
|
+
"fieldOptions": "選択肢:",
|
|
62
|
+
"allowedTypes": "許可される型",
|
|
63
|
+
"properties": "プロパティ",
|
|
64
|
+
"apiHeaders": "ヘッダー",
|
|
65
|
+
"apiPathParameters": "パスパラメーター",
|
|
66
|
+
"apiQueryParameters": "クエリパラメーター",
|
|
67
|
+
"apiCookieParameters": "Cookieパラメーター",
|
|
68
|
+
"apiRequestBody": "リクエストボディ",
|
|
69
|
+
"apiResponses": "レスポンス",
|
|
70
|
+
"apiCodeSamples": "コードサンプル",
|
|
71
|
+
"apiExampleRequest": "リクエスト例",
|
|
72
|
+
"apiExampleResponse": "{status} の例",
|
|
73
|
+
"apiCredentials": "認証情報(例):"
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"menu": "菜单",
|
|
3
|
+
"documentationNavigation": "文档导航",
|
|
4
|
+
"sections": "章节",
|
|
5
|
+
"tableOfContents": "本页内容",
|
|
6
|
+
"tableOfContentsNavigation": "目录",
|
|
7
|
+
"searchTitle": "搜索",
|
|
8
|
+
"searching": "正在搜索...",
|
|
9
|
+
"searchUnavailable": "搜索不可用",
|
|
10
|
+
"noResults": "无结果",
|
|
11
|
+
"lastUpdated": "最后更新于",
|
|
12
|
+
"relatedTopics": "相关主题",
|
|
13
|
+
"previousPage": "上一页",
|
|
14
|
+
"nextPage": "下一页",
|
|
15
|
+
"notFound": "找不到页面",
|
|
16
|
+
"dismissBanner": "关闭横幅",
|
|
17
|
+
"toggleTheme": "切换主题",
|
|
18
|
+
"moreOptions": "更多选项",
|
|
19
|
+
"copied": "已复制",
|
|
20
|
+
"expand": "展开",
|
|
21
|
+
"collapse": "折叠",
|
|
22
|
+
"copyPage": "复制页面",
|
|
23
|
+
"copyPageDescription": "将此页面复制为 Markdown",
|
|
24
|
+
"viewMarkdown": "以 Markdown 查看",
|
|
25
|
+
"viewMarkdownDescription": "以纯 Markdown 打开此页面",
|
|
26
|
+
"openInChatGPT": "在 ChatGPT 中打开",
|
|
27
|
+
"openInClaude": "在 Claude 中打开",
|
|
28
|
+
"openInPerplexity": "在 Perplexity 中打开",
|
|
29
|
+
"askQuestionsAboutPage": "询问有关此页面的问题",
|
|
30
|
+
"searchPlaceholder": "搜索...",
|
|
31
|
+
"poweredBy": "由以下工具提供支持:",
|
|
32
|
+
"copyCode": "复制代码",
|
|
33
|
+
"editPage": "编辑此页面",
|
|
34
|
+
"feedbackPrompt": "此页面对您有帮助吗?",
|
|
35
|
+
"feedbackYes": "是",
|
|
36
|
+
"feedbackNo": "否",
|
|
37
|
+
"feedbackSuccess": "感谢您的反馈!",
|
|
38
|
+
"feedbackError": "无法发送反馈,请重试。",
|
|
39
|
+
"close": "关闭",
|
|
40
|
+
"filterUpdates": "按标签筛选更新",
|
|
41
|
+
"clear": "清除",
|
|
42
|
+
"noUpdates": "未找到更新。",
|
|
43
|
+
"codeSnippets": "代码片段",
|
|
44
|
+
"contentTabs": "内容选项卡",
|
|
45
|
+
"fileTree": "文件树",
|
|
46
|
+
"diagram": "图表",
|
|
47
|
+
"diagramError": "无法显示此图表。",
|
|
48
|
+
"zoomOut": "缩小",
|
|
49
|
+
"resetView": "重置视图",
|
|
50
|
+
"zoomIn": "放大",
|
|
51
|
+
"viewImage": "查看原尺寸图片",
|
|
52
|
+
"viewNamedImage": "查看“{alt}”的原尺寸图片",
|
|
53
|
+
"fullSizeImage": "原尺寸图片",
|
|
54
|
+
"diagramSource": "图表源代码",
|
|
55
|
+
"fieldName": "名称",
|
|
56
|
+
"fieldType": "类型",
|
|
57
|
+
"fieldDescription": "描述",
|
|
58
|
+
"fieldRequired": "必填",
|
|
59
|
+
"fieldDeprecated": "已弃用",
|
|
60
|
+
"fieldDefault": "默认值:",
|
|
61
|
+
"fieldOptions": "选项:",
|
|
62
|
+
"allowedTypes": "允许的类型",
|
|
63
|
+
"properties": "属性",
|
|
64
|
+
"apiHeaders": "请求头",
|
|
65
|
+
"apiPathParameters": "路径参数",
|
|
66
|
+
"apiQueryParameters": "查询参数",
|
|
67
|
+
"apiCookieParameters": "Cookie 参数",
|
|
68
|
+
"apiRequestBody": "请求体",
|
|
69
|
+
"apiResponses": "响应",
|
|
70
|
+
"apiCodeSamples": "代码示例",
|
|
71
|
+
"apiExampleRequest": "请求示例",
|
|
72
|
+
"apiExampleResponse": "{status} 示例",
|
|
73
|
+
"apiCredentials": "身份验证凭据,例如"
|
|
74
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"menu": "選單",
|
|
3
|
+
"documentationNavigation": "文件導覽",
|
|
4
|
+
"sections": "章節",
|
|
5
|
+
"tableOfContents": "本頁內容",
|
|
6
|
+
"tableOfContentsNavigation": "目錄",
|
|
7
|
+
"searchTitle": "搜尋",
|
|
8
|
+
"searching": "正在搜尋...",
|
|
9
|
+
"searchUnavailable": "搜尋無法使用",
|
|
10
|
+
"noResults": "沒有結果",
|
|
11
|
+
"lastUpdated": "最後更新於",
|
|
12
|
+
"relatedTopics": "相關主題",
|
|
13
|
+
"previousPage": "上一頁",
|
|
14
|
+
"nextPage": "下一頁",
|
|
15
|
+
"notFound": "找不到頁面",
|
|
16
|
+
"dismissBanner": "關閉橫幅",
|
|
17
|
+
"toggleTheme": "切換主題",
|
|
18
|
+
"moreOptions": "更多選項",
|
|
19
|
+
"copied": "已複製",
|
|
20
|
+
"expand": "展開",
|
|
21
|
+
"collapse": "收合",
|
|
22
|
+
"copyPage": "複製頁面",
|
|
23
|
+
"copyPageDescription": "將此頁面複製為 Markdown",
|
|
24
|
+
"viewMarkdown": "以 Markdown 檢視",
|
|
25
|
+
"viewMarkdownDescription": "以純 Markdown 開啟此頁面",
|
|
26
|
+
"openInChatGPT": "在 ChatGPT 中開啟",
|
|
27
|
+
"openInClaude": "在 Claude 中開啟",
|
|
28
|
+
"openInPerplexity": "在 Perplexity 中開啟",
|
|
29
|
+
"askQuestionsAboutPage": "詢問有關此頁面的問題",
|
|
30
|
+
"searchPlaceholder": "搜尋...",
|
|
31
|
+
"poweredBy": "由以下工具提供支援:",
|
|
32
|
+
"copyCode": "複製程式碼",
|
|
33
|
+
"editPage": "編輯此頁面",
|
|
34
|
+
"feedbackPrompt": "此頁面對您有幫助嗎?",
|
|
35
|
+
"feedbackYes": "是",
|
|
36
|
+
"feedbackNo": "否",
|
|
37
|
+
"feedbackSuccess": "感謝您的回饋!",
|
|
38
|
+
"feedbackError": "無法傳送回饋,請重試。",
|
|
39
|
+
"close": "關閉",
|
|
40
|
+
"filterUpdates": "依標籤篩選更新",
|
|
41
|
+
"clear": "清除",
|
|
42
|
+
"noUpdates": "找不到更新。",
|
|
43
|
+
"codeSnippets": "程式碼片段",
|
|
44
|
+
"contentTabs": "內容分頁",
|
|
45
|
+
"fileTree": "檔案樹",
|
|
46
|
+
"diagram": "圖表",
|
|
47
|
+
"diagramError": "無法顯示此圖表。",
|
|
48
|
+
"zoomOut": "縮小",
|
|
49
|
+
"resetView": "重設檢視",
|
|
50
|
+
"zoomIn": "放大",
|
|
51
|
+
"viewImage": "檢視原尺寸圖片",
|
|
52
|
+
"viewNamedImage": "檢視「{alt}」的原尺寸圖片",
|
|
53
|
+
"fullSizeImage": "原尺寸圖片",
|
|
54
|
+
"diagramSource": "圖表原始碼",
|
|
55
|
+
"fieldName": "名稱",
|
|
56
|
+
"fieldType": "類型",
|
|
57
|
+
"fieldDescription": "描述",
|
|
58
|
+
"fieldRequired": "必填",
|
|
59
|
+
"fieldDeprecated": "已棄用",
|
|
60
|
+
"fieldDefault": "預設值:",
|
|
61
|
+
"fieldOptions": "選項:",
|
|
62
|
+
"allowedTypes": "允許的類型",
|
|
63
|
+
"properties": "屬性",
|
|
64
|
+
"apiHeaders": "請求標頭",
|
|
65
|
+
"apiPathParameters": "路徑參數",
|
|
66
|
+
"apiQueryParameters": "查詢參數",
|
|
67
|
+
"apiCookieParameters": "Cookie 參數",
|
|
68
|
+
"apiRequestBody": "請求主體",
|
|
69
|
+
"apiResponses": "回應",
|
|
70
|
+
"apiCodeSamples": "程式碼範例",
|
|
71
|
+
"apiExampleRequest": "請求範例",
|
|
72
|
+
"apiExampleResponse": "{status} 範例",
|
|
73
|
+
"apiCredentials": "驗證憑證,例如"
|
|
74
|
+
}
|
package/src/lib/types.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type { ThemeLabels, Translations } from '../../types/labels';
|
|
2
|
+
|
|
3
|
+
export type { ThemeLabels, Translations } from '../../types/labels';
|
|
4
|
+
|
|
1
5
|
import type { PluggableList } from 'unified';
|
|
2
6
|
|
|
3
7
|
/* ---------------------------------------------------------------------------
|
|
@@ -134,8 +138,10 @@ export interface ShisoConfig {
|
|
|
134
138
|
contentDir?: string;
|
|
135
139
|
/** Absolute site origin, required for canonical and og:url tags. */
|
|
136
140
|
siteUrl?: string;
|
|
137
|
-
/**
|
|
141
|
+
/** Default locale for UI labels and date formatting. */
|
|
138
142
|
locale?: string;
|
|
143
|
+
/** Partial UI label overrides keyed by BCP 47 locale. */
|
|
144
|
+
translations?: Translations;
|
|
139
145
|
/** Build-time remark and rehype plugins. */
|
|
140
146
|
mdx?: MdxConfig;
|
|
141
147
|
}
|
|
@@ -146,6 +152,7 @@ export interface ResolvedShisoConfig {
|
|
|
146
152
|
contentDir: string;
|
|
147
153
|
siteUrl?: string;
|
|
148
154
|
locale: string;
|
|
155
|
+
translations?: Translations;
|
|
149
156
|
/** Build-only compiler hooks. Removed from the virtual browser module. */
|
|
150
157
|
mdx?: MdxConfig;
|
|
151
158
|
}
|
|
@@ -211,6 +218,11 @@ export interface StandalonePageItem {
|
|
|
211
218
|
page: string;
|
|
212
219
|
/** Page title used in the document head. Frontmatter title wins. */
|
|
213
220
|
title?: string;
|
|
221
|
+
/**
|
|
222
|
+
* Navigation language this page belongs to, e.g. "ja". Sets the document
|
|
223
|
+
* language, header navigation, and language selector for the page.
|
|
224
|
+
*/
|
|
225
|
+
language?: string;
|
|
214
226
|
}
|
|
215
227
|
|
|
216
228
|
/** Normalized standalone page. */
|
|
@@ -221,6 +233,13 @@ export interface StandalonePage {
|
|
|
221
233
|
filePath: string;
|
|
222
234
|
/** Config-level head-title override. */
|
|
223
235
|
title?: string;
|
|
236
|
+
/** Navigation language the page belongs to; untagged pages use the default language. */
|
|
237
|
+
language?: string;
|
|
238
|
+
/**
|
|
239
|
+
* Language-independent identity: the file slug without its language folder,
|
|
240
|
+
* so "ja/home" (language "ja") and "home" are the same page in two languages.
|
|
241
|
+
*/
|
|
242
|
+
key: string;
|
|
224
243
|
}
|
|
225
244
|
|
|
226
245
|
export interface SeoConfig {
|
|
@@ -550,37 +569,6 @@ export interface NormalizedFooter {
|
|
|
550
569
|
attribution: boolean;
|
|
551
570
|
}
|
|
552
571
|
|
|
553
|
-
export interface ThemeLabels {
|
|
554
|
-
menu: string;
|
|
555
|
-
documentationNavigation: string;
|
|
556
|
-
sections: string;
|
|
557
|
-
tableOfContents: string;
|
|
558
|
-
tableOfContentsNavigation: string;
|
|
559
|
-
searchTitle: string;
|
|
560
|
-
searching: string;
|
|
561
|
-
searchUnavailable: string;
|
|
562
|
-
noResults: string;
|
|
563
|
-
lastUpdated: string;
|
|
564
|
-
relatedTopics: string;
|
|
565
|
-
previousPage: string;
|
|
566
|
-
nextPage: string;
|
|
567
|
-
notFound: string;
|
|
568
|
-
dismissBanner: string;
|
|
569
|
-
toggleTheme: string;
|
|
570
|
-
moreOptions: string;
|
|
571
|
-
copied: string;
|
|
572
|
-
expand: string;
|
|
573
|
-
collapse: string;
|
|
574
|
-
copyPage: string;
|
|
575
|
-
copyPageDescription: string;
|
|
576
|
-
viewMarkdown: string;
|
|
577
|
-
viewMarkdownDescription: string;
|
|
578
|
-
openInChatGPT: string;
|
|
579
|
-
openInClaude: string;
|
|
580
|
-
openInPerplexity: string;
|
|
581
|
-
askQuestionsAboutPage: string;
|
|
582
|
-
}
|
|
583
|
-
|
|
584
572
|
export interface SiteModel {
|
|
585
573
|
name?: string;
|
|
586
574
|
logo: {
|
package/types/config.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type { Translations } from './labels';
|
|
2
|
+
|
|
3
|
+
export type { ThemeLabels, Translations } from './labels';
|
|
4
|
+
|
|
1
5
|
import type { PluggableList } from 'unified';
|
|
2
6
|
|
|
3
7
|
/** Build-time Markdown and MDX compiler extensions. */
|
|
@@ -16,8 +20,10 @@ export interface ShisoConfig {
|
|
|
16
20
|
contentDir?: string;
|
|
17
21
|
/** Absolute site origin (e.g. "https://docs.example.com") used for canonical URLs, og:url, and the sitemap. */
|
|
18
22
|
siteUrl?: string;
|
|
19
|
-
/**
|
|
23
|
+
/** Default locale for UI labels and date formatting. Default "en-US". */
|
|
20
24
|
locale?: string;
|
|
25
|
+
/** Partial UI label overrides keyed by BCP 47 locale. */
|
|
26
|
+
translations?: Translations;
|
|
21
27
|
/** Build-time remark and rehype plugins for Markdown and MDX content. */
|
|
22
28
|
mdx?: MdxConfig;
|
|
23
29
|
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export interface ThemeLabels {
|
|
2
|
+
menu: string;
|
|
3
|
+
documentationNavigation: string;
|
|
4
|
+
sections: string;
|
|
5
|
+
tableOfContents: string;
|
|
6
|
+
tableOfContentsNavigation: string;
|
|
7
|
+
searchTitle: string;
|
|
8
|
+
searching: string;
|
|
9
|
+
searchUnavailable: string;
|
|
10
|
+
noResults: string;
|
|
11
|
+
lastUpdated: string;
|
|
12
|
+
relatedTopics: string;
|
|
13
|
+
previousPage: string;
|
|
14
|
+
nextPage: string;
|
|
15
|
+
notFound: string;
|
|
16
|
+
dismissBanner: string;
|
|
17
|
+
toggleTheme: string;
|
|
18
|
+
moreOptions: string;
|
|
19
|
+
copied: string;
|
|
20
|
+
expand: string;
|
|
21
|
+
collapse: string;
|
|
22
|
+
copyPage: string;
|
|
23
|
+
copyPageDescription: string;
|
|
24
|
+
viewMarkdown: string;
|
|
25
|
+
viewMarkdownDescription: string;
|
|
26
|
+
openInChatGPT: string;
|
|
27
|
+
openInClaude: string;
|
|
28
|
+
openInPerplexity: string;
|
|
29
|
+
askQuestionsAboutPage: string;
|
|
30
|
+
searchPlaceholder: string;
|
|
31
|
+
poweredBy: string;
|
|
32
|
+
copyCode: string;
|
|
33
|
+
editPage: string;
|
|
34
|
+
feedbackPrompt: string;
|
|
35
|
+
feedbackYes: string;
|
|
36
|
+
feedbackNo: string;
|
|
37
|
+
feedbackSuccess: string;
|
|
38
|
+
feedbackError: string;
|
|
39
|
+
close: string;
|
|
40
|
+
filterUpdates: string;
|
|
41
|
+
clear: string;
|
|
42
|
+
noUpdates: string;
|
|
43
|
+
codeSnippets: string;
|
|
44
|
+
contentTabs: string;
|
|
45
|
+
fileTree: string;
|
|
46
|
+
diagram: string;
|
|
47
|
+
diagramError: string;
|
|
48
|
+
zoomOut: string;
|
|
49
|
+
resetView: string;
|
|
50
|
+
zoomIn: string;
|
|
51
|
+
viewImage: string;
|
|
52
|
+
viewNamedImage: string;
|
|
53
|
+
fullSizeImage: string;
|
|
54
|
+
diagramSource: string;
|
|
55
|
+
fieldName: string;
|
|
56
|
+
fieldType: string;
|
|
57
|
+
fieldDescription: string;
|
|
58
|
+
fieldRequired: string;
|
|
59
|
+
fieldDeprecated: string;
|
|
60
|
+
fieldDefault: string;
|
|
61
|
+
fieldOptions: string;
|
|
62
|
+
allowedTypes: string;
|
|
63
|
+
properties: string;
|
|
64
|
+
apiHeaders: string;
|
|
65
|
+
apiPathParameters: string;
|
|
66
|
+
apiQueryParameters: string;
|
|
67
|
+
apiCookieParameters: string;
|
|
68
|
+
apiRequestBody: string;
|
|
69
|
+
apiResponses: string;
|
|
70
|
+
apiCodeSamples: string;
|
|
71
|
+
apiExampleRequest: string;
|
|
72
|
+
apiExampleResponse: string;
|
|
73
|
+
apiCredentials: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export type Translations = Record<string, Partial<ThemeLabels>>;
|