Skip to content

Commit 3992d66

Browse files
Merge pull request #3431 from syncfusion-content/1004886-LocalizationVue
1004886: Localization in Vue PDF Viewer
2 parents a4ba879 + 4a0af15 commit 3992d66

5 files changed

Lines changed: 1103 additions & 1435 deletions

File tree

Document-Processing-toc.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1758,7 +1758,13 @@
17581758
<li><a href="/document-processing/pdf/pdf-viewer/vue/download">Download</a></li>
17591759
<li><a href="/document-processing/pdf/pdf-viewer/vue/event">Events</a></li>
17601760
<li><a href="/document-processing/pdf/pdf-viewer/vue/textselection">Text Selection</a></li>
1761-
<li><a href="/document-processing/pdf/pdf-viewer/vue/globalization">Globalization</a></li>
1761+
<li>Localization and Globalization
1762+
<ul>
1763+
<li><a href="/document-processing/pdf/pdf-viewer/vue/Localization/default-language">Default Language</a></li>
1764+
<li><a href="/document-processing/pdf/pdf-viewer/vue/Localization/new-language">Change Language</a></li>
1765+
<li><a href="/document-processing/pdf/pdf-viewer/vue/Localization/rtl-language-support">RTL and Localization</a></li>
1766+
</ul>
1767+
</li>
17621768
<li><a href="/document-processing/pdf/pdf-viewer/vue/content-security-policy">Content Security Policy</a></li>
17631769
<li><a href="/document-processing/pdf/pdf-viewer/vue/how-to-overview">How To</a>
17641770
<ul>
Lines changed: 357 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,357 @@
1+
---
2+
layout: post
3+
title: Localization in Vue PDF Viewer | Syncfusion
4+
description: Learn here all about the default language culture and localization in Syncfusion Vue PDF Viewer component.
5+
platform: document-processing
6+
control: PDF Viewer
7+
documentation: ug
8+
domainurl: ##DomainURL##
9+
---
10+
11+
# Localization in the Vue PDF Viewer
12+
13+
The PDF Viewer supports localization of UI text, tooltips, and messages using culture-specific string collections so the interface matches users' language and regional settings.
14+
15+
![Default Locale](../../javascript-es6/images/locale-us.gif)
16+
17+
N> Change the viewer locale by setting the `locale` property on the Vue component or by loading translations with `L10n.load` from `@syncfusion/ej2-base`.
18+
19+
## Default language (en-US)
20+
21+
By default, the PDF Viewer uses the `en-US` culture and requires no additional configuration.
22+
23+
{% tabs %}
24+
{% highlight html tabtitle="App.vue" %}
25+
26+
<template>
27+
<div id="app">
28+
<ejs-pdfviewer
29+
id="pdfViewer"
30+
:documentPath="documentPath"
31+
:resourceUrl="resourceUrl"
32+
:locale="locale"
33+
style="height: 100vh"
34+
>
35+
</ejs-pdfviewer>
36+
</div>
37+
</template>
38+
39+
<script>
40+
import {
41+
PdfViewerComponent,
42+
Toolbar,
43+
Magnification,
44+
Navigation,
45+
LinkAnnotation,
46+
BookmarkView,
47+
ThumbnailView,
48+
Print,
49+
TextSelection,
50+
TextSearch,
51+
Annotation,
52+
FormDesigner,
53+
FormFields,
54+
PageOrganizer,
55+
} from '@syncfusion/ej2-vue-pdfviewer';
56+
57+
export default {
58+
name: 'App',
59+
components: {
60+
'ejs-pdfviewer': PdfViewerComponent,
61+
},
62+
data() {
63+
return {
64+
documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf',
65+
resourceUrl:
66+
'https://cdn.syncfusion.com/ej2/33.2.13/dist/ej2-pdfviewer-lib',
67+
locale: 'en-US',
68+
};
69+
},
70+
71+
provide: {
72+
PdfViewer: [
73+
Toolbar,
74+
Magnification,
75+
Navigation,
76+
LinkAnnotation,
77+
BookmarkView,
78+
ThumbnailView,
79+
Print,
80+
TextSelection,
81+
TextSearch,
82+
Annotation,
83+
FormDesigner,
84+
FormFields,
85+
PageOrganizer,
86+
],
87+
},
88+
};
89+
</script>
90+
91+
{% endhighlight %}
92+
{% endtabs %}
93+
94+
[View Sample on GitHub](https://github.com/SyncfusionExamples/vue-pdf-viewer-examples)
95+
96+
## Localization keys reference
97+
98+
The PDF Viewer supports localization using culture-specific string collections. By default, the component uses the "en-US" culture.
99+
100+
The following table lists the default text values used by the PDF Viewer in the "en-US" culture:
101+
102+
|Keywords|Values|
103+
|---|---|
104+
|PdfViewer|PDF Viewer|
105+
|Cancel|Cancel|
106+
|Download file|Download file|
107+
|Download|Download|
108+
|Enter Password|This document is password protected. Please enter a password.|
109+
|File Corrupted|File corrupted|
110+
|File Corrupted Content|The file is corrupted and cannot be opened.|
111+
|Fit Page|Fit page|
112+
|Fit Width|Fit width|
113+
|Automatic|Automatic|
114+
|Go To First Page|Show first page|
115+
|Invalid Password|Incorrect password. Please try again.|
116+
|Next Page|Show next page|
117+
|OK|OK|
118+
|Open|Open file|
119+
|Page Number|Current page number|
120+
|Previous Page|Show previous page|
121+
|Go To Last Page|Show last page|
122+
|Zoom|Zoom|
123+
|Zoom In|Zoom in|
124+
|Zoom Out|Zoom out|
125+
|Page Thumbnails|Page thumbnails|
126+
|Bookmarks|Bookmarks|
127+
|Print|Print file|
128+
|Password Protected|Password required|
129+
|Copy|Copy|
130+
|Text Selection|Text selection tool|
131+
|Panning|Pan mode|
132+
|Text Search|Find text|
133+
|Find in document|Find in document|
134+
|Match case|Match case|
135+
|Apply|Apply|
136+
|GoToPage|Go to page|
137+
|No Matches|Viewer has finished searching the document. No more matches were found|
138+
|No Text Found|No Text Found|
139+
|Undo|Undo|
140+
|Redo|Redo|
141+
|Annotation|Add or Edit annotations|
142+
|Highlight|Highlight Text|
143+
|Underline|Underline Text|
144+
|Strikethrough|Strikethrough Text|
145+
|Delete|Delete annotation|
146+
|Opacity|Opacity|
147+
|Color edit|Change Color|
148+
|Opacity edit|Change Opacity|
149+
|Highlight context|Highlight|
150+
|Underline context|Underline|
151+
|Strikethrough context|Strike through|
152+
|Server error|Web-service is not listening. PDF Viewer depends on web-service for all it's features. Please start the web service to continue.|
153+
|Open text|Open|
154+
|First text|First Page|
155+
|Previous text|Previous Page|
156+
|Next text|Next Page|
157+
|Last text|Last Page|
158+
|Zoom in text|Zoom In|
159+
|Zoom out text|Zoom Out|
160+
|Selection text|Selection|
161+
|Pan text|Pan|
162+
|Print text|Print|
163+
|Search text|Search|
164+
|Annotation Edit text|Edit Annotation|
165+
|Line Thickness|Line Thickness|
166+
|Line Properties|Line Properties|
167+
|Start Arrow|Start Arrow |
168+
|End Arrow|End Arrow|
169+
|Line Style|Line Style|
170+
|Fill Color|Fill Color|
171+
|Line Color|Line Color|
172+
|None|None|
173+
|Open Arrow|Open Arrow|
174+
|Closed Arrow|Closed Arrow|
175+
|Round Arrow|Round Arrow|
176+
|Square Arrow|Square Arrow|
177+
|Diamond Arrow|Diamond Arrow|
178+
|Cut|Cut|
179+
|Paste|Paste|
180+
|Delete Context|Delete Context|
181+
|Properties|Properties|
182+
|Add Stamp|Add Stamp|
183+
|Add Shapes|Add Shapes|
184+
|Stroke edit|Stroke Edit|
185+
|Change thickness|Change Thickness|
186+
|Add line|Add Line|
187+
|Add arrow|Add Arrow|
188+
|Add rectangle|Add Rectangle|
189+
|Add circle|Add Circle|
190+
|Add polygon|Add Polygon|
191+
|Add Comments|Add Comments|
192+
|Comments| Comments|
193+
|No Comments Yet|No Comments Yet|
194+
|Accepted| Accepted|
195+
|Completed| Completed|
196+
|Cancelled| Cancelled|
197+
|Rejected| Rejected|
198+
|Leader Length|Leader Length|
199+
|Scale Ratio|Scale Ratio|
200+
|Calibrate| Calibrate|
201+
|Calibrate Distance|Calibrate Distance|
202+
|Calibrate Perimeter|Calibrate Perimeter|
203+
|Calibrate Area|Calibrate Area|
204+
|Calibrate Radius|Calibrate Radius|
205+
|Calibrate Volume|Calibrate Volume|
206+
|Depth|Depth|
207+
|Closed|Closed|
208+
|Round|Round|
209+
|Square|Square|
210+
|Diamond|Diamond|
211+
|Edit|Edit|
212+
|Comment|Comment|
213+
|Comment Panel|Comment Panel|
214+
|Set Status|Set Status|
215+
|Post|Post|
216+
|Page|Page|
217+
|Add a comment|Add a comment|
218+
|Add a reply|Add a reply|
219+
|Import Annotations|Import Annotations|
220+
|Export Annotations|Export Annotations|
221+
|Add|Add|
222+
|Clear|Clear|
223+
|Bold|Bold|
224+
|Italic|Italic|
225+
|Strikethroughs|Strikethroughs|
226+
|Underlines|Underlines|
227+
|Superscript|Superscript|
228+
|Subscript|Subscript|
229+
|Align left|Align Left|
230+
|Align right|Align Right|
231+
|Center|Center|
232+
|Justify|Justify|
233+
|Font color|Font Color|
234+
|Text Align|Text Align|
235+
|Text Properties|Text Properties|
236+
|Draw Signature|Draw Signature|
237+
|Create| Create|
238+
|Font family|Font Family|
239+
|Font size|Font Size|
240+
|Free Text|Free Text|
241+
|Import Failed|Import Failed|
242+
|File not found|File Not Found|
243+
|Export Failed|Export Failed|
244+
|Dynamic|Dynamic|
245+
|Standard Business|Standard Business|
246+
|Sign Here|Sign Here|
247+
|Custom Stamp|Custom Stamp|
248+
|InitialFieldDialogHeaderText|Initial Field Dialog Header Text|
249+
|HandwrittenInitialDialogHeaderText|Handwritten Initial Dialog Header Text|
250+
|SignatureFieldDialogHeaderText|Signature Field Dialog Header Text|
251+
|HandwrittenSignatureDialogHeaderText|Handwritten Signature Dialog Header Text|
252+
|Draw-hand Signature|Draw-hand Signature|
253+
|Type Signature|Type Signature|
254+
|Upload Signature|Upload Signature|
255+
|Browse Signature Image|Browse Signature Image|
256+
|Save Signature|Save Signature|
257+
|Save Initial|Save Initial|
258+
|highlight|highlight|
259+
|underline|underline|
260+
|strikethrough|strikethrough|
261+
|FormDesigner|Form Designer|
262+
|SubmitForm|Submit Form|
263+
|Search text|Search Text|
264+
|Draw Ink|Draw Ink|
265+
|Revised|Revised|
266+
|Reviewed|Reviewed|
267+
|Received|Received|
268+
|Confidential|Confidential|
269+
|Approved|Approved|
270+
|Not Approved|Not Approved|
271+
|Witness|Witness|
272+
|Initial Here|Initial Here|
273+
|Draft|Draft|
274+
|Final|Final|
275+
|For Public Release|For Public Release|
276+
|Not For Public Release|Not For Public Release|
277+
|For Comment|For Comment|
278+
|Void|Void|
279+
|Preliminary Results|Preliminary Results|
280+
|Information Only|Information Only|
281+
|Enter Signature as Name|Enter Signature as Name|
282+
|Textbox|Textbox|
283+
|Password|Password|
284+
|Check Box|Check Box|
285+
|Radio Button|Radio Button|
286+
|Dropdown|Dropdown|
287+
|List Box|List Box|
288+
|Signature|Signature|
289+
|Delete FormField|Delete FormField|
290+
|FormDesigner Edit text|Form Designer Edit Text|
291+
|in|in|
292+
|m|m|
293+
|ft_in|ft_in|
294+
|ft|ft|
295+
|p|p|
296+
|cm|cm|
297+
|mm|mm|
298+
|pt|pt|
299+
|cu|cu|
300+
|sq|sq|
301+
|General|General|
302+
|Appearance|Appearance|
303+
|Options|Options|
304+
|Textbox Properties|Textbox Properties|
305+
|Name|Name|
306+
|Tooltip|Tooltip|
307+
|Value|Value|
308+
|Form Field Visibility|Form Field Visibility|
309+
|Read Only|Read Only|
310+
|Required|Required|
311+
|Checked|Checked|
312+
|Show Printing|Show Printing|
313+
|Formatting|Formatting|
314+
|Fill|Fill|
315+
|Border|Border|
316+
|Border Color|Border Color|
317+
|Thickness|Thickness|
318+
|Max Length|Max Length|
319+
|List Item|List Item|
320+
|Export Value|Export Value|
321+
|Dropdown Item List|Dropdown Item List|
322+
|List Box Item List|List Box Item List|
323+
|Delete Item|Delete Item|
324+
|Up|Up|
325+
|Down|Down|
326+
|Multiline|Multiline|
327+
|Initial|Initial|
328+
|Export XFDF|Export XFDF|
329+
|Import XFDF|Import XFDF|
330+
|Organize Pages|Organize Pages|
331+
|Insert Right|Insert Right|
332+
|Insert Left|Insert Left|
333+
|Total|Total|
334+
|Pages|Pages|
335+
|Rotate Right|Rotate Right|
336+
|Rotate Left|Rotate Left|
337+
|Delete Page|Delete Page|
338+
|Delete Pages|Delete Pages|
339+
|Copy Page|Copy Page|
340+
|Copy Pages|Copy Pages|
341+
|Save|Save|
342+
|Save As|Save As|
343+
|Select All|Select All|
344+
|Import Document|Import Document|
345+
|Match any word|Match any word|
346+
|Client error|Client-side error is found. Please check the custom headers provided in the AjaxRequestSettings property and web action methods in the ServerActionSettings property|
347+
|Cors policy error|Unable to retrieve the document due to an invalid URL or access restrictions. Please check the document URL and try again|
348+
|No More Matches|Viewer has finished searching the document. No more matches were found|
349+
|No Search Matches|No matches found|
350+
|No More Search Matches|No more matches found|
351+
|Exact Matches|EXACT MATCHES|
352+
|Total Matches|TOTAL MATCHES|
353+
354+
## See Also
355+
356+
- [New Language](./new-language)
357+
- [RTL Language Support](./rtl-language-support)

0 commit comments

Comments
 (0)