@docx-editor.dev/i18n 2.21.1 → 2.23.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/README.md +11 -20
- package/dist/de.js +378 -255
- package/dist/de.mjs +378 -255
- package/dist/en.js +124 -1
- package/dist/en.mjs +124 -1
- package/dist/es.d.mts +33 -0
- package/dist/es.d.ts +33 -0
- package/dist/es.js +1079 -0
- package/dist/es.mjs +1052 -0
- package/dist/fr.js +389 -266
- package/dist/fr.mjs +389 -266
- package/dist/he.js +422 -299
- package/dist/he.mjs +422 -299
- package/dist/hi.js +377 -254
- package/dist/hi.mjs +377 -254
- package/dist/id.js +400 -277
- package/dist/id.mjs +400 -277
- package/dist/index.d.mts +143 -4
- package/dist/index.d.ts +143 -4
- package/dist/index.js +4682 -2401
- package/dist/index.mjs +4680 -2401
- package/dist/pl.js +383 -260
- package/dist/pl.mjs +383 -260
- package/dist/pt-BR.js +385 -262
- package/dist/pt-BR.mjs +385 -262
- package/dist/tr.js +392 -269
- package/dist/tr.mjs +392 -269
- package/dist/zh-CN.js +381 -258
- package/dist/zh-CN.mjs +381 -258
- package/package.json +6 -1
package/dist/index.d.mts
CHANGED
|
@@ -88,13 +88,35 @@ var toolbar = {
|
|
|
88
88
|
tableOfContents: "Table of contents",
|
|
89
89
|
watermark: "Watermark",
|
|
90
90
|
help: "Help",
|
|
91
|
-
reportIssue: "Report issue"
|
|
91
|
+
reportIssue: "Report issue",
|
|
92
|
+
"export": "Export",
|
|
93
|
+
exportMarkdown: "Markdown (.md)",
|
|
94
|
+
exportPdf: "PDF (.pdf)",
|
|
95
|
+
exportFailed: "Export failed: {message}",
|
|
96
|
+
exportMarkdownMissing: "Install @docx-editor.dev/docx-to-markdown and configure menu.exporters.markdown.",
|
|
97
|
+
exportPdfMissing: "Install @docx-editor.dev/docx-to-pdf on your Node.js server and configure menu.exporters.pdf.",
|
|
98
|
+
exportPdfServerUnavailable: "PDF export is unavailable. Configure a Node.js server with @docx-editor.dev/docx-to-pdf.",
|
|
99
|
+
exportingMarkdown: "Exporting Markdown…",
|
|
100
|
+
exportingPdf: "Exporting PDF…",
|
|
101
|
+
exportMarkdownFailed: "Markdown export failed",
|
|
102
|
+
exportPdfFailed: "PDF export failed",
|
|
103
|
+
exportDownloadHint: "Your download starts when the file is ready. You can continue editing while the export runs.",
|
|
104
|
+
exportContinueEditing: "Continue editing",
|
|
105
|
+
printPreparing: "Preparing to print…",
|
|
106
|
+
printOpenPdf: "Open PDF",
|
|
107
|
+
printFailed: "Print failed",
|
|
108
|
+
printFailedMessage: "Printing failed: {message}",
|
|
109
|
+
printLoadFailed: "The PDF did not load for printing. Select Open PDF, then print from the PDF viewer.",
|
|
110
|
+
printRefused: "The browser did not allow printing from the page. Select Open PDF, then print from the PDF viewer.",
|
|
111
|
+
printNoViewer: "This browser cannot print PDF files from the page. Select Open PDF, then print from the PDF viewer.",
|
|
112
|
+
printPdfMissing: "Printing uses PDF conversion. Install @docx-editor.dev/docx-to-pdf on your Node.js server and configure menu.exporters.pdf."
|
|
92
113
|
};
|
|
93
114
|
var toc = {
|
|
94
115
|
refresh: "Refresh table of contents",
|
|
95
116
|
refreshPageNumbers: "Refresh page numbers"
|
|
96
117
|
};
|
|
97
118
|
var formattingBar = {
|
|
119
|
+
label: "Formatting controls",
|
|
98
120
|
groups: {
|
|
99
121
|
history: "History",
|
|
100
122
|
zoom: "Zoom",
|
|
@@ -103,6 +125,7 @@ var formattingBar = {
|
|
|
103
125
|
textFormatting: "Text formatting",
|
|
104
126
|
script: "Script",
|
|
105
127
|
alignment: "Alignment",
|
|
128
|
+
direction: "Text direction",
|
|
106
129
|
listFormatting: "List formatting",
|
|
107
130
|
format: "Format",
|
|
108
131
|
image: "Image",
|
|
@@ -326,6 +349,9 @@ var dialogs = {
|
|
|
326
349
|
alignCenter: "Centered",
|
|
327
350
|
alignRight: "Right",
|
|
328
351
|
alignJustify: "Justified",
|
|
352
|
+
direction: "Direction",
|
|
353
|
+
directionLtr: "Left-to-right",
|
|
354
|
+
directionRtl: "Right-to-left",
|
|
329
355
|
indentation: "Indentation",
|
|
330
356
|
beforeText: "Before text",
|
|
331
357
|
afterText: "After text",
|
|
@@ -650,6 +676,8 @@ var imageAltText = {
|
|
|
650
676
|
description: "Description"
|
|
651
677
|
};
|
|
652
678
|
var editor = {
|
|
679
|
+
documentContent: "Document content",
|
|
680
|
+
documentViewport: "Document pages",
|
|
653
681
|
showDocumentOutline: "Show document outline",
|
|
654
682
|
linkCopied: "Link copied to clipboard",
|
|
655
683
|
fontSubstitutionNotice: "Some fonts in this document aren't available, so substitutes are shown: {fonts}"
|
|
@@ -942,6 +970,101 @@ var textFormField = {
|
|
|
942
970
|
firstCapital: "First capital",
|
|
943
971
|
titleCase: "Title case"
|
|
944
972
|
};
|
|
973
|
+
var documentRefresh = {
|
|
974
|
+
title: "Server updates",
|
|
975
|
+
description: "Receive two sample updates while you read. Your scroll position stays in place.",
|
|
976
|
+
limitations: "Each update resets selection and undo history. Edits during processing prevent replacement.",
|
|
977
|
+
start: "Simulate server updates",
|
|
978
|
+
cancel: "Cancel updates",
|
|
979
|
+
reset: "Reset example",
|
|
980
|
+
show: "Highlight recent changes",
|
|
981
|
+
clear: "Clear highlights",
|
|
982
|
+
previous: "Previous change",
|
|
983
|
+
next: "Next change",
|
|
984
|
+
retry: "Restore document",
|
|
985
|
+
download: "Download recovery file",
|
|
986
|
+
empty: "No reliable change locations are available.",
|
|
987
|
+
count: "{count, plural, one {# recent change} other {# recent changes}}",
|
|
988
|
+
position: "Change {current} of {total}",
|
|
989
|
+
partial: "{count} processor operations failed. Successful changes remain applied.",
|
|
990
|
+
idle: "Ready for updates.",
|
|
991
|
+
capturing: "Preparing the document. Finish text composition to continue.",
|
|
992
|
+
processing: "Processing on the server. Edits made now prevent this update.",
|
|
993
|
+
refreshing: "Displaying the updated document.",
|
|
994
|
+
recovering: "Restoring your previous document.",
|
|
995
|
+
complete: "Document updated. Your scroll position stays in place.",
|
|
996
|
+
failed: "The update could not finish.",
|
|
997
|
+
loadError: "The example document could not load.",
|
|
998
|
+
localEdits: "Your edits are safe. Submit the document again to request an update.",
|
|
999
|
+
invalidDocument: "The returned file is invalid. Your document stays open.",
|
|
1000
|
+
recoveryFailed: "Restore the document or download the recovery file.",
|
|
1001
|
+
cancelled: "Updates cancelled.",
|
|
1002
|
+
unavailable: "This change has no available location.",
|
|
1003
|
+
delivery: "Delivery date",
|
|
1004
|
+
review: "Review date",
|
|
1005
|
+
sampleDescription: "The mock replaces this sample. Reset the example before each test.",
|
|
1006
|
+
scrollToChange: "Scroll to the change after the update",
|
|
1007
|
+
scrolled: "Document updated. Scrolled to the changed paragraph.",
|
|
1008
|
+
processingLabel: "Processing",
|
|
1009
|
+
sampleEdited: "Your edits stay in the document. Reset the sample to run this demo again."
|
|
1010
|
+
};
|
|
1011
|
+
var anchorNavigation = {
|
|
1012
|
+
title: "Paragraph references",
|
|
1013
|
+
description: "Choose a finding and an effect. The editor scrolls to the paragraph, highlights it, or both.",
|
|
1014
|
+
reference: "Reference",
|
|
1015
|
+
effect: "Effect",
|
|
1016
|
+
style: "Highlight style",
|
|
1017
|
+
duration: "Highlight duration",
|
|
1018
|
+
position: "Scroll position",
|
|
1019
|
+
motion: "Scroll motion",
|
|
1020
|
+
show: "Show reference",
|
|
1021
|
+
clear: "Clear highlight",
|
|
1022
|
+
code: "Calls for these settings",
|
|
1023
|
+
ready: "Choose a reference, and then select Show reference.",
|
|
1024
|
+
cleared: "The highlight is cleared.",
|
|
1025
|
+
scrollFailed: "This reference is unavailable. The document did not move.",
|
|
1026
|
+
highlightFailed: "Scrolled to the reference. Highlights support body paragraphs and table cells only.",
|
|
1027
|
+
highlightOnlyFailed: "This reference cannot receive a highlight. Highlights support body paragraphs and table cells only.",
|
|
1028
|
+
references: {
|
|
1029
|
+
payment: "Payment terms",
|
|
1030
|
+
fee: "Annual support fee (table cell)",
|
|
1031
|
+
liability: "Second \"Supplier\" in the liability clause",
|
|
1032
|
+
law: "\"State of New York\" in governing law",
|
|
1033
|
+
header: "Draft notice (header)",
|
|
1034
|
+
missing: "Deleted paragraph (missing)"
|
|
1035
|
+
},
|
|
1036
|
+
effects: {
|
|
1037
|
+
both: "Scroll and highlight",
|
|
1038
|
+
scroll: "Scroll only",
|
|
1039
|
+
highlight: "Highlight only"
|
|
1040
|
+
},
|
|
1041
|
+
styles: {
|
|
1042
|
+
"default": "Default blue",
|
|
1043
|
+
amber: "Amber with a dashed border",
|
|
1044
|
+
glow: "Green glow (CSS class)",
|
|
1045
|
+
instant: "Default blue without a fade"
|
|
1046
|
+
},
|
|
1047
|
+
durations: {
|
|
1048
|
+
short: "1.5 seconds",
|
|
1049
|
+
"default": "3 seconds",
|
|
1050
|
+
manual: "Until cleared"
|
|
1051
|
+
},
|
|
1052
|
+
positions: {
|
|
1053
|
+
centerIfNeeded: "Center if needed",
|
|
1054
|
+
center: "Center",
|
|
1055
|
+
start: "Top of the viewport",
|
|
1056
|
+
nearest: "Nearest edge"
|
|
1057
|
+
},
|
|
1058
|
+
motions: {
|
|
1059
|
+
instant: "Instant",
|
|
1060
|
+
smooth: "Smooth"
|
|
1061
|
+
},
|
|
1062
|
+
done: {
|
|
1063
|
+
both: "Scrolled to the reference and highlighted it.",
|
|
1064
|
+
scroll: "Scrolled to the reference.",
|
|
1065
|
+
highlight: "Highlighted the reference. If it is offscreen, scroll to see it."
|
|
1066
|
+
}
|
|
1067
|
+
};
|
|
945
1068
|
var enJson = {
|
|
946
1069
|
_lang: _lang,
|
|
947
1070
|
common: common,
|
|
@@ -988,7 +1111,9 @@ var enJson = {
|
|
|
988
1111
|
collaboration: collaboration,
|
|
989
1112
|
collaborationDemo: collaborationDemo,
|
|
990
1113
|
review: review,
|
|
991
|
-
textFormField: textFormField
|
|
1114
|
+
textFormField: textFormField,
|
|
1115
|
+
documentRefresh: documentRefresh,
|
|
1116
|
+
anchorNavigation: anchorNavigation
|
|
992
1117
|
};
|
|
993
1118
|
|
|
994
1119
|
/**
|
|
@@ -1000,6 +1125,18 @@ var enJson = {
|
|
|
1000
1125
|
*/
|
|
1001
1126
|
declare function localizeDisabledReason(reason: string | null, t: TFunction): string | null;
|
|
1002
1127
|
|
|
1128
|
+
/**
|
|
1129
|
+
* Whether this browser is running on an Apple platform.
|
|
1130
|
+
*
|
|
1131
|
+
* `userAgentData.platform` first — it is the un-deprecated answer and is not frozen the way
|
|
1132
|
+
* `navigator.platform` is. Both are absent under SSR and in a bare test environment, where
|
|
1133
|
+
* the answer is `false` and the Windows spelling renders: a shortcut that reads "Ctrl+C" on
|
|
1134
|
+
* a Mac is wrong, and one that reads "⌘C" in a server render that then hydrates on Windows
|
|
1135
|
+
* is worse, because it is wrong AND it flickers.
|
|
1136
|
+
*
|
|
1137
|
+
* @public
|
|
1138
|
+
*/
|
|
1139
|
+
declare function isApplePlatform(): boolean;
|
|
1003
1140
|
/**
|
|
1004
1141
|
* Rewrite the modifier names in a resolved label for this platform.
|
|
1005
1142
|
*
|
|
@@ -1054,11 +1191,13 @@ type LocaleStrings = typeof enJson;
|
|
|
1054
1191
|
*
|
|
1055
1192
|
* @public
|
|
1056
1193
|
*/
|
|
1057
|
-
type LocaleCode = 'en' | 'de' | 'fr' | 'he' | 'hi' | 'id' | 'pl' | 'pt-BR' | 'tr' | 'zh-CN';
|
|
1194
|
+
type LocaleCode = 'en' | 'de' | 'es' | 'fr' | 'he' | 'hi' | 'id' | 'pl' | 'pt-BR' | 'tr' | 'zh-CN';
|
|
1058
1195
|
/** English (`en`) — the source of truth, 100% covered. @public */
|
|
1059
1196
|
declare const en: LocaleStrings;
|
|
1060
1197
|
/** German (`de`). Community-maintained; null leaves fall back to English. @public */
|
|
1061
1198
|
declare const de: PartialLocaleStrings;
|
|
1199
|
+
/** Spanish (`es`). Community-maintained; null leaves fall back to English. @public */
|
|
1200
|
+
declare const es: PartialLocaleStrings;
|
|
1062
1201
|
/** French (`fr`). Community-maintained; null leaves fall back to English. @public */
|
|
1063
1202
|
declare const fr: PartialLocaleStrings;
|
|
1064
1203
|
/** Hebrew (`he`). Community-maintained; null leaves fall back to English. @public */
|
|
@@ -1175,4 +1314,4 @@ type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) =
|
|
|
1175
1314
|
*/
|
|
1176
1315
|
declare function createT(strings: LocaleStrings, lang?: string): TFunction;
|
|
1177
1316
|
|
|
1178
|
-
export { type DeepPartial, type LocaleCode, type LocaleStrings, type PartialLocaleStrings, type TFunction, type TranslationKey, type Translations, createT, de, deepMerge, en, fr, he, hi, id, locales, localizeDisabledReason, pl, platformShortcut, ptBR, tr, zhCN };
|
|
1317
|
+
export { type DeepPartial, type LocaleCode, type LocaleStrings, type PartialLocaleStrings, type TFunction, type TranslationKey, type Translations, createT, de, deepMerge, en, es, fr, he, hi, id, isApplePlatform, locales, localizeDisabledReason, pl, platformShortcut, ptBR, tr, zhCN };
|
package/dist/index.d.ts
CHANGED
|
@@ -88,13 +88,35 @@ var toolbar = {
|
|
|
88
88
|
tableOfContents: "Table of contents",
|
|
89
89
|
watermark: "Watermark",
|
|
90
90
|
help: "Help",
|
|
91
|
-
reportIssue: "Report issue"
|
|
91
|
+
reportIssue: "Report issue",
|
|
92
|
+
"export": "Export",
|
|
93
|
+
exportMarkdown: "Markdown (.md)",
|
|
94
|
+
exportPdf: "PDF (.pdf)",
|
|
95
|
+
exportFailed: "Export failed: {message}",
|
|
96
|
+
exportMarkdownMissing: "Install @docx-editor.dev/docx-to-markdown and configure menu.exporters.markdown.",
|
|
97
|
+
exportPdfMissing: "Install @docx-editor.dev/docx-to-pdf on your Node.js server and configure menu.exporters.pdf.",
|
|
98
|
+
exportPdfServerUnavailable: "PDF export is unavailable. Configure a Node.js server with @docx-editor.dev/docx-to-pdf.",
|
|
99
|
+
exportingMarkdown: "Exporting Markdown…",
|
|
100
|
+
exportingPdf: "Exporting PDF…",
|
|
101
|
+
exportMarkdownFailed: "Markdown export failed",
|
|
102
|
+
exportPdfFailed: "PDF export failed",
|
|
103
|
+
exportDownloadHint: "Your download starts when the file is ready. You can continue editing while the export runs.",
|
|
104
|
+
exportContinueEditing: "Continue editing",
|
|
105
|
+
printPreparing: "Preparing to print…",
|
|
106
|
+
printOpenPdf: "Open PDF",
|
|
107
|
+
printFailed: "Print failed",
|
|
108
|
+
printFailedMessage: "Printing failed: {message}",
|
|
109
|
+
printLoadFailed: "The PDF did not load for printing. Select Open PDF, then print from the PDF viewer.",
|
|
110
|
+
printRefused: "The browser did not allow printing from the page. Select Open PDF, then print from the PDF viewer.",
|
|
111
|
+
printNoViewer: "This browser cannot print PDF files from the page. Select Open PDF, then print from the PDF viewer.",
|
|
112
|
+
printPdfMissing: "Printing uses PDF conversion. Install @docx-editor.dev/docx-to-pdf on your Node.js server and configure menu.exporters.pdf."
|
|
92
113
|
};
|
|
93
114
|
var toc = {
|
|
94
115
|
refresh: "Refresh table of contents",
|
|
95
116
|
refreshPageNumbers: "Refresh page numbers"
|
|
96
117
|
};
|
|
97
118
|
var formattingBar = {
|
|
119
|
+
label: "Formatting controls",
|
|
98
120
|
groups: {
|
|
99
121
|
history: "History",
|
|
100
122
|
zoom: "Zoom",
|
|
@@ -103,6 +125,7 @@ var formattingBar = {
|
|
|
103
125
|
textFormatting: "Text formatting",
|
|
104
126
|
script: "Script",
|
|
105
127
|
alignment: "Alignment",
|
|
128
|
+
direction: "Text direction",
|
|
106
129
|
listFormatting: "List formatting",
|
|
107
130
|
format: "Format",
|
|
108
131
|
image: "Image",
|
|
@@ -326,6 +349,9 @@ var dialogs = {
|
|
|
326
349
|
alignCenter: "Centered",
|
|
327
350
|
alignRight: "Right",
|
|
328
351
|
alignJustify: "Justified",
|
|
352
|
+
direction: "Direction",
|
|
353
|
+
directionLtr: "Left-to-right",
|
|
354
|
+
directionRtl: "Right-to-left",
|
|
329
355
|
indentation: "Indentation",
|
|
330
356
|
beforeText: "Before text",
|
|
331
357
|
afterText: "After text",
|
|
@@ -650,6 +676,8 @@ var imageAltText = {
|
|
|
650
676
|
description: "Description"
|
|
651
677
|
};
|
|
652
678
|
var editor = {
|
|
679
|
+
documentContent: "Document content",
|
|
680
|
+
documentViewport: "Document pages",
|
|
653
681
|
showDocumentOutline: "Show document outline",
|
|
654
682
|
linkCopied: "Link copied to clipboard",
|
|
655
683
|
fontSubstitutionNotice: "Some fonts in this document aren't available, so substitutes are shown: {fonts}"
|
|
@@ -942,6 +970,101 @@ var textFormField = {
|
|
|
942
970
|
firstCapital: "First capital",
|
|
943
971
|
titleCase: "Title case"
|
|
944
972
|
};
|
|
973
|
+
var documentRefresh = {
|
|
974
|
+
title: "Server updates",
|
|
975
|
+
description: "Receive two sample updates while you read. Your scroll position stays in place.",
|
|
976
|
+
limitations: "Each update resets selection and undo history. Edits during processing prevent replacement.",
|
|
977
|
+
start: "Simulate server updates",
|
|
978
|
+
cancel: "Cancel updates",
|
|
979
|
+
reset: "Reset example",
|
|
980
|
+
show: "Highlight recent changes",
|
|
981
|
+
clear: "Clear highlights",
|
|
982
|
+
previous: "Previous change",
|
|
983
|
+
next: "Next change",
|
|
984
|
+
retry: "Restore document",
|
|
985
|
+
download: "Download recovery file",
|
|
986
|
+
empty: "No reliable change locations are available.",
|
|
987
|
+
count: "{count, plural, one {# recent change} other {# recent changes}}",
|
|
988
|
+
position: "Change {current} of {total}",
|
|
989
|
+
partial: "{count} processor operations failed. Successful changes remain applied.",
|
|
990
|
+
idle: "Ready for updates.",
|
|
991
|
+
capturing: "Preparing the document. Finish text composition to continue.",
|
|
992
|
+
processing: "Processing on the server. Edits made now prevent this update.",
|
|
993
|
+
refreshing: "Displaying the updated document.",
|
|
994
|
+
recovering: "Restoring your previous document.",
|
|
995
|
+
complete: "Document updated. Your scroll position stays in place.",
|
|
996
|
+
failed: "The update could not finish.",
|
|
997
|
+
loadError: "The example document could not load.",
|
|
998
|
+
localEdits: "Your edits are safe. Submit the document again to request an update.",
|
|
999
|
+
invalidDocument: "The returned file is invalid. Your document stays open.",
|
|
1000
|
+
recoveryFailed: "Restore the document or download the recovery file.",
|
|
1001
|
+
cancelled: "Updates cancelled.",
|
|
1002
|
+
unavailable: "This change has no available location.",
|
|
1003
|
+
delivery: "Delivery date",
|
|
1004
|
+
review: "Review date",
|
|
1005
|
+
sampleDescription: "The mock replaces this sample. Reset the example before each test.",
|
|
1006
|
+
scrollToChange: "Scroll to the change after the update",
|
|
1007
|
+
scrolled: "Document updated. Scrolled to the changed paragraph.",
|
|
1008
|
+
processingLabel: "Processing",
|
|
1009
|
+
sampleEdited: "Your edits stay in the document. Reset the sample to run this demo again."
|
|
1010
|
+
};
|
|
1011
|
+
var anchorNavigation = {
|
|
1012
|
+
title: "Paragraph references",
|
|
1013
|
+
description: "Choose a finding and an effect. The editor scrolls to the paragraph, highlights it, or both.",
|
|
1014
|
+
reference: "Reference",
|
|
1015
|
+
effect: "Effect",
|
|
1016
|
+
style: "Highlight style",
|
|
1017
|
+
duration: "Highlight duration",
|
|
1018
|
+
position: "Scroll position",
|
|
1019
|
+
motion: "Scroll motion",
|
|
1020
|
+
show: "Show reference",
|
|
1021
|
+
clear: "Clear highlight",
|
|
1022
|
+
code: "Calls for these settings",
|
|
1023
|
+
ready: "Choose a reference, and then select Show reference.",
|
|
1024
|
+
cleared: "The highlight is cleared.",
|
|
1025
|
+
scrollFailed: "This reference is unavailable. The document did not move.",
|
|
1026
|
+
highlightFailed: "Scrolled to the reference. Highlights support body paragraphs and table cells only.",
|
|
1027
|
+
highlightOnlyFailed: "This reference cannot receive a highlight. Highlights support body paragraphs and table cells only.",
|
|
1028
|
+
references: {
|
|
1029
|
+
payment: "Payment terms",
|
|
1030
|
+
fee: "Annual support fee (table cell)",
|
|
1031
|
+
liability: "Second \"Supplier\" in the liability clause",
|
|
1032
|
+
law: "\"State of New York\" in governing law",
|
|
1033
|
+
header: "Draft notice (header)",
|
|
1034
|
+
missing: "Deleted paragraph (missing)"
|
|
1035
|
+
},
|
|
1036
|
+
effects: {
|
|
1037
|
+
both: "Scroll and highlight",
|
|
1038
|
+
scroll: "Scroll only",
|
|
1039
|
+
highlight: "Highlight only"
|
|
1040
|
+
},
|
|
1041
|
+
styles: {
|
|
1042
|
+
"default": "Default blue",
|
|
1043
|
+
amber: "Amber with a dashed border",
|
|
1044
|
+
glow: "Green glow (CSS class)",
|
|
1045
|
+
instant: "Default blue without a fade"
|
|
1046
|
+
},
|
|
1047
|
+
durations: {
|
|
1048
|
+
short: "1.5 seconds",
|
|
1049
|
+
"default": "3 seconds",
|
|
1050
|
+
manual: "Until cleared"
|
|
1051
|
+
},
|
|
1052
|
+
positions: {
|
|
1053
|
+
centerIfNeeded: "Center if needed",
|
|
1054
|
+
center: "Center",
|
|
1055
|
+
start: "Top of the viewport",
|
|
1056
|
+
nearest: "Nearest edge"
|
|
1057
|
+
},
|
|
1058
|
+
motions: {
|
|
1059
|
+
instant: "Instant",
|
|
1060
|
+
smooth: "Smooth"
|
|
1061
|
+
},
|
|
1062
|
+
done: {
|
|
1063
|
+
both: "Scrolled to the reference and highlighted it.",
|
|
1064
|
+
scroll: "Scrolled to the reference.",
|
|
1065
|
+
highlight: "Highlighted the reference. If it is offscreen, scroll to see it."
|
|
1066
|
+
}
|
|
1067
|
+
};
|
|
945
1068
|
var enJson = {
|
|
946
1069
|
_lang: _lang,
|
|
947
1070
|
common: common,
|
|
@@ -988,7 +1111,9 @@ var enJson = {
|
|
|
988
1111
|
collaboration: collaboration,
|
|
989
1112
|
collaborationDemo: collaborationDemo,
|
|
990
1113
|
review: review,
|
|
991
|
-
textFormField: textFormField
|
|
1114
|
+
textFormField: textFormField,
|
|
1115
|
+
documentRefresh: documentRefresh,
|
|
1116
|
+
anchorNavigation: anchorNavigation
|
|
992
1117
|
};
|
|
993
1118
|
|
|
994
1119
|
/**
|
|
@@ -1000,6 +1125,18 @@ var enJson = {
|
|
|
1000
1125
|
*/
|
|
1001
1126
|
declare function localizeDisabledReason(reason: string | null, t: TFunction): string | null;
|
|
1002
1127
|
|
|
1128
|
+
/**
|
|
1129
|
+
* Whether this browser is running on an Apple platform.
|
|
1130
|
+
*
|
|
1131
|
+
* `userAgentData.platform` first — it is the un-deprecated answer and is not frozen the way
|
|
1132
|
+
* `navigator.platform` is. Both are absent under SSR and in a bare test environment, where
|
|
1133
|
+
* the answer is `false` and the Windows spelling renders: a shortcut that reads "Ctrl+C" on
|
|
1134
|
+
* a Mac is wrong, and one that reads "⌘C" in a server render that then hydrates on Windows
|
|
1135
|
+
* is worse, because it is wrong AND it flickers.
|
|
1136
|
+
*
|
|
1137
|
+
* @public
|
|
1138
|
+
*/
|
|
1139
|
+
declare function isApplePlatform(): boolean;
|
|
1003
1140
|
/**
|
|
1004
1141
|
* Rewrite the modifier names in a resolved label for this platform.
|
|
1005
1142
|
*
|
|
@@ -1054,11 +1191,13 @@ type LocaleStrings = typeof enJson;
|
|
|
1054
1191
|
*
|
|
1055
1192
|
* @public
|
|
1056
1193
|
*/
|
|
1057
|
-
type LocaleCode = 'en' | 'de' | 'fr' | 'he' | 'hi' | 'id' | 'pl' | 'pt-BR' | 'tr' | 'zh-CN';
|
|
1194
|
+
type LocaleCode = 'en' | 'de' | 'es' | 'fr' | 'he' | 'hi' | 'id' | 'pl' | 'pt-BR' | 'tr' | 'zh-CN';
|
|
1058
1195
|
/** English (`en`) — the source of truth, 100% covered. @public */
|
|
1059
1196
|
declare const en: LocaleStrings;
|
|
1060
1197
|
/** German (`de`). Community-maintained; null leaves fall back to English. @public */
|
|
1061
1198
|
declare const de: PartialLocaleStrings;
|
|
1199
|
+
/** Spanish (`es`). Community-maintained; null leaves fall back to English. @public */
|
|
1200
|
+
declare const es: PartialLocaleStrings;
|
|
1062
1201
|
/** French (`fr`). Community-maintained; null leaves fall back to English. @public */
|
|
1063
1202
|
declare const fr: PartialLocaleStrings;
|
|
1064
1203
|
/** Hebrew (`he`). Community-maintained; null leaves fall back to English. @public */
|
|
@@ -1175,4 +1314,4 @@ type TFunction = (key: TranslationKey, vars?: Record<string, string | number>) =
|
|
|
1175
1314
|
*/
|
|
1176
1315
|
declare function createT(strings: LocaleStrings, lang?: string): TFunction;
|
|
1177
1316
|
|
|
1178
|
-
export { type DeepPartial, type LocaleCode, type LocaleStrings, type PartialLocaleStrings, type TFunction, type TranslationKey, type Translations, createT, de, deepMerge, en, fr, he, hi, id, locales, localizeDisabledReason, pl, platformShortcut, ptBR, tr, zhCN };
|
|
1317
|
+
export { type DeepPartial, type LocaleCode, type LocaleStrings, type PartialLocaleStrings, type TFunction, type TranslationKey, type Translations, createT, de, deepMerge, en, es, fr, he, hi, id, isApplePlatform, locales, localizeDisabledReason, pl, platformShortcut, ptBR, tr, zhCN };
|