From 08d5b4dfbf7986184d107ac36dd2733657000640 Mon Sep 17 00:00:00 2001 From: SF4524LogeshKumar Date: Thu, 5 Mar 2026 18:59:25 +0530 Subject: [PATCH 1/5] 1012852: Localization in React PDF Viewer --- Document-Processing-toc.html | 8 +- .../react/Localization/default-language.md | 321 +++++++ .../react/Localization/new-language.md | 345 +++++++ .../Localization/rtl-language-support.md | 304 +++++++ .../PDF/PDF-Viewer/react/globalization.md | 847 ------------------ 5 files changed, 977 insertions(+), 848 deletions(-) create mode 100644 Document-Processing/PDF/PDF-Viewer/react/Localization/default-language.md create mode 100644 Document-Processing/PDF/PDF-Viewer/react/Localization/new-language.md create mode 100644 Document-Processing/PDF/PDF-Viewer/react/Localization/rtl-language-support.md delete mode 100644 Document-Processing/PDF/PDF-Viewer/react/globalization.md diff --git a/Document-Processing-toc.html b/Document-Processing-toc.html index 4d3624ed65..69d6b61ec6 100644 --- a/Document-Processing-toc.html +++ b/Document-Processing-toc.html @@ -1081,7 +1081,13 @@
  • Download
  • Events
  • Text Selection
  • -
  • Globalization
  • +
  • Localization + +
  • Accessibility
  • Theming and Styling
  • Context Menu diff --git a/Document-Processing/PDF/PDF-Viewer/react/Localization/default-language.md b/Document-Processing/PDF/PDF-Viewer/react/Localization/default-language.md new file mode 100644 index 0000000000..431e2f7c55 --- /dev/null +++ b/Document-Processing/PDF/PDF-Viewer/react/Localization/default-language.md @@ -0,0 +1,321 @@ +--- +layout: post +title: Localization in React PDF Viewer | Syncfusion +description: Learn about the default language culture and localization in Syncfusion React PDF Viewer component. +platform: document-processing +control: PDF Viewer +documentation: ug +domainurl: ##DomainURL## +--- + +# Localization in the React PDF Viewer + +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. + +![Default Locale](../../javascript-es6/images/locale-us.gif) + +N> Change the viewer locale by setting the `locale` property on the React component or by loading translations with `L10n.load` from `@syncfusion/ej2-base`. + +## Default language (en-US) + +By default, the PDF Viewer uses the `en-US` culture and requires no additional configuration. + +{% tabs %} +{% highlight js tabtitle="Standalone" %} +{% raw %} +import * as ReactDOM from 'react-dom'; +import * as React from 'react'; +import './index.css'; +import { + PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, + ThumbnailView, Print, TextSelection, TextSearch, Annotation, FormDesigner, FormFields, Inject +} from '@syncfusion/ej2-react-pdfviewer'; + +// Inject required modules +PdfViewerComponent.Inject(Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, + ThumbnailView, Print, TextSelection, TextSearch, Annotation, FormDesigner, FormFields); + +export function App() { + return ( +
    + {/* Render the PDF Viewer with default en-US locale */} + +
    + ); +} + +const root = ReactDOM.createRoot(document.getElementById('sample')); +root.render(); +{% endraw %} +{% endhighlight %} +{% endtabs %} + +[View Sample on GitHub](https://github.com/SyncfusionExamples/react-pdf-viewer-examples) + +## Localization keys reference + +The PDF Viewer supports localization using culture-specific string collections. By default, the component uses the "en-US" culture. + +The following table lists the default text values used by the PDF Viewer in the "en-US" culture: + +|Keywords|Values| +|---|---| +|PdfViewer|PDF Viewer| +|Cancel|Cancel| +|Download file|Download file| +|Download|Download| +|Enter Password|This document is password protected. Please enter a password.| +|File Corrupted|File corrupted| +|File Corrupted Content|The file is corrupted and cannot be opened.| +|Fit Page|Fit page| +|Fit Width|Fit width| +|Automatic|Automatic| +|Go To First Page|Show first page| +|Invalid Password|Incorrect password. Please try again.| +|Next Page|Show next page| +|OK|OK| +|Open|Open file| +|Page Number|Current page number| +|Previous Page|Show previous page| +|Go To Last Page|Show last page| +|Zoom|Zoom| +|Zoom In|Zoom in| +|Zoom Out|Zoom out| +|Page Thumbnails|Page thumbnails| +|Bookmarks|Bookmarks| +|Print|Print file| +|Password Protected|Password required| +|Copy|Copy| +|Text Selection|Text selection tool| +|Panning|Pan mode| +|Text Search|Find text| +|Find in document|Find in document| +|Match case|Match case| +|Apply|Apply| +|GoToPage|Go to page| +|No Matches|Viewer has finished searching the document. No more matches were found| +|No Text Found|No Text Found| +|Undo|Undo| +|Redo|Redo| +|Annotation|Add or Edit annotations| +|Highlight|Highlight Text| +|Underline|Underline Text| +|Strikethrough|Strikethrough Text| +|Delete|Delete annotation| +|Opacity|Opacity| +|Color edit|Change Color| +|Opacity edit|Change Opacity| +|Highlight context|Highlight| +|Underline context|Underline| +|Strikethrough context|Strike through| +|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.| +|Open text|Open| +|First text|First Page| +|Previous text|Previous Page| +|Next text|Next Page| +|Last text|Last Page| +|Zoom in text|Zoom In| +|Zoom out text|Zoom Out| +|Selection text|Selection| +|Pan text|Pan| +|Print text|Print| +|Search text|Search| +|Annotation Edit text|Edit Annotation| +|Line Thickness|Line Thickness| +|Line Properties|Line Properties| +|Start Arrow|Start Arrow | +|End Arrow|End Arrow| +|Line Style|Line Style| +|Fill Color|Fill Color| +|Line Color|Line Color| +|None|None| +|Open Arrow|Open Arrow| +|Closed Arrow|Closed Arrow| +|Round Arrow|Round Arrow| +|Square Arrow|Square Arrow| +|Diamond Arrow|Diamond Arrow| +|Cut|Cut| +|Paste|Paste| +|Delete Context|Delete Context| +|Properties|Properties| +|Add Stamp|Add Stamp| +|Add Shapes|Add Shapes| +|Stroke edit|Stroke Edit| +|Change thickness|Change Thickness| +|Add line|Add Line| +|Add arrow|Add Arrow| +|Add rectangle|Add Rectangle| +|Add circle|Add Circle| +|Add polygon|Add Polygon| +|Add Comments|Add Comments| +|Comments| Comments| +|No Comments Yet|No Comments Yet| +|Accepted| Accepted| +|Completed| Completed| +|Cancelled| Cancelled| +|Rejected| Rejected| +|Leader Length|Leader Length| +|Scale Ratio|Scale Ratio| +|Calibrate| Calibrate| +|Calibrate Distance|Calibrate Distance| +|Calibrate Perimeter|Calibrate Perimeter| +|Calibrate Area|Calibrate Area| +|Calibrate Radius|Calibrate Radius| +|Calibrate Volume|Calibrate Volume| +|Depth|Depth| +|Closed|Closed| +|Round|Round| +|Square|Square| +|Diamond|Diamond| +|Edit|Edit| +|Comment|Comment| +|Comment Panel|Comment Panel| +|Set Status|Set Status| +|Post|Post| +|Page|Page| +|Add a comment|Add a comment| +|Add a reply|Add a reply| +|Import Annotations|Import Annotations| +|Export Annotations|Export Annotations| +|Add|Add| +|Clear|Clear| +|Bold|Bold| +|Italic|Italic| +|Strikethroughs|Strikethroughs| +|Underlines|Underlines| +|Superscript|Superscript| +|Subscript|Subscript| +|Align left|Align Left| +|Align right|Align Right| +|Center|Center| +|Justify|Justify| +|Font color|Font Color| +|Text Align|Text Align| +|Text Properties|Text Properties| +|Draw Signature|Draw Signature| +|Create| Create| +|Font family|Font Family| +|Font size|Font Size| +|Free Text|Free Text| +|Import Failed|Import Failed| +|File not found|File Not Found| +|Export Failed|Export Failed| +|Dynamic|Dynamic| +|Standard Business|Standard Business| +|Sign Here|Sign Here| +|Custom Stamp|Custom Stamp| +|InitialFieldDialogHeaderText|Initial Field Dialog Header Text| +|HandwrittenInitialDialogHeaderText|Handwritten Initial Dialog Header Text| +|SignatureFieldDialogHeaderText|Signature Field Dialog Header Text| +|HandwrittenSignatureDialogHeaderText|Handwritten Signature Dialog Header Text| +|Draw-hand Signature|Draw-hand Signature| +|Type Signature|Type Signature| +|Upload Signature|Upload Signature| +|Browse Signature Image|Browse Signature Image| +|Save Signature|Save Signature| +|Save Initial|Save Initial| +|highlight|highlight| +|underline|underline| +|strikethrough|strikethrough| +|FormDesigner|Form Designer| +|SubmitForm|Submit Form| +|Search text|Search Text| +|Draw Ink|Draw Ink| +|Revised|Revised| +|Reviewed|Reviewed| +|Received|Received| +|Confidential|Confidential| +|Approved|Approved| +|Not Approved|Not Approved| +|Witness|Witness| +|Initial Here|Initial Here| +|Draft|Draft| +|Final|Final| +|For Public Release|For Public Release| +|Not For Public Release|Not For Public Release| +|For Comment|For Comment| +|Void|Void| +|Preliminary Results|Preliminary Results| +|Information Only|Information Only| +|Enter Signature as Name|Enter Signature as Name| +|Textbox|Textbox| +|Password|Password| +|Check Box|Check Box| +|Radio Button|Radio Button| +|Dropdown|Dropdown| +|List Box|List Box| +|Signature|Signature| +|Delete FormField|Delete FormField| +|FormDesigner Edit text|Form Designer Edit Text| +|in|in| +|m|m| +|ft_in|ft_in| +|ft|ft| +|p|p| +|cm|cm| +|mm|mm| +|pt|pt| +|cu|cu| +|sq|sq| +|General|General| +|Appearance|Appearance| +|Options|Options| +|Textbox Properties|Textbox Properties| +|Name|Name| +|Tooltip|Tooltip| +|Value|Value| +|Form Field Visibility|Form Field Visibility| +|Read Only|Read Only| +|Required|Required| +|Checked|Checked| +|Show Printing|Show Printing| +|Formatting|Formatting| +|Fill|Fill| +|Border|Border| +|Border Color|Border Color| +|Thickness|Thickness| +|Max Length|Max Length| +|List Item|List Item| +|Export Value|Export Value| +|Dropdown Item List|Dropdown Item List| +|List Box Item List|List Box Item List| +|Delete Item|Delete Item| +|Up|Up| +|Down|Down| +|Multiline|Multiline| +|Initial|Initial| +|Export XFDF|Export XFDF| +|Import XFDF|Import XFDF| +|Organize Pages|Organize Pages| +|Insert Right|Insert Right| +|Insert Left|Insert Left| +|Total|Total| +|Pages|Pages| +|Rotate Right|Rotate Right| +|Rotate Left|Rotate Left| +|Delete Page|Delete Page| +|Delete Pages|Delete Pages| +|Copy Page|Copy Page| +|Copy Pages|Copy Pages| +|Save|Save| +|Save As|Save As| +|Select All|Select All| +|Import Document|Import Document| +|Match any word|Match any word| +|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| +|Cors policy error|Unable to retrieve the document due to an invalid URL or access restrictions. Please check the document URL and try again| +|No More Matches|Viewer has finished searching the document. No more matches were found| +|No Search Matches|No matches found| +|No More Search Matches|No more matches found| +|Exact Matches|EXACT MATCHES| +|Total Matches|TOTAL MATCHES| + +## See Also + +- [New Language](./new-language) +- [RTL Language Support](./rtl-language-support) \ No newline at end of file diff --git a/Document-Processing/PDF/PDF-Viewer/react/Localization/new-language.md b/Document-Processing/PDF/PDF-Viewer/react/Localization/new-language.md new file mode 100644 index 0000000000..4dae099c60 --- /dev/null +++ b/Document-Processing/PDF/PDF-Viewer/react/Localization/new-language.md @@ -0,0 +1,345 @@ +--- +layout: post +title: Set a New Language in React PDF Viewer | Syncfusion +description: Learn how to localize the Syncfusion React PDF Viewer with culture codes using L10n.load and the locale property. +platform: document-processing +control: PDF Viewer +documentation: ug +domainurl: ##DomainURL## +--- + +# Set a new language in the React PDF Viewer + +Use the React PDF Viewer’s [locale](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/index-default#locale) property together with `L10n.load` to display UI text, tooltips, and messages in your users’ language. Provide only the keys you need to override; missing keys fall back to the default `en-US` values. + +![German Locale](../../javascript-es6/images/locale-de.gif) + +## When to use this +- You need the viewer UI (e.g., toolbar text, dialogs, tooltips) to appear in a specific language. +- You want to override a few labels (e.g., “Open”, “Zoom”, “Print”) without redefining every string. + +## Prerequisites +- `@syncfusion/ej2-react-pdfviewer` installed in a React app. +- (Optional) A list of keys you want to override. + +## Quick start (set `de` – German) +1. **Load translations** with `L10n.load` at app start (only include the keys you want to change). +2. **Set the culture** by passing `locale="de"` to ``. +3. **Render the viewer** as usual. Missing keys will automatically fall back to `en-US`. + +{% tabs %} +{% highlight js tabtitle="Standalone" %} +{% raw %} +import * as React from 'react'; +import { createRoot } from 'react-dom/client'; +import './index.css'; +import { + PdfViewerComponent, + Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, + ThumbnailView, Print, TextSelection, TextSearch, Annotation, + FormDesigner, FormFields, PageOrganizer, Inject +} from '@syncfusion/ej2-react-pdfviewer'; +import { L10n } from '@syncfusion/ej2-base'; + +/** 1) Provide only the keys you want to override; others fall back to en-US */ +L10n.load({ + 'de': { + 'PdfViewer': { + 'PdfViewer': 'PDF-Viewer', + 'Cancel': 'Abbrechen', + 'Download file': 'Datei herunterladen', + 'Download': 'Herunterladen', + 'Enter Password': 'Dieses Dokument ist passwortgeschützt. Bitte geben Sie ein Passwort ein.', + 'File Corrupted': 'Datei beschädigt', + 'File Corrupted Content': 'Die Datei ist beschädigt und kann nicht geöffnet werden.', + 'Fit Page': 'Seite anpassen', + 'Fit Width': 'Breite anpassen', + 'Automatic': 'Automatisch', + 'Go To First Page': 'Erste Seite anzeigen', + 'Invalid Password': 'Falsches Passwort. Bitte versuchen Sie es erneut.', + 'Next Page': 'Nächste Seite anzeigen', + 'OK': 'OK', + 'Open': 'Datei öffnen', + 'Page Number': 'Aktuelle Seitenzahl', + 'Previous Page': 'Vorherige Seite anzeigen', + 'Go To Last Page': 'Letzte Seite anzeigen', + 'Zoom': 'Zoomen', + 'Zoom In': 'Hineinzoomen', + 'Zoom Out': 'Herauszoomen', + 'Page Thumbnails': 'Miniaturansichten der Seiten', + 'Bookmarks': 'Lesezeichen', + 'Print': 'Druckdatei', + 'Organize Pages': 'Seiten organisieren', + 'Insert Right': 'Rechts einfügen', + 'Insert Left': 'Links einfügen', + 'Total': 'Gesamt', + 'Pages': 'Seiten', + 'Rotate Right': 'Drehe nach rechts', + 'Rotate Left': 'Nach links drehen', + 'Delete Page': 'Seite löschen', + 'Delete Pages': 'Seiten löschen', + 'Copy Page': 'Seite kopieren', + 'Copy Pages': 'Seiten kopieren', + 'Import Document': 'Dokument importieren', + 'Save': 'Speichern', + 'Save As': 'Speichern als', + 'Select All': 'Wählen Sie Alle', + 'Change Page Zoom': 'Change Page Zoom', + 'Increase Page Zoom': 'Increase Page Zoom', + 'Decrease Page Zoom': 'Decrease Page Zoom', + 'Password Protected': 'Passwort erforderlich', + 'Copy': 'Kopieren', + 'Text Selection': 'Textauswahltool', + 'Panning': 'Schwenkmodus', + 'Text Search': 'Text finden', + 'Find in document': 'Im Dokument suchen', + 'Match case': 'Gross- / Kleinschreibung', + 'Match any word': 'Passen Sie ein beliebiges Wort an', + 'Apply': 'Anwenden', + 'GoToPage': 'Gehen Sie zur Seite', + 'No Matches': 'PDF Viewer hat die Suche im Dokument abgeschlossen. Es wurden keine Übereinstimmungen gefunden.', + 'No More Matches': 'PDF Viewer hat die Suche im Dokument abgeschlossen. Es wurden keine weiteren Übereinstimmungen gefunden.', + 'No Search Matches': 'Keine Treffer gefunden', + 'No More Search Matches': 'Keine weiteren Übereinstimmungen gefunden', + 'Exact Matches': 'Genaue Übereinstimmungen', + 'Total Matches': 'Gesamtspiele', + 'Undo': 'Rückgängig machen', + 'Redo': 'Wiederholen', + 'Annotation': 'Anmerkungen hinzufügen oder bearbeiten', + 'FormDesigner': 'Fügen Sie Formularfelder hinzu und bearbeiten Sie sie', + 'Highlight': 'Text hervorheben', + 'Underline': 'Text unterstreichen', + 'Strikethrough': 'Durchgestrichener Text', + 'Squiggly': 'Squiggly Text', + 'Delete': 'Anmerkung löschen', + 'Opacity': 'Opazität', + 'Color edit': 'Farbe ändern', + 'Opacity edit': 'Deckkraft ändern', + 'Highlight context': 'Markieren', + 'Underline context': 'Unterstreichen', + 'Strikethrough context': 'Durchschlagen', + 'Squiggly context': 'Squiggly', + 'Server error': 'Der Webdienst hört nicht zu. ', + 'Client error': 'Der Client-Seiten-Fehler wird gefunden. Bitte überprüfen Sie die benutzerdefinierten Header in der Eigenschaft von AjaxRequestSets und Web -Aktion in der Eigenschaftsassettierungseigenschaft.', + 'Cors policy error': 'Das Dokument kann aufgrund einer ungültigen URL- oder Zugriffsbeschränkungen nicht abgerufen werden. Bitte überprüfen Sie die Dokument -URL und versuchen Sie es erneut.', + 'Open text': 'Offen', + 'First text': 'Erste Seite', + 'Previous text': 'Vorherige Seite', + 'Next text': 'Nächste Seite', + 'Last text': 'Letzte Seite', + 'Zoom in text': 'Hineinzoomen', + 'Zoom out text': 'Rauszoomen', + 'Selection text': 'Auswahl', + 'Pan text': 'Pfanne', + 'Print text': 'Drucken', + 'Search text': 'Suchen', + 'Annotation Edit text': 'Anmerkung bearbeiten', + 'FormDesigner Edit text': 'Fügen Sie Formularfelder hinzu und bearbeiten Sie sie', + 'Line Thickness': 'Dicke der Linie', + 'Line Properties': 'Linieneigenschaften', + 'Start Arrow': 'Pfeil starten', + 'End Arrow': 'Endpfeil', + 'Line Style': 'Linienstil', + 'Fill Color': 'Füllfarbe', + 'Line Color': 'Linienfarbe', + 'None': 'Keiner', + 'Open Arrow': 'Offen', + 'Closed Arrow': 'Geschlossen', + 'Round Arrow': 'Runden', + 'Square Arrow': 'Quadrat', + 'Diamond Arrow': 'Diamant', + 'Butt': 'Hintern', + 'Cut': 'Schneiden', + 'Paste': 'Paste', + 'Delete Context': 'Löschen', + 'Properties': 'Eigenschaften', + 'Add Stamp': 'Stempel hinzufügen', + 'Add Shapes': 'Formen hinzufügen', + 'Stroke edit': 'Ändern Sie die Strichfarbe', + 'Change thickness': 'Randstärke ändern', + 'Add line': 'Zeile hinzufügen', + 'Add arrow': 'Pfeil hinzufügen', + 'Add rectangle': 'Rechteck hinzufügen', + 'Add circle': 'Kreis hinzufügen', + 'Add polygon': 'Polygon hinzufügen', + 'Add Comments': 'Füge Kommentare hinzu', + 'Comments': 'Kommentare', + 'SubmitForm': 'Formular abschicken', + 'No Comments Yet': 'Noch keine Kommentare', + 'Accepted': 'Akzeptiert', + 'Completed': 'Vollendet', + 'Cancelled': 'Abgesagt', + 'Rejected': 'Abgelehnt', + 'Leader Length': 'Führungslänge', + 'Scale Ratio': 'Skalenverhältnis', + 'Calibrate': 'Kalibrieren', + 'Calibrate Distance': 'Distanz kalibrieren', + 'Calibrate Perimeter': 'Umfang kalibrieren', + 'Calibrate Area': 'Bereich kalibrieren', + 'Calibrate Radius': 'Radius kalibrieren', + 'Calibrate Volume': 'Lautstärke kalibrieren', + 'Depth': 'Tiefe', + 'Closed': 'Geschlossen', + 'Round': 'Runden', + 'Square': 'Quadrat', + 'Diamond': 'Diamant', + 'Edit': 'Bearbeiten', + 'Comment': 'Kommentar', + 'Comment Panel': 'Kommentarpanel', + 'Set Status': 'Status festlegen', + 'Post': 'Post', + 'Page': 'Seite', + 'Add a comment': 'Einen Kommentar hinzufügen', + 'Add a reply': 'Fügen Sie eine Antwort hinzu', + 'Import Annotations': 'Importieren Sie Annotationen aus der JSON -Datei', + 'Export Annotations': 'Annotation an die JSON -Datei exportieren', + 'Export XFDF': 'Annotation in XFDF -Datei exportieren', + 'Import XFDF': 'Importieren Sie Annotationen aus der XFDF -Datei', + 'Add': 'Hinzufügen', + 'Clear': 'Klar', + 'Bold': 'Deutlich', + 'Italic': 'Kursiv', + 'Strikethroughs': 'Durchgestrichen', + 'Underlines': 'Unterstreichen', + 'Superscript': 'Hochgestellt', + 'Subscript': 'Index', + 'Align left': 'Linksbündig', + 'Align right': 'Rechts ausrichten', + 'Center': 'Center', + 'Justify': 'Rechtfertigen', + 'Font color': 'Schriftfarbe', + 'Text Align': 'Textausrichtung', + 'Text Properties': 'Schriftstil', + 'SignatureFieldDialogHeaderText': 'Signatur hinzufügen', + 'HandwrittenSignatureDialogHeaderText': 'Signatur hinzufügen', + 'InitialFieldDialogHeaderText': 'Initial hinzufügen', + 'HandwrittenInitialDialogHeaderText': 'Initial hinzufügen', + 'Draw Ink': 'Tinte zeichnen', + 'Create': 'Erstellen', + 'Font family': 'Schriftfamilie', + 'Font size': 'Schriftgröße', + 'Free Text': 'Freier Text', + 'Import Failed': 'Ungültiger JSON -Dateityp oder Dateiname; Bitte wählen Sie eine gültige JSON -Datei aus', + 'Import PDF Failed': 'Ungültige PDF -Dateityp oder PDF -Datei nicht gefunden. Bitte wählen Sie eine gültige PDF -Datei aus', + 'File not found': 'Die importierte JSON -Datei wird nicht am gewünschten Ort gefunden', + 'Export Failed': 'Exportanmerkungen sind gescheitert. Bitte stellen Sie sicher, dass Anmerkungen ordnungsgemäß hinzugefügt werden', + 'of': 'von ', + 'Dynamic': 'Dynamisch', + 'Standard Business': 'Standardgeschäft', + 'Sign Here': 'Hier unterschreiben', + 'Custom Stamp': 'Benutzerdefinierte Stempel', + 'Enter Signature as Name': 'Gib deinen Namen ein', + 'Draw-hand Signature': 'ZIEHEN', + 'Type Signature': 'TYP', + 'Upload Signature': 'HOCHLADEN', + 'Browse Signature Image': 'DURCHSUCHE', + 'Save Signature': 'Signatur speichern', + 'Save Initial': 'Initial speichern', + 'Textbox': 'Textfeld', + 'Password': 'Passwort', + 'Check Box': 'Kontrollkästchen', + 'Radio Button': 'Radio knopf', + 'Dropdown': 'Runterfallen', + 'List Box': 'Listenfeld', + 'Signature': 'Unterschrift', + 'Delete FormField': 'Formular löschen', + 'Textbox Properties': 'Textbox -Eigenschaften', + 'Name': 'Name', + 'Tooltip': 'Tooltip', + 'Value': 'Wert', + 'Form Field Visibility': 'Sichtbarkeit von Feldwäschen', + 'Read Only': 'Schreibgeschützt', + 'Required': 'Erforderlich', + 'Checked': 'Geprüft', + 'Show Printing': 'Drucken zeigen', + 'Formatting': 'Format', + 'Fill': 'Füllen', + 'Border': 'Grenze', + 'Border Color': 'Randfarbe', + 'Thickness': 'Dicke', + 'Max Length': 'Maximale Länge', + 'List Item': 'Artikelname', + 'Export Value': 'Gegenstandswert', + 'Dropdown Item List': 'Dropdown -Elementliste', + 'List Box Item List': 'Listenfeldelementliste', + 'General': 'ALLGEMEIN', + 'Appearance': 'AUSSEHEN', + 'Options': 'OPTIONEN', + 'Delete Item': 'Löschen', + 'Up': 'Hoch', + 'Down': 'Runter', + 'Multiline': 'Multiline', + 'Revised': 'Überarbeitet', + 'Reviewed': 'Bewertet', + 'Received': 'Erhalten', + 'Confidential': 'Vertraulich', + 'Approved': 'Genehmigt', + 'Not Approved': 'Nicht bestätigt', + 'Witness': 'Zeuge', + 'Initial Here': 'Anfang hier', + 'Draft': 'Entwurf', + 'Final': 'Finale', + 'For Public Release': 'Für die Veröffentlichung', + 'Not For Public Release': 'Nicht für die Veröffentlichung', + 'For Comment': 'Für Kommentar', + 'Void': 'Leere', + 'Preliminary Results': 'Vorläufige Ergebnisse', + 'Information Only': 'Nur Informationen', + 'in': 'In', + 'm': 'M', + 'ft_in': 'ft_in', + 'ft': 'ft', + 'p': 'P', + 'cm': 'cm', + 'mm': 'mm', + 'pt': 'pt', + 'cu': 'cu', + 'sq': 'Quadrat', + 'Initial': 'Initiale', + 'Extract Pages': 'Extract Pages', + 'Delete Pages After Extracting': 'Delete Pages After Extracting', + 'Extract Pages As Separate Files': 'Extract Pages As Separate Files', + 'Extract': 'Extract', + 'Example: 1,3,5-12': 'Example: 1,3,5-12', + 'No matches': 'Der Viewer hat die Suche im Dokument abgeschlossen. ', + 'No Text Found': 'Kein Text gefunden' + } + } +}); +// Inject required modules +PdfViewerComponent.Inject(Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, + ThumbnailView, Print, TextSelection, TextSearch, Annotation, FormDesigner, FormFields); +/** 2) Set locale="de" on the component */ +export function App() { + return ( +
    + {/* Render the PDF Viewer with default en-US locale */} + +
    + ); +} + +const root = createRoot(document.getElementById('sample')); +root.render(); +{% endraw %} +{% endhighlight %} +{% endtabs %} + +## How it works +- [locale](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/index-default#locale) sets the culture used by the viewer for all strings. +- `L10n.load({...})` registers your culture-specific string overrides at runtime. +- Missing keys fall back to `en-US`. + +## Troubleshooting +- **Overrides not applied?** Ensure the culture code matches in both `locale` and `L10n.load`. +- **Some labels still English?** Add those keys to your `L10n.load` object. +- **Service issues?** Verify your `serviceUrl` endpoint. + +## See also +- [Default Language](./default-language) +- [RTL Language Support](./rtl-language-support) diff --git a/Document-Processing/PDF/PDF-Viewer/react/Localization/rtl-language-support.md b/Document-Processing/PDF/PDF-Viewer/react/Localization/rtl-language-support.md new file mode 100644 index 0000000000..2201f71316 --- /dev/null +++ b/Document-Processing/PDF/PDF-Viewer/react/Localization/rtl-language-support.md @@ -0,0 +1,304 @@ +--- +layout: post +title: RTL Localization in React PDF Viewer | Syncfusion +description: Learn about the Localization and Right to Left Lanugage Support in Syncfusion React PDF Viewer component. +platform: document-processing +control: PDF Viewer +documentation: ug +domainurl: ##DomainURL## +--- + +# RTL and Localization Page in React PDF Viewer + +Use RTL support to render the viewer interface for right-to-left languages. +- Enable [enableRtl](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/index-default#enablertl) to apply right-to-left layout. +- Load culture-specific strings globally with `L10n.load`. +- Set the [locale](https://ej2.syncfusion.com/react/documentation/api/pdfviewer/index-default#locale) property on the `PdfViewer` instance to the target culture. + +![Arabic Localization](../../javascript-es6/images/locale-ar.gif) + +## Example: enable RTL and provide Arabic localization + +Use the example below to enable RTL for languages such as Arabic, Hebrew, and Persian. + +{% tabs %} +{% highlight ts tabtitle="Standalone" %} +import { PdfViewer, TextSelection, TextSearch, Print, Navigation, Toolbar, Magnification, Annotation, FormDesigner, FormFields, PageOrganizer } from '@syncfusion/ej2-pdfviewer'; +import {L10n} from '@syncfusion/ej2-base'; +// Inject required modules +PdfViewer.Inject(TextSelection, TextSearch, Print, Navigation, Toolbar, Magnification, Annotation, FormDesigner, FormFields, PageOrganizer); + +const pdfviewer: PdfViewer = new PdfViewer({ + documentPath: 'https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf', + resourceUrl: "https://cdn.syncfusion.com/ej2/31.1.23/dist/ej2-pdfviewer-lib", + locale: 'ar-AE', //Using locale updates culture + enableRtl: true, //To enbale Right to Left rendering. +}); +//Load culutre files here + L10n.load({ + 'ar-AE': { + 'PdfViewer': { + 'PdfViewer': 'قوات الدفاع الشعبي المشاهد', + 'Cancel': 'إلغاء', + 'Download file': 'تحميل الملف', + 'Download': 'تحميل', + 'Enter Password': 'هذا المستند محمي بكلمة مرور. يرجى إدخال كلمة مرور.', + 'File Corrupted': 'ملف تالف', + 'File Corrupted Content': 'الملف تالف ولا يمكن فتحه.', + 'Fit Page': 'لائق بدنيا الصفحة', + 'Fit Width': 'لائق بدنيا عرض', + 'Automatic': 'تلقائي', + 'Go To First Page': 'عرض الصفحة الأولى', + 'Invalid Password': 'كلمة سر خاطئة. حاول مرة اخرى.', + 'Next Page': 'عرض الصفحة التالية', + 'OK': 'حسنا', + 'Open': 'فتح الملف', + 'Page Number': 'رقم الصفحة الحالية', + 'Previous Page': 'عرض الصفحة السابقة', + 'Go To Last Page': 'عرض الصفحة الأخيرة', + 'Zoom': 'تكبير', + 'Zoom In': 'تكبير في', + 'Zoom Out': 'تكبير خارج', + 'Page Thumbnails': 'مصغرات الصفحة', + 'Bookmarks': 'المرجعية', + 'Print': 'اطبع الملف', + 'Password Protected': 'كلمة المرور مطلوبة', + 'Copy': 'نسخ', + 'Text Selection': 'أداة اختيار النص', + 'Panning': 'وضع عموم', + 'Text Search': 'بحث عن نص', + 'Find in document': 'ابحث في المستند', + 'Match case': 'حالة مباراة', + 'Apply': 'تطبيق', + 'GoToPage': 'انتقل إلى صفحة', + 'No Matches': 'انتهى العارض من البحث في المستند. لم يتم العثور على مزيد من التطابقات', + 'No Text Found': 'لم يتم العثور على نص', + 'Undo': 'فك', + 'Redo': 'فعل ثانية', + 'Annotation': 'إضافة أو تعديل التعليقات التوضيحية', + 'Highlight': 'تسليط الضوء على النص', + 'Underline': 'تسطير النص', + 'Strikethrough': 'نص يتوسطه خط', + 'Delete': 'حذف التعليق التوضيحي', + 'Opacity': 'غموض', + 'Color edit': 'غير اللون', + 'Opacity edit': 'تغيير التعتيم', + 'highlight': 'تسليط الضوء', + 'underline': 'أكد', + 'strikethrough': 'يتوسطه', + // tslint:disable-next-line:max-line-length + 'Server error': 'خدمة الانترنت لا يستمع. يعتمد قوات الدفاع الشعبي المشاهد على خدمة الويب لجميع ميزاته. يرجى بدء خدمة الويب للمتابعة.', + 'Open text': 'افتح', + 'First text': 'الصفحة الأولى', + 'Previous text': 'الصفحة السابقة', + 'Next text': 'الصفحة التالية', + 'Last text': 'آخر صفحة', + 'Zoom in text': 'تكبير', + 'Zoom out text': 'تصغير', + 'Selection text': 'اختيار', + 'Pan text': 'مقلاة', + 'Print text': 'طباعة', + 'Search text': 'بحث', + 'Annotation Edit text': 'تحرير التعليق التوضيحي', + 'Line Thickness': 'سمك الخط', + 'Line Properties': 'خط الخصائص', + 'Start Arrow': 'ابدأ السهم', + 'End Arrow': 'نهاية السهم', + 'Line Style': 'أسلوب الخط', + 'Fill Color': 'ملء اللون', + 'Line Color': ' الخط اللون', + 'None': 'لا شيء', + 'Open Arrow': 'افتح', + 'Closed Arrow': 'مغلق', + 'Round Arrow': 'مستدير', + 'Square Arrow': 'مربع', + 'Diamond Arrow': 'الماس', + 'Cut': 'يقطع', + 'Paste': 'معجون', + 'Delete Context': 'حذف', + 'Properties': 'الخصائص', + 'Add Stamp': 'إضافة الطوابع', + 'Add Shapes': 'أضف الأشكال', + 'Stroke edit': 'تغيير لون السكتة الدماغية', + 'Change thickness': 'تغيير سمك الحدود', + 'Add line': 'إضافة خط', + 'Add arrow': 'سهم إضافة', + 'Add rectangle': 'أضف مستطيل', + 'Add circle': 'إضافة دائرة', + 'Add polygon': 'أضف مضلع', + 'Add Comments': 'أضف تعليقات', + 'Comments': 'تعليقات', + 'No Comments Yet': 'لا توجد تعليقات حتى الآن', + 'Accepted': 'وافقت', + 'Completed': 'منجز', + 'Cancelled': 'ألغيت', + 'Rejected': 'مرفوض', + 'Leader Length': 'زعيم الطول', + 'Scale Ratio': 'نسبة مقياس', + 'Calibrate': 'عاير', + 'Calibrate Distance': 'معايرة المسافة', + 'Calibrate Perimeter': 'معايرة محيط', + 'Calibrate Area': 'عاير منطقة', + 'Calibrate Radius': 'معايرة نصف القطر', + 'Calibrate Volume': 'معايرة الحجم', + 'Depth': 'عمق', + 'Closed': 'مغلق', + 'Round': 'مستدير', + 'Square': 'ميدان', + 'Diamond': 'الماس', + 'Edit': 'تصحيح', + 'Comment': 'تعليقات', + 'Comment Panel': 'لوحة التعليقات', + 'Set Status': 'تعيين الحالة', + 'Post': 'بريد', + 'Page': 'صفحة', + 'Add a comment': 'أضف تعليق', + 'Add a reply': 'أضف رد', + 'Import Annotations': 'استيراد التعليقات التوضيحية', + 'Export Annotations': 'شروح التصدير', + 'Add': 'أضف', + 'Clear': 'واضح', + 'Bold': 'بالخط العريض', + 'Italic': 'مائل', + 'Strikethroughs': 'يتوسطه', + 'Underlines': 'تحت الخط', + 'Superscript': 'حرف فوقي', + 'Subscript': 'الفرعية النصي', + 'Align left': 'محاذاة اليسار', + 'Align right': 'محاذاة اليمين', + 'Center': 'مركز', + 'Justify': 'برر', + 'Font color': 'لون الخط', + 'Text Align': 'محاذاة النص', + 'Text Properties': 'نوع الخط', + 'Draw Signature': 'ارسم التوقيع', + 'Create': 'خلق', + 'Font family': 'خط العائلة', + 'Font size': 'حجم الخط', + 'Free Text': 'نص حر', + 'Import Failed': 'نوع ملف سلمان أو اسم الملف غير صالح ؛ يرجى تحديد ملف سلمانصالح', + 'File not found': 'لم يتم العثور على ملف سلمان المستورد في الموقع المطلوب', + 'Export Failed': 'شل إجراء تصدير التعليقات التوضيحية ؛ يرجى التأكد من إضافة التعليقات التوضيحية بشكل صحيح', + 'Dynamic': 'متحرك', + 'Standard Business': 'الأعمال القياسية', + 'Sign Here': 'وقع هنا', + 'Custom Stamp': 'ختم مخصص', + 'InitialFieldDialogHeaderText': 'إضافة الأولية', + 'HandwrittenInitialDialogHeaderText': 'إضافة الأولية', + 'SignatureFieldDialogHeaderText': 'أضف التوقيع', + 'HandwrittenSignatureDialogHeaderText': 'أضف التوقيع', + 'Draw-hand Signature': 'يرسم', + 'Type Signature': 'نوع', + 'Upload Signature': 'تحميل', + 'Browse Signature Image': 'تصفح', + 'Save Signature': 'احفظ التوقيع', + 'Save Initial': 'حفظ الأولي', + 'Highlight context': 'تسليط الضوء', + 'Underline context': 'تسطير', + 'Strikethrough context': 'يتوسطه خط', + 'FormDesigner': 'إضافة وتحرير حقل النموذج', + 'SubmitForm': 'تقديم النموذج', + 'Search Text': 'بحث', + 'Draw Ink': 'ارسم الحبر', + 'Revised': 'مراجعة', + 'Reviewed': 'تمت المراجعة', + 'Received': 'تم الاستلام', + 'Confidential': 'مؤتمن', + 'Approved': 'وافق', + 'Not Approved': 'غير مقبول', + 'Witness': 'الشاهد', + 'Initial Here': 'المبدئي هنا', + 'Draft': 'مشروع', + 'Final': 'أخير', + 'For Public Release': 'للنشر العام', + 'Not For Public Release': 'ليس للنشر العام', + 'For Comment': 'للتعليق', + 'Void': 'فارغ', + 'Preliminary Results': 'نتائج اولية', + 'Information Only': 'المعلومات فقط', + 'Enter Signature as Name': 'أدخل أسمك', + 'Textbox': 'مربع الكتابة', + 'Password': 'كلمه السر', + 'Check Box': 'خانة اختيار', + 'Radio Button': 'زر الراديو', + 'Dropdown': 'اسقاط', + 'List Box': 'مربع القائمة', + 'Signature': 'إمضاء', + 'Delete FormField': 'حذف حقل النموذج', + 'FormDesigner Edit text': 'إضافة وتحرير حقل النموذج', + 'in': 'في', + 'm': 'م', + 'ft_in': 'قدم', + 'ft': 'قدم', + 'p': 'ص', + 'cm': 'سم', + 'mm': 'مم', + 'pt': 'نقطة', + 'cu': 'مكعب', + 'sq': 'قدم مربع', + 'General': 'جنرال لواء', + 'Appearance': 'مظهر خارجي', + 'Options': 'والخيارات', + 'Textbox Properties': 'خصائص مربع النص', + 'Name': 'اسم', + 'Tooltip': 'تلميح', + 'Value': 'القيمة', + 'Form Field Visibility': 'رؤية حقل النموذج', + 'Read Only': 'يقرأ فقط', + 'Required': 'مطلوب', + 'Checked': 'التحقق', + 'Show Printing': 'عرض الطباعة', + 'Formatting': 'صيغة', + 'Fill': 'يملأ', + 'Border': 'الحدود', + 'Border Color': 'لون الحدود', + 'Thickness': 'السماكة', + 'Max Length': 'الحد الاقصى للطول', + 'List Item': 'اسم العنصر', + 'Export Value': 'قيمة البند', + 'Dropdown Item List': 'قائمة العناصر المنسدلة', + 'List Box Item List': 'قائمة عناصر مربع القائمة', + 'Delete Item': 'حذف', + 'Up': 'فوق', + 'Down': 'تحت', + 'Multiline': 'متعدد الأسطر', + 'Initial': 'أولي', + 'Export XFDF': 'تصدير التعليق التوضيحي إلى ملف XFDF', + 'Import XFDF': 'استيراد التعليقات التوضيحية من ملف XFDF', + 'Organize Pages': 'تنظيم الصفحات', + 'Insert Right': 'أدخل الحق', + 'Insert Left': 'أدخل اليسار', + 'Total': 'المجموع', + 'Pages': 'الصفحات', + 'Rotate Right': 'تدوير لليمين', + 'Rotate Left': 'استدر يسارا', + 'Delete Page': 'حذف الصفحة', + 'Delete Pages': 'حذف الصفحات', + 'Copy Page': 'انسخ الصفحة', + 'Copy Pages': 'نسخ الصفحات', + 'Save': 'يحفظ', + 'Save As': 'حفظ باسم', + 'Select All': 'اختر الكل', + 'Import Document': 'استيراد المستند', + 'Match any word': 'تطابق أي كلمة', + 'Client error': 'تم العثور على خطأ في جانب العميل. يرجى التحقق من رؤوس Ajax المخصصة في خاصية AjaxRequestSettings وطرق الويب في خاصية ServerActionSettings', + 'Cors policy error': 'تعذر استرداد المستند بسبب عنوان URL غير صالح أو قيود على الوصول. يرجى التحقق من عنوان URL للمستند والمحاولة مرة أخرى', + 'No More Matches': 'انتهى العارض من البحث في المستند. لم يتم العثور على تطابقات أخرى', + 'No Search Matches': 'لم يتم العثور على تطابقات', + 'No More Search Matches': 'لم يتم العثور على تطابقات أخرى', + 'Exact Matches': 'تطابقات دقيقة', + 'Total Matches': 'إجمالي التطابقات' + + } + } + }); +pdfviewer.appendTo('#PdfViewer'); +{% endhighlight %} +{% endtabs %} + +N> A comprehensive list of localization files and default strings is available on GitHub: [GitHub Locale](https://github.com/syncfusion/ej2-locale). Provide only keys that require overrides; missing keys fall back to the default `en-US` values. + +## See Also + +- [Default Language](./default-language) +- [New Language](./new-language) \ No newline at end of file diff --git a/Document-Processing/PDF/PDF-Viewer/react/globalization.md b/Document-Processing/PDF/PDF-Viewer/react/globalization.md deleted file mode 100644 index 48f0535e54..0000000000 --- a/Document-Processing/PDF/PDF-Viewer/react/globalization.md +++ /dev/null @@ -1,847 +0,0 @@ ---- -layout: post -title: Globalization in React Pdfviewer component | Syncfusion -description: Learn here all about Globalization in Syncfusion React Pdfviewer component of Syncfusion Essential JS 2 and more. -control: PDF Viewer -platform: document-processing -documentation: ug -domainurl: ##DomainURL## ---- - -# Globalization in React PDF Viewer component - -The text content in the PDF Viewer can be localized using collections of localized strings for different cultures. By default, the PDF Viewer uses the “__en-US__”. locale. - -The following table shows the default text values used in PDF Viewer in 'en-US' culture: - -|Keywords|Values| -|---|---| -|PdfViewer|PDF Viewer| -|Cancel|Cancel| -|Download file|Download file| -|Download|Download| -|Enter Password|This document is password protected. Please enter a password.| -|File Corrupted|File corrupted| -|File Corrupted Content|The file is corrupted and cannot be opened.| -|Fit Page|Fit page| -|Fit Width|Fit width| -|Automatic|Automatic| -|Go To First Page|Show first page| -|Invalid Password|Incorrect password. Please try again.| -|Next Page|Show next page| -|OK|OK| -|Open|Open file| -|Page Number|Current page number| -|Previous Page|Show previous page| -|Go To Last Page|Show last page| -|Zoom|Zoom| -|Zoom In|Zoom in| -|Zoom Out|Zoom out| -|Page Thumbnails|Page thumbnails| -|Bookmarks|Bookmarks| -|Print|Print file| -|Password Protected|Password required| -|Copy|Copy| -|Text Selection|Text selection tool| -|Panning|Pan mode| -|Text Search|Find text| -|Find in document|Find in document| -|Match case|Match case| -|Apply|Apply| -|GoToPage|Go to page| -|No Matches|Viewer has finished searching the document. No more matches were found| -|No Text Found|No Text Found| -|Undo|Undo| -|Redo|Redo| -|Annotation|Add or Edit annotations| -|FormDesigner|Add and Edit Form Fields| -|Highlight|Highlight Text| -|Underline|Underline Text| -|Strikethrough|Strikethrough Text| -|Delete|Delete annotation| -|Opacity|Opacity| -|Color edit|Change Color| -|Opacity edit|Change Opacity| -|Highlight context|Highlight| -|Underline context|Underline| -|Strikethrough context|Strike through| -|Server error|Web-service is not listening. PDF Viewer depends on web-service for all its features. Please start the web service to continue.| -|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.| -|Open text|Open| -|First text|First Page| -|Previous text|Previous Page| -|Next text|Next Page| -|Last text|Last Page| -|Zoom in text|Zoom In| -|Zoom out text|Zoom Out| -|Selection text|Selection| -|Pan text|Pan| -|Print text|Print| -|Search text|Search| -|Annotation Edit text|Edit Annotation| -|FormDesigner Edit text|Add and Edit Form Fields| -|Line Thickness|Line Thickness| -|Line Properties|Line Properties| -|Start Arrow|Start Arrow| -|End Arrow|End Arrow| -|Line Style|Line Style| -|Fill Color|Fill Color| -|Line Color|Line Color| -|None|None| -|Open Arrow|Open| -|Closed Arrow|Closed| -|Round Arrow|Round| -|Square Arrow|Square| -|Diamond Arrow|Diamond| -|Butt|Butt| -|Cut|Cut -|Paste|Paste| -|Delete Context|Delete| -|Properties|Properties| -|Add Stamp|Add Stamp| -|Add Shapes|Add Shapes| -|Stroke edit|Change Stroke Color| -|Change thickness|Change Border Thickness| -|Add line|Add Line| -|Add arrow|Add Arrow| -|Add rectangle|Add Rectangle| -|Add circle|Add Circle| -|Add polygon|Add Polygon| -|Add Comments|Add Comments| -|Comments|Comments| -|SubmitForm|Submit Form| -|No Comments Yet|No Comments Yet| -|Accepted|Accepted| -|Completed|Completed| -|Cancelled|Cancelled| -|Rejected|Rejected| -|Leader Length|Leader Length| -|Scale Ratio|Scale Ratio| -|Calibrate|Calibrate| -|Calibrate Distance|Calibrate Distance| -|Calibrate Perimeter|Calibrate Perimeter| -|Calibrate Area|Calibrate Area| -|Calibrate Radius|Calibrate Radius| -|Calibrate Volume|Calibrate Volume| -|Depth|Depth| -|Closed|Closed| -|Round|Round| -|Square|Square| -|Diamond|Diamond| -|Edit|Edit| -|Comment|Comment| -|Comment Panel|Comment Panel| -|Set Status|Set Status| -|Post|Post| -|Page|Page| -|Add a comment|Add a comment| -|Add a reply|Add a reply| -|Import Annotations|Import annotations from JSON file| -|Export Annotations|Export annotation to JSON file| -|Export XFDF|Export annotation to XFDF file| -|Import XFDF|Import annotations from XFDF file| -|Add|Add| -|Clear|Clear| -|Bold|Bold| -|Italic|Italic| -|Strikethroughs|Strikethrough| -|Underlines|Underline| -|Superscript|Superscript| -|Subscript|Subscript| -|Align left|Align Left| -|Align right|Align Right| -|Center|Center| -|Justify|Justify| -|Font color|Font Color| -|Text Align|Text Align| -|Text Properties|Font Style| -|SignatureFieldDialogHeaderText|Add Signature| -|HandwrittenSignatureDialogHeaderText|Add Signature| -|InitialFieldDialogHeaderText|Add Initial| -|HandwrittenInitialDialogHeaderText|Add Initial| -|Draw Ink|Draw Ink| -|Create|Create| -|Font family|Font Family| -|Font size|Font Size| -|Free Text|Free Text| -|Import Failed|Invalid JSON file type or file name; please select a valid JSON file| -|File not found|Imported JSON file is not found in the desired location| -|Export Failed|Export annotations action has failed; please ensure annotations are added properly| -|of|of | -|Dynamic|Dynamic| -|Standard Business|Standard Business| -|Sign Here|Sign Here| -|Custom Stamp|Custom Stamp| -|Enter Signature as Name|Enter your name| -|Draw-hand Signature|DRAW| -|Type Signature|TYPE| -|Upload Signature|UPLOAD| -|Browse Signature Image|BROWSE| -|Save Signature|Save Signature| -|Save Initial|Save Initial| -|Textbox|Textbox| -|Password|Password| -|Check Box|Checkbox| -|Radio Button|Radio Button| -|Dropdown|Drop Down| -|List Box|List Box| -|Signature|Signature| -|Delete FormField|Delete Form Field| -|Textbox Properties|Textbox Properties| -|Name|Name| -|Tooltip|Tooltip| -|Value|Value| -|Form Field Visibility|Form Field Visibility| -|Read Only|Read Only| -|Required|Required| -|Checked|Checked| -|Show Printing|Show Printing| -|Formatting|Format| -|Fill|Fill| -|Border|Border| -|Border Color|Border Color| -|Thickness|Thickness| -|Max Length|Max Length| -|List Item|Item Name| -|Export Value|Item Value| -|Dropdown Item List|Dropdown Item List| -|List Box Item List|List Box Item List| -|General|GENERAL| -|Appearance|APPEARANCE| -|Options|OPTIONS| -|Delete Item|Delete| -|Up|Up| -|Down|Down| -|Multiline|Multiline| -|Revised|Revised| -|Reviewed|Reviewed| -|Received|Received| -|Confidential|Confidential| -|Approved|Approved| -|Not Approved|Not Approved| -|Witness|Witness| -|Initial Here|Initial Here| -|Draft|Draft| -|Final|Final| -|For Public Release|For Public Release| -|Not For Public Release|Not For Public Release| -|For Comment|For Comment| -|Void|Void| -|Preliminary Results|Preliminary Results| -|Information Only|Information Only| -|in|in| -|m|m| -|ft_in|ft_in| -|ft|ft| -|p|p| -|cm|cm| -|mm|mm| -|pt|pt| -|cu|cu| -|sq|sq| -|Initial|Initial| -|Organize Pages|Organize Pages| -|Insert Right|Insert Right| -|Insert Left|Insert Left| -|Total|Total| -|Pages|Pages| -|Rotate Right|Rotate Right| -|Rotate Left|Rotate Left| -|Delete Page|Delete Page| -|Delete Pages|Delete Pages| -|Copy Page|Copy Page| -|Copy Pages|Copy Pages| -|Save|Save| -|Save As|Save As| -|Select All|Select All| -|Import Document|Import Document| -|Match any word|Match any word| -|Cors policy error|Unable to retrieve the document due to an invalid URL or access restrictions. Please check the document URL and try again| -|No More Matches|Viewer has finished searching the document. No more matches were found| -|No Search Matches|No matches found| -|No More Search Matches|No more matches found| -|Exact Matches|EXACT MATCHES| -|Total Matches|TOTAL MATCHES| - -The different locale value for the PDF Viewer can be specified using the locale property. - -{% tabs %} -{% highlight js tabtitle="Standalone" %} -{% raw %} - -import * as ReactDOM from 'react-dom'; -import * as React from 'react'; -import './index.css'; -import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, - ThumbnailView, Print, TextSelection, TextSearch, Annotation, FormDesigner, FormFields, Inject } from '@syncfusion/ej2-react-pdfviewer'; -import {L10n} from '@syncfusion/ej2-base'; - -//PDF Viewer Arabic Sample Locale -L10n.load({ - 'ar-AE': { - 'PdfViewer' : { - 'PdfViewer': 'قوات الدفاع الشعبي المشاهد', - 'Cancel': 'إلغاء', - 'Download file': 'تحميل الملف', - 'Download': 'تحميل', - 'Enter Password': 'هذا المستند محمي بكلمة مرور. يرجى إدخال كلمة مرور.', - 'File Corrupted': 'ملف تالف', - 'File Corrupted Content': 'الملف تالف ولا يمكن فتحه.', - 'Fit Page': 'لائق بدنيا الصفحة', - 'Fit Width': 'لائق بدنيا عرض', - 'Automatic': 'تلقائي', - 'Go To First Page': 'عرض الصفحة الأولى', - 'Invalid Password': 'كلمة سر خاطئة. حاول مرة اخرى.', - 'Next Page': 'عرض الصفحة التالية', - 'OK': 'حسنا', - 'Open': 'فتح الملف', - 'Page Number': 'رقم الصفحة الحالية', - 'Previous Page': 'عرض الصفحة السابقة', - 'Go To Last Page': 'عرض الصفحة الأخيرة', - 'Zoom': 'تكبير', - 'Zoom In': 'تكبير في', - 'Zoom Out': 'تكبير خارج', - 'Page Thumbnails': 'مصغرات الصفحة', - 'Bookmarks': 'المرجعية', - 'Print': 'اطبع الملف', - 'Password Protected': 'كلمة المرور مطلوبة', - 'Copy': 'نسخ', - 'Text Selection': 'أداة اختيار النص', - 'Panning': 'وضع عموم', - 'Text Search': 'بحث عن نص', - 'Find in document': 'ابحث في المستند', - 'Match case': 'حالة مباراة', - 'Apply': 'تطبيق', - 'GoToPage': 'انتقل إلى صفحة', - 'No Matches': 'انتهى العارض من البحث في المستند. لم يتم العثور على مزيد من التطابقات', - 'No Text Found': 'لم يتم العثور على نص', - 'Undo': 'فك', - 'Redo': 'فعل ثانية', - 'Annotation': 'إضافة أو تعديل التعليقات التوضيحية', - 'Highlight': 'تسليط الضوء على النص', - 'Underline': 'تسطير النص', - 'Strikethrough': 'نص يتوسطه خط', - 'Delete': 'حذف التعليق التوضيحي', - 'Opacity': 'غموض', - 'Color edit': 'غير اللون', - 'Opacity edit': 'تغيير التعتيم', - 'highlight': 'تسليط الضوء', - 'underline': 'أكد', - 'strikethrough': 'يتوسطه', - // tslint:disable-next-line:max-line-length - 'Server error': 'خدمة الانترنت لا يستمع. يعتمد قوات الدفاع الشعبي المشاهد على خدمة الويب لجميع ميزاته. يرجى بدء خدمة الويب للمتابعة.', - 'Open text': 'افتح', - 'First text': 'الصفحة الأولى', - 'Previous text': 'الصفحة السابقة', - 'Next text': 'الصفحة التالية', - 'Last text': 'آخر صفحة', - 'Zoom in text': 'تكبير', - 'Zoom out text': 'تصغير', - 'Selection text': 'اختيار', - 'Pan text': 'مقلاة', - 'Print text': 'طباعة', - 'Search text': 'بحث', - 'Annotation Edit text': 'تحرير التعليق التوضيحي', - 'Line Thickness': 'سمك الخط', - 'Line Properties': 'خط الخصائص', - 'Start Arrow': 'ابدأ السهم', - 'End Arrow': 'نهاية السهم', - 'Line Style': 'أسلوب الخط', - 'Fill Color': 'ملء اللون', - 'Line Color': ' الخط اللون', - 'None': 'لا شيء', - 'Open Arrow': 'افتح', - 'Closed Arrow': 'مغلق', - 'Round Arrow': 'مستدير', - 'Square Arrow': 'مربع', - 'Diamond Arrow': 'الماس', - 'Cut': 'يقطع', - 'Paste': 'معجون', - 'Delete Context': 'حذف', - 'Properties': 'الخصائص', - 'Add Stamp': 'إضافة الطوابع', - 'Add Shapes': 'أضف الأشكال', - 'Stroke edit': 'تغيير لون السكتة الدماغية', - 'Change thickness': 'تغيير سمك الحدود', - 'Add line': 'إضافة خط', - 'Add arrow': 'سهم إضافة', - 'Add rectangle': 'أضف مستطيل', - 'Add circle': 'إضافة دائرة', - 'Add polygon': 'أضف مضلع', - 'Add Comments': 'أضف تعليقات', - 'Comments': 'تعليقات', - 'No Comments Yet': 'لا توجد تعليقات حتى الآن', - 'Accepted': 'وافقت', - 'Completed': 'منجز', - 'Cancelled': 'ألغيت', - 'Rejected': 'مرفوض', - 'Leader Length': 'زعيم الطول', - 'Scale Ratio': 'نسبة مقياس', - 'Calibrate': 'عاير', - 'Calibrate Distance': 'معايرة المسافة', - 'Calibrate Perimeter': 'معايرة محيط', - 'Calibrate Area': 'عاير منطقة', - 'Calibrate Radius': 'معايرة نصف القطر', - 'Calibrate Volume': 'معايرة الحجم', - 'Depth': 'عمق', - 'Closed': 'مغلق', - 'Round': 'مستدير', - 'Square': 'ميدان', - 'Diamond': 'الماس', - 'Edit': 'تصحيح', - 'Comment': 'تعليقات', - 'Comment Panel': 'لوحة التعليقات', - 'Set Status': 'تعيين الحالة', - 'Post': 'بريد', - 'Page': 'صفحة', - 'Add a comment': 'أضف تعليق', - 'Add a reply': 'أضف رد', - 'Import Annotations': 'استيراد التعليقات التوضيحية', - 'Export Annotations': 'شروح التصدير', - 'Add': 'أضف', - 'Clear': 'واضح', - 'Bold': 'بالخط العريض', - 'Italic': 'مائل', - 'Strikethroughs': 'يتوسطه', - 'Underlines': 'تحت الخط', - 'Superscript': 'حرف فوقي', - 'Subscript': 'الفرعية النصي', - 'Align left': 'محاذاة اليسار', - 'Align right': 'محاذاة اليمين', - 'Center': 'مركز', - 'Justify': 'برر', - 'Font color': 'لون الخط', - 'Text Align': 'محاذاة النص', - 'Text Properties': 'نوع الخط', - 'Draw Signature': 'ارسم التوقيع', - 'Create': 'خلق', - 'Font family': 'خط العائلة', - 'Font size': 'حجم الخط', - 'Free Text': 'نص حر', - 'Import Failed': 'نوع ملف سلمان أو اسم الملف غير صالح ؛ يرجى تحديد ملف سلمانصالح', - 'File not found': 'لم يتم العثور على ملف سلمان المستورد في الموقع المطلوب', - 'Export Failed': 'شل إجراء تصدير التعليقات التوضيحية ؛ يرجى التأكد من إضافة التعليقات التوضيحية بشكل صحيح', - 'Dynamic': 'متحرك', - 'Standard Business': 'الأعمال القياسية', - 'Sign Here': 'وقع هنا', - 'Custom Stamp': 'ختم مخصص', - 'InitialFieldDialogHeaderText': 'إضافة الأولية', - 'HandwrittenInitialDialogHeaderText': 'إضافة الأولية', - 'SignatureFieldDialogHeaderText': 'أضف التوقيع', - 'HandwrittenSignatureDialogHeaderText': 'أضف التوقيع', - 'Draw-hand Signature': 'يرسم', - 'Type Signature': 'نوع', - 'Upload Signature': 'تحميل', - 'Browse Signature Image': 'تصفح', - 'Save Signature': 'احفظ التوقيع', - 'Save Initial': 'حفظ الأولي', - 'Highlight context': 'تسليط الضوء', - 'Underline context': 'تسطير', - 'Strikethrough context': 'يتوسطه خط', - 'FormDesigner': 'إضافة وتحرير حقل النموذج', - 'SubmitForm': 'تقديم النموذج', - 'Search text': 'بحث', - 'Draw Ink': 'ارسم الحبر', - 'Revised': 'مراجعة', - 'Reviewed': 'تمت المراجعة', - 'Received': 'تم الاستلام', - 'Confidential': 'مؤتمن', - 'Approved': 'وافق', - 'Not Approved': 'غير مقبول', - 'Witness': 'الشاهد', - 'Initial Here': 'المبدئي هنا', - 'Draft': 'مشروع', - 'Final': 'أخير', - 'For Public Release': 'للنشر العام', - 'Not For Public Release': 'ليس للنشر العام', - 'For Comment': 'للتعليق', - 'Void': 'فارغ', - 'Preliminary Results': 'نتائج اولية', - 'Information Only': 'المعلومات فقط', - 'Enter Signature as Name': 'أدخل أسمك', - 'Textbox': 'مربع الكتابة', - 'Password': 'كلمه السر', - 'Check Box': 'خانة اختيار', - 'Radio Button': 'زر الراديو', - 'Dropdown': 'اسقاط', - 'List Box': 'مربع القائمة', - 'Signature': 'إمضاء', - 'Delete FormField': 'حذف حقل النموذج', - 'FormDesigner Edit text': 'إضافة وتحرير حقل النموذج', - 'in': 'في', - 'm': 'م', - 'ft_in': 'قدم', - 'ft': 'قدم', - 'p': 'ص', - 'cm': 'سم', - 'mm': 'مم', - 'pt': 'نقطة', - 'cu': 'مكعب', - 'sq': 'قدم مربع', - 'General': 'جنرال لواء', - 'Appearance': 'مظهر خارجي', - 'Options': 'والخيارات', - 'Textbox Properties': 'خصائص مربع النص', - 'Name': 'اسم', - 'Tooltip': 'تلميح', - 'Value': 'القيمة', - 'Form Field Visibility': 'رؤية حقل النموذج', - 'Read Only': 'يقرأ فقط', - 'Required': 'مطلوب', - 'Checked': 'التحقق', - 'Show Printing': 'عرض الطباعة', - 'Formatting': 'صيغة', - 'Fill': 'يملأ', - 'Border': 'الحدود', - 'Border Color': 'لون الحدود', - 'Thickness': 'السماكة', - 'Max Length': 'الحد الاقصى للطول', - 'List Item': 'اسم العنصر', - 'Export Value': 'قيمة البند', - 'Dropdown Item List': 'قائمة العناصر المنسدلة', - 'List Box Item List': 'قائمة عناصر مربع القائمة', - 'Delete Item': 'حذف', - 'Up': 'فوق', - 'Down': 'تحت', - 'Multiline': 'متعدد الأسطر', - 'Initial': 'أولي', - 'Export XFDF': 'تصدير التعليق التوضيحي إلى ملف XFDF', - 'Import XFDF': 'استيراد التعليقات التوضيحية من ملف XFDF', - 'Organize Pages': 'تنظيم الصفحات', - 'Insert Right': 'أدخل الحق', - 'Insert Left': 'أدخل اليسار', - 'Total': 'المجموع', - 'Pages': 'الصفحات', - 'Rotate Right': 'تدوير لليمين', - 'Rotate Left': 'استدر يسارا', - 'Delete Page': 'حذف الصفحة', - 'Delete Pages': 'حذف الصفحات', - 'Copy Page': 'انسخ الصفحة', - 'Copy Pages': 'نسخ الصفحات', - 'Save': 'يحفظ', - 'Save As': 'حفظ باسم', - 'Select All': 'اختر الكل', - 'Import Document': 'استيراد المستند', - 'Match any word': 'تطابق أي كلمة', - 'Client error': 'تم العثور على خطأ في جانب العميل. يرجى التحقق من رؤوس Ajax المخصصة في خاصية AjaxRequestSettings وطرق الويب في خاصية ServerActionSettings', - 'Cors policy error': 'تعذر استرداد المستند بسبب عنوان URL غير صالح أو قيود على الوصول. يرجى التحقق من عنوان URL للمستند والمحاولة مرة أخرى', - 'No More Matches': 'انتهى العارض من البحث في المستند. لم يتم العثور على تطابقات أخرى', - 'No Search Matches': 'لم يتم العثور على تطابقات', - 'No More Search Matches': 'لم يتم العثور على تطابقات أخرى', - 'Exact Matches': 'تطابقات دقيقة', - 'Total Matches': 'إجمالي التطابقات' - } - } -}); - -function App() { - return (
    -
    - {/* Render the PDF Viewer */} - - - -
    -
    ); -} -const root = ReactDOM.createRoot(document.getElementById('sample')); -root.render(); - -{% endraw %} -{% endhighlight %} -{% highlight js tabtitle="Server-Backed" %} -{% raw %} - -import * as ReactDOM from 'react-dom'; -import * as React from 'react'; -import './index.css'; -import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, - ThumbnailView, Print, TextSelection, TextSearch, Annotation, FormDesigner, FormFields, Inject } from '@syncfusion/ej2-react-pdfviewer'; -import {L10n} from '@syncfusion/ej2-base'; - -//PDF Viewer Arabic Sample Locale -L10n.load({ - 'ar-AE': { - 'PdfViewer' : { - 'PdfViewer': 'قوات الدفاع الشعبي المشاهد', - 'Cancel': 'إلغاء', - 'Download file': 'تحميل الملف', - 'Download': 'تحميل', - 'Enter Password': 'هذا المستند محمي بكلمة مرور. يرجى إدخال كلمة مرور.', - 'File Corrupted': 'ملف تالف', - 'File Corrupted Content': 'الملف تالف ولا يمكن فتحه.', - 'Fit Page': 'لائق بدنيا الصفحة', - 'Fit Width': 'لائق بدنيا عرض', - 'Automatic': 'تلقائي', - 'Go To First Page': 'عرض الصفحة الأولى', - 'Invalid Password': 'كلمة سر خاطئة. حاول مرة اخرى.', - 'Next Page': 'عرض الصفحة التالية', - 'OK': 'حسنا', - 'Open': 'فتح الملف', - 'Page Number': 'رقم الصفحة الحالية', - 'Previous Page': 'عرض الصفحة السابقة', - 'Go To Last Page': 'عرض الصفحة الأخيرة', - 'Zoom': 'تكبير', - 'Zoom In': 'تكبير في', - 'Zoom Out': 'تكبير خارج', - 'Page Thumbnails': 'مصغرات الصفحة', - 'Bookmarks': 'المرجعية', - 'Print': 'اطبع الملف', - 'Password Protected': 'كلمة المرور مطلوبة', - 'Copy': 'نسخ', - 'Text Selection': 'أداة اختيار النص', - 'Panning': 'وضع عموم', - 'Text Search': 'بحث عن نص', - 'Find in document': 'ابحث في المستند', - 'Match case': 'حالة مباراة', - 'Apply': 'تطبيق', - 'GoToPage': 'انتقل إلى صفحة', - 'No Matches': 'انتهى العارض من البحث في المستند. لم يتم العثور على مزيد من التطابقات', - 'No Text Found': 'لم يتم العثور على نص', - 'Undo': 'فك', - 'Redo': 'فعل ثانية', - 'Annotation': 'إضافة أو تعديل التعليقات التوضيحية', - 'Highlight': 'تسليط الضوء على النص', - 'Underline': 'تسطير النص', - 'Strikethrough': 'نص يتوسطه خط', - 'Delete': 'حذف التعليق التوضيحي', - 'Opacity': 'غموض', - 'Color edit': 'غير اللون', - 'Opacity edit': 'تغيير التعتيم', - 'highlight': 'تسليط الضوء', - 'underline': 'أكد', - 'strikethrough': 'يتوسطه', - // tslint:disable-next-line:max-line-length - 'Server error': 'خدمة الانترنت لا يستمع. يعتمد قوات الدفاع الشعبي المشاهد على خدمة الويب لجميع ميزاته. يرجى بدء خدمة الويب للمتابعة.', - 'Open text': 'افتح', - 'First text': 'الصفحة الأولى', - 'Previous text': 'الصفحة السابقة', - 'Next text': 'الصفحة التالية', - 'Last text': 'آخر صفحة', - 'Zoom in text': 'تكبير', - 'Zoom out text': 'تصغير', - 'Selection text': 'اختيار', - 'Pan text': 'مقلاة', - 'Print text': 'طباعة', - 'Search text': 'بحث', - 'Annotation Edit text': 'تحرير التعليق التوضيحي', - 'Line Thickness': 'سمك الخط', - 'Line Properties': 'خط الخصائص', - 'Start Arrow': 'ابدأ السهم', - 'End Arrow': 'نهاية السهم', - 'Line Style': 'أسلوب الخط', - 'Fill Color': 'ملء اللون', - 'Line Color': ' الخط اللون', - 'None': 'لا شيء', - 'Open Arrow': 'افتح', - 'Closed Arrow': 'مغلق', - 'Round Arrow': 'مستدير', - 'Square Arrow': 'مربع', - 'Diamond Arrow': 'الماس', - 'Cut': 'يقطع', - 'Paste': 'معجون', - 'Delete Context': 'حذف', - 'Properties': 'الخصائص', - 'Add Stamp': 'إضافة الطوابع', - 'Add Shapes': 'أضف الأشكال', - 'Stroke edit': 'تغيير لون السكتة الدماغية', - 'Change thickness': 'تغيير سمك الحدود', - 'Add line': 'إضافة خط', - 'Add arrow': 'سهم إضافة', - 'Add rectangle': 'أضف مستطيل', - 'Add circle': 'إضافة دائرة', - 'Add polygon': 'أضف مضلع', - 'Add Comments': 'أضف تعليقات', - 'Comments': 'تعليقات', - 'No Comments Yet': 'لا توجد تعليقات حتى الآن', - 'Accepted': 'وافقت', - 'Completed': 'منجز', - 'Cancelled': 'ألغيت', - 'Rejected': 'مرفوض', - 'Leader Length': 'زعيم الطول', - 'Scale Ratio': 'نسبة مقياس', - 'Calibrate': 'عاير', - 'Calibrate Distance': 'معايرة المسافة', - 'Calibrate Perimeter': 'معايرة محيط', - 'Calibrate Area': 'عاير منطقة', - 'Calibrate Radius': 'معايرة نصف القطر', - 'Calibrate Volume': 'معايرة الحجم', - 'Depth': 'عمق', - 'Closed': 'مغلق', - 'Round': 'مستدير', - 'Square': 'ميدان', - 'Diamond': 'الماس', - 'Edit': 'تصحيح', - 'Comment': 'تعليقات', - 'Comment Panel': 'لوحة التعليقات', - 'Set Status': 'تعيين الحالة', - 'Post': 'بريد', - 'Page': 'صفحة', - 'Add a comment': 'أضف تعليق', - 'Add a reply': 'أضف رد', - 'Import Annotations': 'استيراد التعليقات التوضيحية', - 'Export Annotations': 'شروح التصدير', - 'Add': 'أضف', - 'Clear': 'واضح', - 'Bold': 'بالخط العريض', - 'Italic': 'مائل', - 'Strikethroughs': 'يتوسطه', - 'Underlines': 'تحت الخط', - 'Superscript': 'حرف فوقي', - 'Subscript': 'الفرعية النصي', - 'Align left': 'محاذاة اليسار', - 'Align right': 'محاذاة اليمين', - 'Center': 'مركز', - 'Justify': 'برر', - 'Font color': 'لون الخط', - 'Text Align': 'محاذاة النص', - 'Text Properties': 'نوع الخط', - 'Draw Signature': 'ارسم التوقيع', - 'Create': 'خلق', - 'Font family': 'خط العائلة', - 'Font size': 'حجم الخط', - 'Free Text': 'نص حر', - 'Import Failed': 'نوع ملف سلمان أو اسم الملف غير صالح ؛ يرجى تحديد ملف سلمانصالح', - 'File not found': 'لم يتم العثور على ملف سلمان المستورد في الموقع المطلوب', - 'Export Failed': 'شل إجراء تصدير التعليقات التوضيحية ؛ يرجى التأكد من إضافة التعليقات التوضيحية بشكل صحيح', - 'Dynamic': 'متحرك', - 'Standard Business': 'الأعمال القياسية', - 'Sign Here': 'وقع هنا', - 'Custom Stamp': 'ختم مخصص', - 'InitialFieldDialogHeaderText': 'إضافة الأولية', - 'HandwrittenInitialDialogHeaderText': 'إضافة الأولية', - 'SignatureFieldDialogHeaderText': 'أضف التوقيع', - 'HandwrittenSignatureDialogHeaderText': 'أضف التوقيع', - 'Draw-hand Signature': 'يرسم', - 'Type Signature': 'نوع', - 'Upload Signature': 'تحميل', - 'Browse Signature Image': 'تصفح', - 'Save Signature': 'احفظ التوقيع', - 'Save Initial': 'حفظ الأولي', - 'Highlight context': 'تسليط الضوء', - 'Underline context': 'تسطير', - 'Strikethrough context': 'يتوسطه خط', - 'FormDesigner': 'إضافة وتحرير حقل النموذج', - 'SubmitForm': 'تقديم النموذج', - 'Search text': 'بحث', - 'Draw Ink': 'ارسم الحبر', - 'Revised': 'مراجعة', - 'Reviewed': 'تمت المراجعة', - 'Received': 'تم الاستلام', - 'Confidential': 'مؤتمن', - 'Approved': 'وافق', - 'Not Approved': 'غير مقبول', - 'Witness': 'الشاهد', - 'Initial Here': 'المبدئي هنا', - 'Draft': 'مشروع', - 'Final': 'أخير', - 'For Public Release': 'للنشر العام', - 'Not For Public Release': 'ليس للنشر العام', - 'For Comment': 'للتعليق', - 'Void': 'فارغ', - 'Preliminary Results': 'نتائج اولية', - 'Information Only': 'المعلومات فقط', - 'Enter Signature as Name': 'أدخل أسمك', - 'Textbox': 'مربع الكتابة', - 'Password': 'كلمه السر', - 'Check Box': 'خانة اختيار', - 'Radio Button': 'زر الراديو', - 'Dropdown': 'اسقاط', - 'List Box': 'مربع القائمة', - 'Signature': 'إمضاء', - 'Delete FormField': 'حذف حقل النموذج', - 'FormDesigner Edit text': 'إضافة وتحرير حقل النموذج', - 'in': 'في', - 'm': 'م', - 'ft_in': 'قدم', - 'ft': 'قدم', - 'p': 'ص', - 'cm': 'سم', - 'mm': 'مم', - 'pt': 'نقطة', - 'cu': 'مكعب', - 'sq': 'قدم مربع', - 'General': 'جنرال لواء', - 'Appearance': 'مظهر خارجي', - 'Options': 'والخيارات', - 'Textbox Properties': 'خصائص مربع النص', - 'Name': 'اسم', - 'Tooltip': 'تلميح', - 'Value': 'القيمة', - 'Form Field Visibility': 'رؤية حقل النموذج', - 'Read Only': 'يقرأ فقط', - 'Required': 'مطلوب', - 'Checked': 'التحقق', - 'Show Printing': 'عرض الطباعة', - 'Formatting': 'صيغة', - 'Fill': 'يملأ', - 'Border': 'الحدود', - 'Border Color': 'لون الحدود', - 'Thickness': 'السماكة', - 'Max Length': 'الحد الاقصى للطول', - 'List Item': 'اسم العنصر', - 'Export Value': 'قيمة البند', - 'Dropdown Item List': 'قائمة العناصر المنسدلة', - 'List Box Item List': 'قائمة عناصر مربع القائمة', - 'Delete Item': 'حذف', - 'Up': 'فوق', - 'Down': 'تحت', - 'Multiline': 'متعدد الأسطر', - 'Initial': 'أولي', - 'Export XFDF': 'تصدير التعليق التوضيحي إلى ملف XFDF', - 'Import XFDF': 'استيراد التعليقات التوضيحية من ملف XFDF', - 'Organize Pages': 'تنظيم الصفحات', - 'Insert Right': 'أدخل الحق', - 'Insert Left': 'أدخل اليسار', - 'Total': 'المجموع', - 'Pages': 'الصفحات', - 'Rotate Right': 'تدوير لليمين', - 'Rotate Left': 'استدر يسارا', - 'Delete Page': 'حذف الصفحة', - 'Delete Pages': 'حذف الصفحات', - 'Copy Page': 'انسخ الصفحة', - 'Copy Pages': 'نسخ الصفحات', - 'Save': 'يحفظ', - 'Save As': 'حفظ باسم', - 'Select All': 'اختر الكل', - 'Import Document': 'استيراد المستند', - 'Match any word': 'تطابق أي كلمة', - 'Client error': 'تم العثور على خطأ في جانب العميل. يرجى التحقق من رؤوس Ajax المخصصة في خاصية AjaxRequestSettings وطرق الويب في خاصية ServerActionSettings', - 'Cors policy error': 'تعذر استرداد المستند بسبب عنوان URL غير صالح أو قيود على الوصول. يرجى التحقق من عنوان URL للمستند والمحاولة مرة أخرى', - 'No More Matches': 'انتهى العارض من البحث في المستند. لم يتم العثور على تطابقات أخرى', - 'No Search Matches': 'لم يتم العثور على تطابقات', - 'No More Search Matches': 'لم يتم العثور على تطابقات أخرى', - 'Exact Matches': 'تطابقات دقيقة', - 'Total Matches': 'إجمالي التطابقات' - } - } -}); - -function App() { - return (
    -
    - {/* Render the PDF Viewer */} - - - -
    -
    ); -} -const root = ReactDOM.createRoot(document.getElementById('sample')); -root.render(); - -{% endraw %} -{% endhighlight %} -{% endtabs %} \ No newline at end of file From 4285dcbd7310d2ab9b515819b5b86497017b3696 Mon Sep 17 00:00:00 2001 From: SF4524LogeshKumar Date: Fri, 6 Mar 2026 10:43:18 +0530 Subject: [PATCH 2/5] 1012852: Resolved CI failures --- .../PDF/PDF-Viewer/react/Localization/default-language.md | 2 +- .../PDF/PDF-Viewer/react/Localization/new-language.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Document-Processing/PDF/PDF-Viewer/react/Localization/default-language.md b/Document-Processing/PDF/PDF-Viewer/react/Localization/default-language.md index 431e2f7c55..39ccf9aa4f 100644 --- a/Document-Processing/PDF/PDF-Viewer/react/Localization/default-language.md +++ b/Document-Processing/PDF/PDF-Viewer/react/Localization/default-language.md @@ -1,7 +1,7 @@ --- layout: post title: Localization in React PDF Viewer | Syncfusion -description: Learn about the default language culture and localization in Syncfusion React PDF Viewer component. +description: Learn here all about the default language culture and localization in Syncfusion React PDF Viewer component. platform: document-processing control: PDF Viewer documentation: ug diff --git a/Document-Processing/PDF/PDF-Viewer/react/Localization/new-language.md b/Document-Processing/PDF/PDF-Viewer/react/Localization/new-language.md index 4dae099c60..6390e9cdf3 100644 --- a/Document-Processing/PDF/PDF-Viewer/react/Localization/new-language.md +++ b/Document-Processing/PDF/PDF-Viewer/react/Localization/new-language.md @@ -22,9 +22,9 @@ Use the React PDF Viewer’s [locale](https://ej2.syncfusion.com/react/documenta - `@syncfusion/ej2-react-pdfviewer` installed in a React app. - (Optional) A list of keys you want to override. -## Quick start (set `de` – German) +## Quick start (set German) 1. **Load translations** with `L10n.load` at app start (only include the keys you want to change). -2. **Set the culture** by passing `locale="de"` to ``. +2. **Set the culture** by passing `locale` value to ``. 3. **Render the viewer** as usual. Missing keys will automatically fall back to `en-US`. {% tabs %} From 6e4b4db63c636910c99dcdb9f1652bcbc303396e Mon Sep 17 00:00:00 2001 From: SF4524LogeshKumar Date: Fri, 6 Mar 2026 19:21:28 +0530 Subject: [PATCH 3/5] 1012852: Updated the Proper Title for Localization --- Document-Processing-toc.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Document-Processing-toc.html b/Document-Processing-toc.html index 69d6b61ec6..eb04a0ffba 100644 --- a/Document-Processing-toc.html +++ b/Document-Processing-toc.html @@ -1081,7 +1081,7 @@
  • Download
  • Events
  • Text Selection
  • -
  • Localization +
  • Localization & Globalization
  • -
  • Accessibility
  • +
  • Accessibility Features
  • Theming and Styling
  • Context Menu