Search results

Globalization

Localization

The RichTextEditor provides an option to localize its strings; it is used to adapting the editor to a particular local language. By default, the editor will use the US English (en-US) as its language. Please find the table with a list of keys and their corresponding values for the default language (en-US).

'en-US': {
        'richtexteditor': {
            alignments: 'Alignments',
            justifyleft: 'JustifyLeft',
            justifycenter: "JustifyCenter",
            justifyright: "Justify Right",
            justifyfull: "Justify Full",
            formats: 'Formats',
            fontname: "Font Name",
            fontsize: "Font Size",
            fontcolor: "Font Color",
            backgroundcolor: "Background color",
            bold: "Bold",
            italic: "Italic",
            underline: "Underline",
            strikethrough: "Strikethrough",
            clearall: "Clear All",
            clearformat: "Clear Format",
            cut: "Cut",
            copy: "Copy",
            paste: "Paste",
            unorderedlist: "unordered list",
            orderedlist: "ordered list",
            indent: "Increase Indent",
            outdent: "Decrease Indent",
            undo: "Undo",
            redo: "Redo",
            superscript: "Superscript",
            subscript: "Subscript",
            createlink: "Insert link",
            removelink: "remove link",
            openlink: "Open link",
            editlink: "Edit link",
            image: "Insert image",
            replace: 'Replace',
            align: 'Align',
            caption: 'Caption',
            remove: 'Remove',
            insertlink: 'insertlink',
            display: 'Display',
            alttext: 'Alternative Text',
            dimension: 'Dimension',
            fullscreen: 'Full Screen',
            maximize: 'Maximize',
            minimize: 'Minimize',
            zoomin: 'Zoom In',
            zoomout: 'Zoom Out',
            uppercase: "Upper Case",
            lowercase: "Lower Case",
            print: 'Print',
            sourcecode: 'Source Code',
            preview: 'Preview',
            viewside: 'View Side',
            insertcode: 'Insert Code'
        }
    }

To localize the editor’s strings with your own localization, copy the default language informations and localize the strings in the values column. For example, to localize the editor in German language (“de-DE”).

'de-DE': {
            'richtexteditor': {
                alignments: 'Alignments',
                justifyLeft: 'Ausrichten von Text links',
                justifyCenter: "Text-Zentrum",
                justifyRight: "Ausrichten von Text rechts",
                justifyFull: "rechtfertigen",
                fontName: "Wählen Sie Schriftfamilie",
                fontSize: "Wählen Sie Schriftgröße",
                fontColor: "Wählen Sie die Farbe",
                backgroundColor: "Hintergrundfarbe",
                bold: "fett",
                italic: "kursiv",
                underline: "unterstreichen",
                strikethrough: "Durchgestrichen",
                clearAll: "Alles",
                clearFormat: "Klar Format",
                cut: "schneiden",
                copy: "Kopieren",
                paste: "Paste",
                unorderedList: "Legen Sie ungeordnete Liste",
                orderedList: "Geordnete Liste einfügen",
                indent: "Einzug",
                outdent: "Einzug verkleinern",
                undo: "lösen",
                redo: "Wiederherstellen",
                superscript: "Überschrift",
                subscript: "index",
                createLink: "Einfügen / Hyperlink Bearbeiten",
                removeLink: "fjern Hyperlink",
                openLink: "Open link",
                editLink: "Edit link",
                image: "Bild einfügen",
                replace: 'ersetzen',
                align: 'ausrichten',
                caption: 'Bildbeschriftung',
                formats: 'Formats',
                remove: 'Löschen',
                insertLink: 'Link einfügen',
                display: 'Anzeige',
                alttext: 'alternativer Text',
                dimension: 'Größe',
                fullscreen: 'Vollbild',
                maximize: 'Maximieren',
                minimize: 'minimieren',
                zoomIn: 'hineinzoomen',
                zoomOut: 'Rauszoomen',
                upperCase: "Großbuchstaben",
                lowerCase: "Kleinbuchstaben",
                print: 'Drucken',
                sourcecode: 'Quellcode',
                preview: 'Vorschau',
                viewside: 'Seite anzeigen',
                insertcode: 'Code eingeben',
                linkText: 'Displaytekst',
                linkTooltipLabel: 'tooltip',
                linkWebUrl: 'Webadres',
                linkOpenInNewWindow: 'Open de link in een nieuw venster',
                linkHeader: 'Link invoegen',
                dialogInsert: 'invoegen',
                dialogCancel: 'Annuleer',
                dialogUpdate: 'Bijwerken',
                imageHeader: 'Voeg afbeelding in',
                imageLinkHeader: 'U kunt ook een link van internet opgeven',
                imageUploadMessage: 'Zet hier een afbeelding neer of klik om te uploaden',
                imageDeviceUploadMessage: 'Klik hier om te uploaden',
                imageAlternateText: 'Alternatieve tekst',
                alternateHeader: 'Alternatieve tekst',
                browse: 'Blader',
                imageUrl: 'URL',
                imageCaption: 'onderschrift',
                imageSizeHeader: 'Afbeeldingsgrootte',
                imageHeight: 'Hoogte',
                imageWidth: 'Breedte'
            }
        },

The below sample demonstrate that, the RichTextEditor control rendered with ‘de-DE’ German language using locale property.

tagHelper
<ejs-richtexteditor id="locale" value="@ViewBag.value" locale="de-DE">
</ejs-richtexteditor>
<script>
    ej.base.L10n.load({
        'de-DE': {
            'richtexteditor': {
                alignments: 'Alignments',
                justifyLeft: 'Ausrichten von Text links',
                justifyCenter: "Text-Zentrum",
                justifyRight: "Ausrichten von Text rechts",
                justifyFull: "rechtfertigen",
                fontName: "Wählen Sie Schriftfamilie",
                fontSize: "Wählen Sie Schriftgröße",
                fontColor: "Wählen Sie die Farbe",
                backgroundColor: "Hintergrundfarbe",
                bold: "fett",
                italic: "kursiv",
                underline: "unterstreichen",
                strikethrough: "Durchgestrichen",
                clearAll: "Alles",
                clearFormat: "Klar Format",
                cut: "schneiden",
                copy: "Kopieren",
                paste: "Paste",
                unorderedList: "Legen Sie ungeordnete Liste",
                orderedList: "Geordnete Liste einfügen",
                indent: "Einzug",
                outdent: "Einzug verkleinern",
                undo: "lösen",
                redo: "Wiederherstellen",
                superscript: "Überschrift",
                subscript: "index",
                createLink: "Einfügen / Hyperlink Bearbeiten",
                removeLink: "fjern Hyperlink",
                openLink: "Open link",
                editLink: "Edit link",
                image: "Bild einfügen",
                replace: 'ersetzen',
                align: 'ausrichten',
                caption: 'Bildbeschriftung',
                formats: 'Formats',
                remove: 'Löschen',
                insertLink: 'Link einfügen',
                display: 'Anzeige',
                alttext: 'alternativer Text',
                dimension: 'Größe',
                fullscreen: 'Vollbild',
                maximize: 'Maximieren',
                minimize: 'minimieren',
                zoomIn: 'hineinzoomen',
                zoomOut: 'Rauszoomen',
                upperCase: "Großbuchstaben",
                lowerCase: "Kleinbuchstaben",
                print: 'Drucken',
                sourcecode: 'Quellcode',
                preview: 'Vorschau',
                viewside: 'Seite anzeigen',
                insertcode: 'Code eingeben',
                linkText: 'Displaytekst',
                linkTooltipLabel: 'tooltip',
                linkWebUrl: 'Webadres',
                linkOpenInNewWindow: 'Open de link in een nieuw venster',
                linkHeader: 'Link invoegen',
                dialogInsert: 'invoegen',
                dialogCancel: 'Annuleer',
                dialogUpdate: 'Bijwerken',
                imageHeader: 'Voeg afbeelding in',
                imageLinkHeader: 'U kunt ook een link van internet opgeven',
                imageUploadMessage: 'Zet hier een afbeelding neer of klik om te uploaden',
                imageDeviceUploadMessage: 'Klik hier om te uploaden',
                imageAlternateText: 'Alternatieve tekst',
                alternateHeader: 'Alternatieve tekst',
                browse: 'Blader',
                imageUrl: 'URL',
                imageCaption: 'onderschrift',
                imageSizeHeader: 'Afbeeldingsgrootte',
                imageHeight: 'Hoogte',
                imageWidth: 'Breedte'
            }
        }
    });
</script>

RTL

Specifies the direction of the RichTextEditor component using the enableRtl property. For writing systems that require it like Arabic, Hebrew, etc., the direction can be switched to right-to-left.

tagHelper
<ejs-richtexteditor id="rtl" value="@ViewBag.value" enableRtl="true"></ejs-richtexteditor>

enableRtl property will not change based on locale property.

Contents
Contents