@betteroffice/pptx-i18n 0.1.0 → 0.2.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/index.d.mts CHANGED
@@ -1,169 +1,215 @@
1
- var _lang = "en";
2
- var toolbar = {
3
- label: "Presentation formatting toolbar",
4
- save: "Save",
5
- exportPng: "Export PNG",
6
- present: "Present",
7
- historyLabel: "History",
8
- undo: "Undo",
9
- redo: "Redo",
10
- textFormattingLabel: "Text formatting",
11
- bold: "Bold",
12
- italic: "Italic",
13
- fontSize: "Font size",
14
- textColor: "Text color",
15
- slidesLabel: "Slides",
16
- addSlide: "Add slide",
17
- deleteSlide: "Delete slide",
18
- objectsLabel: "Objects",
19
- addTextBox: "Add text box",
20
- groups: {
21
- file: "File",
22
- slides: "Slides",
23
- history: "History",
24
- zoom: "Zoom",
25
- tools: "Tools",
26
- font: "Font",
27
- text: "Text formatting",
28
- shape: "Shape formatting",
29
- alignment: "Alignment"
30
- },
31
- align: {
32
- left: "Align Left",
33
- center: "Center",
34
- right: "Align Right",
35
- justify: "Justify"
36
- },
37
- newSlide: "New slide",
38
- newSlideWithLayout: "New slide with layout",
39
- layoutOption: "Layout {number}",
40
- undoShortcut: "Undo (⌘Z)",
41
- redoShortcut: "Redo (⇧⌘Z)",
42
- fit: "Fit",
43
- zoomValue: "Zoom: {value}",
44
- selectToolShortcut: "Select (Esc)",
45
- textBoxTool: "Text box",
46
- shapeTool: "Shape",
47
- fontFamily: "Font family",
48
- mixed: "Mixed",
49
- decreaseFontSize: "Decrease font size",
50
- increaseFontSize: "Increase font size",
51
- boldShortcut: "Bold (⌘B)",
52
- italicShortcut: "Italic (⌘I)",
53
- underline: "Underline",
54
- underlineShortcut: "Underline (⌘U)",
55
- more: "More",
56
- fillColor: "Fill color",
57
- noFill: "No fill",
58
- borderColor: "Border color",
59
- borderWidth: "Border width",
60
- borderWidthValue: "{width} pt",
61
- noBorder: "No border",
62
- cornerRadius: "Corner radius",
63
- shapeAdjustment: "Shape adjustment",
64
- shapes: {
65
- rect: "Rectangle",
66
- roundRect: "Rounded rectangle",
67
- ellipse: "Ellipse",
68
- triangle: "Triangle",
69
- rtTriangle: "Right triangle",
70
- diamond: "Diamond",
71
- parallelogram: "Parallelogram",
72
- trapezoid: "Trapezoid",
73
- pentagon: "Pentagon",
74
- hexagon: "Hexagon",
75
- octagon: "Octagon",
76
- star5: "5-point star",
77
- rightArrow: "Right arrow",
78
- leftArrow: "Left arrow",
79
- upArrow: "Up arrow",
80
- downArrow: "Down arrow",
81
- chevron: "Chevron"
82
- }
83
- };
84
- var slides = {
85
- panelLabel: "Slides",
86
- fallbackTitle: "Slide {number}",
87
- canvasLabel: "Slide {current} of {total}",
88
- canvasLabelWithSelection: "Slide {current} of {total}; selected object {name}"
89
- };
90
- var editor = {
91
- appLabel: "Presentation slide editor",
92
- opening: "Opening presentation…",
93
- noSlides: "No slides",
94
- openPrompt: "Open a PPTX file"
95
- };
96
- var objects = {
97
- defaultTextBoxName: "Text Box"
98
- };
99
- var presentation = {
100
- label: "Slide presentation",
101
- exit: "Exit presentation (Esc)",
102
- slideCounter: "{current} / {total}",
103
- previousSlide: "Previous slide",
104
- nextSlide: "Next slide"
105
- };
106
- var notes = {
107
- panelLabel: "Speaker notes",
108
- placeholder: "Add speaker notes…"
109
- };
110
- var errors = {
111
- decodeSlideImage: "could not decode slide image"
112
- };
113
- var proposals = {
114
- title: "Agent proposals",
115
- close: "Close",
116
- empty: "No changes awaiting review.",
117
- preview: "Preview changes",
118
- previewTitle: "Review proposed changes",
119
- before: "Current slide",
120
- after: "Proposed slide",
121
- accept: "Accept proposal",
122
- reject: "Reject",
123
- force: "Apply updated proposal",
124
- blank: "Empty",
125
- target: "Slide {slide} · {name}",
126
- targetLabel: "Change",
127
- targetMissing: "The target is no longer available",
128
- stale: "These objects changed after the proposal was created. Preview the current changes before applying.",
129
- stalePreview: "This preview uses the updated slide. Applying will override the changed targets.",
130
- geometry: "Position and size (x, y, width, height)",
131
- appearance: "Appearance or text formatting changed",
132
- changedAgain: "The target changed again. Review the refreshed preview before applying.",
133
- canvasTitle: "Changes on this slide",
134
- editSlide: "Edit slide",
135
- showDiff: "Show changes",
136
- details: "Review details",
137
- removed: "Removed",
138
- added: "Added",
139
- reviewHint: "Review mode · changes apply when accepted",
140
- canvasStale: "Targets changed. Open Review details to inspect the updated preview before applying.",
141
- previousPosition: "Previous",
142
- proposedPosition: "Proposed",
143
- loadingDiff: "Loading changes…"
144
- };
145
- var enJson = {
146
- _lang: _lang,
147
- toolbar: toolbar,
148
- slides: slides,
149
- editor: editor,
150
- objects: objects,
151
- presentation: presentation,
152
- notes: notes,
153
- errors: errors,
154
- proposals: proposals
155
- };
156
-
157
1
  /**
158
2
  * Shared locale data, types, and runtime helpers for @betteroffice/pptx-react.
159
3
  *
160
4
  * @packageDocumentation
161
5
  * @public
162
6
  */
163
-
164
- type LocaleStrings = typeof enJson;
7
+ type LocaleStrings = typeof en;
165
8
  type LocaleCode = 'en' | 'de' | 'fr' | 'he' | 'hi' | 'id' | 'pl' | 'pt-BR' | 'tr' | 'zh-CN';
166
- declare const en: LocaleStrings;
9
+ declare const en: {
10
+ _lang: string;
11
+ toolbar: {
12
+ label: string;
13
+ save: string;
14
+ exportPng: string;
15
+ present: string;
16
+ historyLabel: string;
17
+ undo: string;
18
+ redo: string;
19
+ textFormattingLabel: string;
20
+ bold: string;
21
+ italic: string;
22
+ fontSize: string;
23
+ textColor: string;
24
+ slidesLabel: string;
25
+ addSlide: string;
26
+ deleteSlide: string;
27
+ objectsLabel: string;
28
+ addTextBox: string;
29
+ insertImage: string;
30
+ groups: {
31
+ file: string;
32
+ slides: string;
33
+ history: string;
34
+ zoom: string;
35
+ tools: string;
36
+ font: string;
37
+ text: string;
38
+ shape: string;
39
+ alignment: string;
40
+ };
41
+ align: {
42
+ left: string;
43
+ center: string;
44
+ right: string;
45
+ justify: string;
46
+ };
47
+ newSlide: string;
48
+ newSlideWithLayout: string;
49
+ layoutOption: string;
50
+ undoShortcut: string;
51
+ redoShortcut: string;
52
+ fit: string;
53
+ zoomValue: string;
54
+ selectToolShortcut: string;
55
+ textBoxTool: string;
56
+ shapeTool: string;
57
+ fontFamily: string;
58
+ mixed: string;
59
+ decreaseFontSize: string;
60
+ increaseFontSize: string;
61
+ boldShortcut: string;
62
+ italicShortcut: string;
63
+ underline: string;
64
+ underlineShortcut: string;
65
+ more: string;
66
+ fillColor: string;
67
+ noFill: string;
68
+ borderColor: string;
69
+ borderWidth: string;
70
+ borderWidthValue: string;
71
+ noBorder: string;
72
+ cornerRadius: string;
73
+ shapeAdjustment: string;
74
+ arrange: string;
75
+ bringToFront: string;
76
+ bringForward: string;
77
+ sendBackward: string;
78
+ sendToBack: string;
79
+ shapes: {
80
+ rect: string;
81
+ roundRect: string;
82
+ ellipse: string;
83
+ triangle: string;
84
+ rtTriangle: string;
85
+ diamond: string;
86
+ parallelogram: string;
87
+ trapezoid: string;
88
+ pentagon: string;
89
+ hexagon: string;
90
+ octagon: string;
91
+ star5: string;
92
+ rightArrow: string;
93
+ leftArrow: string;
94
+ upArrow: string;
95
+ downArrow: string;
96
+ chevron: string;
97
+ };
98
+ };
99
+ slides: {
100
+ panelLabel: string;
101
+ fallbackTitle: string;
102
+ canvasLabel: string;
103
+ canvasLabelWithSelection: string;
104
+ };
105
+ editor: {
106
+ appLabel: string;
107
+ opening: string;
108
+ noSlides: string;
109
+ openPrompt: string;
110
+ };
111
+ objects: {
112
+ defaultTextBoxName: string;
113
+ defaultPictureName: string;
114
+ };
115
+ presentation: {
116
+ label: string;
117
+ exit: string;
118
+ slideCounter: string;
119
+ previousSlide: string;
120
+ nextSlide: string;
121
+ };
122
+ notes: {
123
+ panelLabel: string;
124
+ placeholder: string;
125
+ };
126
+ errors: {
127
+ decodeSlideImage: string;
128
+ };
129
+ proposals: {
130
+ title: string;
131
+ close: string;
132
+ empty: string;
133
+ preview: string;
134
+ previewTitle: string;
135
+ before: string;
136
+ after: string;
137
+ accept: string;
138
+ reject: string;
139
+ force: string;
140
+ blank: string;
141
+ target: string;
142
+ targetLabel: string;
143
+ targetMissing: string;
144
+ stale: string;
145
+ stalePreview: string;
146
+ geometry: string;
147
+ appearance: string;
148
+ changedAgain: string;
149
+ canvasTitle: string;
150
+ editSlide: string;
151
+ showDiff: string;
152
+ details: string;
153
+ removed: string;
154
+ added: string;
155
+ reviewHint: string;
156
+ canvasStale: string;
157
+ previousPosition: string;
158
+ proposedPosition: string;
159
+ loadingDiff: string;
160
+ };
161
+ commands: {
162
+ moreControls: string;
163
+ selectTool: string;
164
+ fontSizeStep: string;
165
+ customFontSize: string;
166
+ fontSizePoints: string;
167
+ customColor: string;
168
+ hexColor: string;
169
+ apply: string;
170
+ cancel: string;
171
+ reasons: {
172
+ editorUnavailable: string;
173
+ documentLoading: string;
174
+ noDocument: string;
175
+ readOnly: string;
176
+ nothingToUndo: string;
177
+ nothingToRedo: string;
178
+ textSelectionRequired: string;
179
+ shapeRequired: string;
180
+ objectRequired: string;
181
+ slideRequired: string;
182
+ unsupportedSelection: string;
183
+ invalidLayout: string;
184
+ invalidAdjustment: string;
185
+ zOrderBoundary: string;
186
+ reviewActive: string;
187
+ previewPending: string;
188
+ previewFailed: string;
189
+ proposalStale: string;
190
+ proposalNotFound: string;
191
+ proposalsUnavailable: string;
192
+ hostDisabled: string;
193
+ unsupportedCommand: string;
194
+ invalidArguments: string;
195
+ inputFailed: string;
196
+ documentReplaced: string;
197
+ targetChanged: string;
198
+ gestureActive: string;
199
+ commandFailed: string;
200
+ permissionDenied: string;
201
+ unsupportedPolicy: string;
202
+ pluginUnavailable: string;
203
+ aborted: string;
204
+ };
205
+ };
206
+ plugins: {
207
+ toolbarGroup: string;
208
+ panelTabs: string;
209
+ collapsePanel: string;
210
+ expandPanel: string;
211
+ };
212
+ };
167
213
  declare const de: PartialLocaleStrings;
168
214
  declare const fr: PartialLocaleStrings;
169
215
  declare const he: PartialLocaleStrings;