feat(chat): add Mermaid diagram zoom controls (#2100)
* feat(chat): add mermaid diagram zoom controls * fix(chat): handle malformed mermaid data urls * fix(chat): preserve mermaid load error stack --------- Co-authored-by: Bohdan Triapitsyn <artmore@protonmail.com>
This commit is contained in:
committed by
GitHub
co-authored by
Bohdan Triapitsyn
parent
dfed121bf1
commit
3d32ac7989
@@ -1281,6 +1281,11 @@ export const dict: Record<I18nKey, string> = {
|
||||
'chat.toolOutputDialog.image.previousAria': 'Poprzedni obraz',
|
||||
'chat.toolOutputDialog.mermaid.closeAria': 'Zamknij podgląd diagramu',
|
||||
'chat.toolOutputDialog.mermaid.loadFailed': 'Nie udało się wczytać diagramu Mermaid.',
|
||||
'chat.toolOutputDialog.mermaid.dataUrlMalformed': 'Adres URL danych Mermaid ma nieprawidłowy format.',
|
||||
'chat.toolOutputDialog.mermaid.invalidLocalPath': 'Lokalna ścieżka pliku Mermaid jest nieprawidłowa.',
|
||||
'chat.toolOutputDialog.mermaid.readFileFailedWithStatus': 'Nie udało się odczytać pliku Mermaid. Status: {status}.',
|
||||
'chat.toolOutputDialog.mermaid.unsupportedUrlProtocol': 'Protokół adresu URL Mermaid nie jest obsługiwany.',
|
||||
'chat.toolOutputDialog.mermaid.loadFailedWithStatus': 'Nie udało się wczytać diagramu Mermaid. Status: {status}.',
|
||||
'chat.toolOutputDialog.mermaid.loading': 'Ładowanie diagramu...',
|
||||
'chat.toolOutputDialog.mermaid.missingSource': 'Brakuje adresu URL źródła Mermaid.',
|
||||
'chat.toolOutputDialog.mermaid.renderFailed': 'Nie udało się wyrenderować diagramu Mermaid.',
|
||||
@@ -2159,7 +2164,12 @@ export const dict: Record<I18nKey, string> = {
|
||||
'markdownRenderer.mermaid.actions.copySourceTitle': 'Kopiuj źródło',
|
||||
'markdownRenderer.mermaid.actions.copyTitle': 'Kopiuj',
|
||||
'markdownRenderer.mermaid.actions.downloadSvgTitle': 'Pobierz SVG',
|
||||
'markdownRenderer.mermaid.actions.zoomInTitle': 'Powiększ',
|
||||
'markdownRenderer.mermaid.actions.zoomOutTitle': 'Pomniejsz',
|
||||
'markdownRenderer.mermaid.actions.resetViewTitle': 'Resetuj widok',
|
||||
'markdownRenderer.mermaid.toast.downloadFailed': 'Nie udało się pobrać diagramu',
|
||||
'markdownRenderer.code.actions.copyTitle': 'Kopiuj kod',
|
||||
'markdownRenderer.code.actions.copiedTitle': 'Skopiowano',
|
||||
'markdownRenderer.table.actions.copyTitle': 'Kopiuj tabelę',
|
||||
'markdownRenderer.code.actions.enableWrapTitle': 'Włącz zawijanie wierszy',
|
||||
'markdownRenderer.code.actions.disableWrapTitle': 'Wyłącz zawijanie wierszy',
|
||||
|
||||
Reference in New Issue
Block a user