Skip to content

Commit 7af0442

Browse files
Metallist1Nedas
andauthored
Added missing UI strings to ui-strings.json (#303)
* Added missing strings * Fixed copy code not translating * pulled latest changed from template --------- Co-authored-by: Nedas <nedas.surkus@tabulareditor.com>
1 parent 14aca4b commit 7af0442

7 files changed

Lines changed: 118 additions & 82 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,12 @@ If a key is missing from a language's file, or no `_ui-strings.json` exists at a
166166
| `changeTheme` | `Change theme` | Theme picker label |
167167
| `copy` | `Copy` | Code block copy button |
168168
| `downloadPdf` | `Download PDF` | PDF download button |
169+
| `search` | `Search documentation` | Search input placeholder |
170+
| `note` | `Note` | Alert box heading |
171+
| `warning` | `Warning` | Alert box heading |
172+
| `tip` | `Tip` | Alert box heading |
173+
| `important` | `Important` | Alert box heading |
174+
| `caution` | `Caution` | Alert box heading |
175+
| `tableOfContents` | `Table of Contents` | Mobile TOC offcanvas title |
176+
| `selectLanguage` | `Select language` | Language picker label |
177+
| `copyCode` | `Copy code` | Code block copy button aria-label |

content/_ui-strings.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,14 @@
3535
"themeAuto": "Auto",
3636
"changeTheme": "Change theme",
3737
"copy": "Copy",
38-
"downloadPdf": "Download PDF"
38+
"downloadPdf": "Download PDF",
39+
"search": "Search documentation",
40+
"note": "Note",
41+
"warning": "Warning",
42+
"tip": "Tip",
43+
"important": "Important",
44+
"caution": "Caution",
45+
"tableOfContents": "Table of Contents",
46+
"selectLanguage": "Select language",
47+
"copyCode": "Copy code"
3948
}

localizedContent/es/content/_ui-strings.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,14 @@
3535
"themeAuto": "Automático",
3636
"changeTheme": "Cambiar tema",
3737
"copy": "Copiar",
38-
"downloadPdf": "Descargar PDF"
38+
"downloadPdf": "Descargar PDF",
39+
"search": "Buscar documentación",
40+
"note": "Nota",
41+
"warning": "Advertencia",
42+
"tip": "Consejo",
43+
"important": "Importante",
44+
"caution": "Precaución",
45+
"tableOfContents": "Tabla de contenidos",
46+
"selectLanguage": "Seleccionar idioma",
47+
"copyCode": "Copiar código"
3948
}

localizedContent/zh/content/_ui-strings.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,14 @@
3535
"themeAuto": "自动",
3636
"changeTheme": "切换主题",
3737
"copy": "复制",
38-
"downloadPdf": "下载 PDF"
38+
"downloadPdf": "下载 PDF",
39+
"search": "搜索文档",
40+
"note": "注意",
41+
"warning": "警告",
42+
"tip": "提示",
43+
"important": "重要",
44+
"caution": "注意事项",
45+
"tableOfContents": "目录",
46+
"selectLanguage": "选择语言",
47+
"copyCode": "复制代码"
3948
}

templates/tabulareditor/layout/_master.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
<div class="toc-offcanvas">
205205
<div class="offcanvas-md offcanvas-start" tabindex="-1" id="tocOffcanvas" aria-labelledby="tocOffcanvasLabel">
206206
<div class="offcanvas-header">
207-
<h5 class="offcanvas-title" id="tocOffcanvasLabel">Table of Contents</h5>
207+
<h5 class="offcanvas-title" id="tocOffcanvasLabel" data-ui-string="tableOfContents">Table of Contents</h5>
208208
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" data-bs-target="#tocOffcanvas" aria-label="Close"></button>
209209
</div>
210210
<div class="offcanvas-body">

templates/tabulareditor/public/docfx.min.js

Lines changed: 74 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/tabulareditor/public/docfx.min.js.map

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)