Globalization in EJ2 TypeScript Rich text editor control

Localization

The Rich Text Editor 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',
        'linkText': 'Display Text',
        'linkTooltipLabel': 'Title',
        'linkWebUrl': 'Web Address',
        'linkTitle': 'Enter a title',
        'linkOpenInNewWindow': 'Open Link in New Window',
        'linkHeader': 'Insert Link',
        'dialogInsert': 'Insert',
        'dialogCancel': 'Cancel',
        'dialogUpdate': 'Update',
        'imageHeader': 'Insert Image',
        'imageLinkHeader': 'You can also provide a link from the web',
        'mdimageLink': 'Please provide a URL for your image',
        'imageUploadMessage': 'Drop image here or browse to upload',
        'imageDeviceUploadMessage': 'Click here to upload',
        'imageAlternateText': 'Alternate Text',
        'alternateHeader': 'Alternative Text',
        'browse': 'Browse',
        'imageCaption': 'Caption',
        'imageSizeHeader': 'Image Size',
        'imageHeight': 'Height',
        'imageWidth': 'Width',
        'textPlaceholder': 'Enter Text',
        'inserttablebtn': 'Insert Table',
        'tabledialogHeader': 'Insert Table',
        'tableWidth': 'Width',
        'cellpadding': 'Cell Padding',
        'cellspacing': 'Cell Spacing',
        'columns': 'Number of columns',
        'rows': 'Number of rows',
        'tableRows': 'Table Rows',
        'tableColumns': 'Table Columns',
        'tableCellHorizontalAlign': 'Table Cell Horizontal Align',
        'tableCellVerticalAlign': 'Table Cell Vertical Align',
        'createTable': 'Create Table',
        'removeTable': 'Remove Table',
        'tableHeader': 'Table Header',
        'tableRemove': 'Table Remove',
        'tableCellBackground': 'Table Cell Background',
        'tableEditProperties': 'Table Edit Properties',
        'styles': 'Styles',
        'insertColumnLeft': 'Insert Column Left',
        'insertColumnRight': 'Insert Column Right',
        'deleteColumn': 'Delete Column',
        'insertRowBefore': 'Insert Row Before',
        'insertRowAfter': 'Insert Row After',
        'deleteRow': 'Delete Row',
        'tableEditHeader': 'Edit Table',
        'TableHeadingText': 'Heading',
        'TableColText': 'Col',
        'imageInsertLinkHeader': 'Insert Link',
        'editImageHeader': 'Edit Image',
        'alignmentsDropDownLeft': 'Align Left',
        'alignmentsDropDownCenter': 'Align Center',
        'alignmentsDropDownRight': 'Align Right',
        'alignmentsDropDownJustify': 'Align Justify',
        'imageDisplayDropDownInline': 'Inline',
        'imageDisplayDropDownBreak': 'Break',
        'tableInsertRowDropDownBefore': 'Insert row before',
        'tableInsertRowDropDownAfter': 'Insert row after',
        'tableInsertRowDropDownDelete': 'Delete row',
        'tableInsertColumnDropDownLeft': 'Insert column left',
        'tableInsertColumnDropDownRight': 'Insert column right',
        'tableInsertColumnDropDownDelete': 'Delete column',
        'tableVerticalAlignDropDownTop': 'Align Top',
        'tableVerticalAlignDropDownMiddle': 'Align Middle',
        'tableVerticalAlignDropDownBottom': 'Align Bottom',
        'tableStylesDropDownDashedBorder': 'Dashed Borders',
        'tableStylesDropDownAlternateRows': 'Alternate Rows',
        'pasteFormat': 'Paste Format',
        'pasteFormatContent': 'Choose the formatting action',
        'plainText': 'Plain Text',
        'cleanFormat': 'Clean',
        'keepFormat': 'Keep',
        'formatsDropDownParagraph': 'Paragraph',
        'formatsDropDownCode': 'Code',
        'formatsDropDownQuotation': 'Quotation',
        'formatsDropDownHeading1': 'Heading 1',
        'formatsDropDownHeading2': 'Heading 2',
        'formatsDropDownHeading3': 'Heading 3',
        'formatsDropDownHeading4': 'Heading 4',
        'fontNameSegoeUI': 'Segoe UI',
        'fontNameArial': 'Arial',
        'fontNameGeorgia': 'Georgia',
        'fontNameImpact': 'Impact',
        'fontNameTahoma': 'Tahoma',
        'fontNameTimesNewRoman': 'Times New Roman',
        'fontNameVerdana': 'Verdana',
        'numberFormatListNumber': 'Number',
        'numberFormatListLowerAlpha': 'LowerAlpha',
        'numberFormatListUpperAlpha': 'UpperAlpha',
        'numberFormatListLowerRoman': 'LowerRoman',
        'numberFormatListUpperRoman': 'UpperRoman',
        'numberFormatListLowerGreek': 'LowerGreek',
        'bulletFormatListDisc': 'Disc',
        'bulletFormatListCircle': 'Circle',
        'bulletFormatListSquare': 'Square',
        'numberFormatListNone': 'None',
        'bulletFormatListNone':'None',
        'formatPainter': 'Format Painter',
        'emojiPicker': 'Emoji Picker',
        'embeddedCode': 'Embedded Code',
        'pasteEmbeddedCodeHere': 'Paste Embedded Code here',
        'emojiPickerTypeToFind': 'Type to find',
        'emojiPickerNoResultFound': 'No results found',
        'emojiPickerTrySomethingElse': 'Try something else',
    }
}

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': 'Link einfügen',
        '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',
        'textPlaceholder': 'Text eingeben',
        'inserttablebtn': 'Tabelle einfügen',
        'tabledialogHeader': 'Tabelle einfügen',
        'tableWidth': 'Breite',
        'cellpadding': 'Zellauffüllung',
        'cellspacing': 'Zellabstand',
        'columns': 'Anzahl der Spalten',
        'rows': 'Reihenanzahl',
        'tableRows': 'Tabellenzeilen',
        'tableColumns': 'Tabellenspalten',
        'tableCellHorizontalAlign': 'Horizontale Ausrichtung der Tabellenzelle',
        'tableCellVerticalAlign': 'Vertikale Ausrichtung der Tabellenzelle',
        'createTable': 'Tabelle erstellen',
        'removeTable': 'Tabelle entfernen',
        'tableHeader': 'Tabellenkopfzeile',
        'tableRemove': 'Tabelle entfernen',
        'tableCellBackground': 'Tabellenzellenhintergrund',
        'tableEditProperties': 'Eigenschaften der Tabellenbearbeitung',
        'styles': 'Styles',
        'insertColumnLeft': 'Spalte links einfügen',
        'insertColumnRight': 'Spalte rechts einfügen',
        'deleteColumn': 'Spalte löschen',
        'insertRowBefore': 'Zeile vor einfügen',
        'insertRowAfter': 'Zeile einfügen nach',
        'deleteRow': 'Zeile löschen',
        'tableEditHeader': 'Tabelle bearbeiten',
        'TableHeadingText': 'Überschrift',
        'TableColText': 'Col',
        'imageInsertLinkHeader': 'Link einfügen',
        'editImageHeader': 'Bild bearbeiten',
        'alignmentsDropDownLeft': 'Linksbündig',
        'alignmentsDropDownCenter': 'Im Zentrum anordnen',
        'alignmentsDropDownRight': 'Rechts ausrichten',
        'alignmentsDropDownJustify': 'Justize ausrichten',
        'imageDisplayDropDownInline': 'In der Reihe',
        'imageDisplayDropDownBreak': 'Brechen',
        'tableInsertRowDropDownBefore': 'Reihe vorher einfügen',
        'tableInsertRowDropDownAfter': 'Zeile danach einfügen',
        'tableInsertRowDropDownDelete': 'Zeile löschen',
        'tableInsertColumnDropDownLeft': 'Spalte links einfügen',
        'tableInsertColumnDropDownRight': 'Spalte rechts einfügen',
        'tableInsertColumnDropDownDelete': 'Spalte löschen',
        'tableVerticalAlignDropDownTop': 'Top ausrichten',
        'tableVerticalAlignDropDownMiddle': 'Mitte ausrichten',
        'tableVerticalAlignDropDownBottom': 'Unten ausrichten',
        'tableStylesDropDownDashedBorder': 'Gestrichelte Grenzen',
        'tableStylesDropDownAlternateRows': 'Alternative Zeilen',
        'pasteFormat': 'Format einfügen',
        'pasteFormatContent': 'Wählen Sie die Formatierungsaktion aus',
        'plainText': 'Einfacher Text',
        'cleanFormat': 'sauber',
        'keepFormat': 'Behalten',
        'formatsDropDownParagraph': 'Absatz',
        'formatsDropDownCode': 'Kodex',
        'formatsDropDownQuotation': 'Zitat',
        'formatsDropDownHeading1': 'Überschrift 1',
        'formatsDropDownHeading2': 'Überschrift 2',
        'formatsDropDownHeading3': 'Überschrift 3',
        'formatsDropDownHeading4': 'Überschrift 4',
        'fontNameSegoeUI': 'Segoe UI',
        'fontNameArial': 'Arial',
        'fontNameGeorgia': 'Georgia',
        'fontNameImpact': 'Einschlag',
        'fontNameTahoma': 'Tahoma',
        'fontNameTimesNewRoman': 'Mal Neu römisch',
        'fontNameVerdana': 'Verdana'
        }
    },

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

import { enableRipple } from '@syncfusion/ej2-base';
import { L10n } from '@syncfusion/ej2-base';
enableRipple(true);

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': 'Link einfügen',
            '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',
            'textPlaceholder': 'Text eingeben',
            'inserttablebtn': 'Tabelle einfügen',
            'tabledialogHeader': 'Tabelle einfügen',
            'tableWidth': 'Breite',
            'cellpadding': 'Zellauffüllung',
            'cellspacing': 'Zellabstand',
            'columns': 'Anzahl der Spalten',
            'rows': 'Reihenanzahl',
            'tableRows': 'Tabellenzeilen',
            'tableColumns': 'Tabellenspalten',
            'tableCellHorizontalAlign': 'Horizontale Ausrichtung der Tabellenzelle',
            'tableCellVerticalAlign': 'Vertikale Ausrichtung der Tabellenzelle',
            'createTable': 'Tabelle erstellen',
            'removeTable': 'Tabelle entfernen',
            'tableHeader': 'Tabellenkopfzeile',
            'tableRemove': 'Tabelle entfernen',
            'tableCellBackground': 'Tabellenzellenhintergrund',
            'tableEditProperties': 'Eigenschaften der Tabellenbearbeitung',
            'styles': 'Styles',
            'insertColumnLeft': 'Spalte links einfügen',
            'insertColumnRight': 'Spalte rechts einfügen',
            'deleteColumn': 'Spalte löschen',
            'insertRowBefore': 'Zeile vor einfügen',
            'insertRowAfter': 'Zeile einfügen nach',
            'deleteRow': 'Zeile löschen',
            'tableEditHeader': 'Tabelle bearbeiten',
            'TableHeadingText': 'Überschrift',
            'TableColText': 'Col',
            'imageInsertLinkHeader': 'Link einfügen',
            'editImageHeader': 'Bild bearbeiten',
            'alignmentsDropDownLeft': 'Linksbündig',
            'alignmentsDropDownCenter': 'Im Zentrum anordnen',
            'alignmentsDropDownRight': 'Rechts ausrichten',
            'alignmentsDropDownJustify': 'Justize ausrichten',
            'imageDisplayDropDownInline': 'In der Reihe',
            'imageDisplayDropDownBreak': 'Brechen',
            'tableInsertRowDropDownBefore': 'Reihe vorher einfügen',
            'tableInsertRowDropDownAfter': 'Zeile danach einfügen',
            'tableInsertRowDropDownDelete': 'Zeile löschen',
            'tableInsertColumnDropDownLeft': 'Spalte links einfügen',
            'tableInsertColumnDropDownRight': 'Spalte rechts einfügen',
            'tableInsertColumnDropDownDelete': 'Spalte löschen',
            'tableVerticalAlignDropDownTop': 'Top ausrichten',
            'tableVerticalAlignDropDownMiddle': 'Mitte ausrichten',
            'tableVerticalAlignDropDownBottom': 'Unten ausrichten',
            'tableStylesDropDownDashedBorder': 'Gestrichelte Grenzen',
            'tableStylesDropDownAlternateRows': 'Alternative Zeilen',
            'pasteFormat': 'Format einfügen',
            'pasteFormatContent': 'Wählen Sie die Formatierungsaktion aus',
            'plainText': 'Einfacher Text',
            'cleanFormat': 'sauber',
            'keepFormat': 'Behalten',
            'formatsDropDownParagraph': 'Absatz',
            'formatsDropDownCode': 'Kodex',
            'formatsDropDownQuotation': 'Zitat',
            'formatsDropDownHeading1': 'Überschrift 1',
            'formatsDropDownHeading2': 'Überschrift 2',
            'formatsDropDownHeading3': 'Überschrift 3',
            'formatsDropDownHeading4': 'Überschrift 4',
            'fontNameSegoeUI': 'Segoe UI',
            'fontNameArial': 'Arial',
            'fontNameGeorgia': 'Georgia',
            'fontNameImpact': 'Einschlag',
            'fontNameTahoma': 'Tahoma',
            'fontNameTimesNewRoman': 'Mal Neu römisch',
            'fontNameVerdana': 'Verdana'
           }
       }
});

import { RichTextEditor, Toolbar, Link, Image, HtmlEditor, QuickToolbar } from '@syncfusion/ej2-richtexteditor';
RichTextEditor.Inject(Toolbar, Link, Image, HtmlEditor, QuickToolbar);


let defaultRTE: RichTextEditor = new RichTextEditor({locale: 'de-DE'});
defaultRTE.appendTo('#defaultRTE');
<!DOCTYPE html>
<html lang="en">

<head>
    <title>Essential JS 2 Rich Text Editor</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="Typescript UI Controls" />
    <meta name="author" content="Syncfusion" />
    <link href="index.css" rel="stylesheet" />
    <link href="https://cdn.syncfusion.com/ej2/25.1.35/ej2-base/styles/material.css" rel="stylesheet" />
    <link href="https://cdn.syncfusion.com/ej2/25.1.35/ej2-richtexteditor/styles/material.css" rel="stylesheet" />
    <link href="https://cdn.syncfusion.com/ej2/25.1.35/ej2-inputs/styles/material.css" rel="stylesheet" />
    <link href="https://cdn.syncfusion.com/ej2/25.1.35/ej2-lists/styles/material.css" rel="stylesheet" />
    <link href="https://cdn.syncfusion.com/ej2/25.1.35/ej2-navigations/styles/material.css" rel="stylesheet" />
    <link href="https://cdn.syncfusion.com/ej2/25.1.35/ej2-popups/styles/material.css" rel="stylesheet" />
     <link href="https://cdn.syncfusion.com/ej2/25.1.35/ej2-buttons/styles/material.css" rel="stylesheet" />
    <link href="https://cdn.syncfusion.com/ej2/25.1.35/ej2-splitbuttons/styles/material.css" rel="stylesheet" />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.38/system.js"></script>
    <script src="systemjs.config.js"></script>
<script src="https://cdn.syncfusion.com/ej2/syncfusion-helper.js" type ="text/javascript"></script>
</head>

<body>
    <div id='loader'>Loading....</div>
    <div id='container'>
        <div id='defaultRTE'>
            <p>The Rich Text Editor is WYSIWYG ("what you see is what you get") editor useful to create and edit content, and return the valid <a href="https://ej2.syncfusion.com/home/" target="_blank">HTML markup</a> or <a href="https://ej2.syncfusion.com/home/" target="_blank">markdown</a> of the content</p>                
            <p><b>Key features:</b></p>
              <ul><li><p>Provides &lt;IFRAME&gt; and &lt;DIV&gt; modes</p></li>
              <li><p>Capable of handling markdown editing.</p></li>
              <li><p>Contains a modular library to load the necessary functionality on demand.</p></li>
              <li><p>Provides a fully customizable toolbar.</p></li>
              <li><p>Provides HTML view to edit the source directly for developers.</p></li>
              <li><p>Supports third-party library integration.</p></li>
              <li><p>Allows preview of modified content before saving it.</p></li>
              <li><p>Handles images, hyperlinks, video, hyperlinks, uploads, etc.</p></li>
              </ul>
        </div>
    </div>
    <style>
        .e-rte-quick-popup .e-rte-quick-toolbar .e-rotate-left::before {
            content: "\e76e";
        }
    
        .e-rte-quick-popup .e-rte-quick-toolbar .e-rotate-right::before {
            content: "\e726";
        }
    </style>
</body>

</html>

RTL

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

It will not change based on the locale property.

import { enableRipple } from '@syncfusion/ej2-base';
enableRipple(true);
/**
 * Rich Text Editor default sample
 */
import { RichTextEditor, Toolbar, Link, Image, HtmlEditor, QuickToolbar } from '@syncfusion/ej2-richtexteditor';
RichTextEditor.Inject(Toolbar, Link, Image, HtmlEditor, QuickToolbar);

let defaultRTE: RichTextEditor = new RichTextEditor({enableRtl : true });
defaultRTE.appendTo('#defaultRTE');
<!DOCTYPE html>
<html lang="en">

<head>
    <title>Essential JS 2 Rich Text Editor</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="Typescript UI Controls" />
    <meta name="author" content="Syncfusion" />
    <link href="index.css" rel="stylesheet" />
    <link href="https://cdn.syncfusion.com/ej2/25.1.35/ej2-base/styles/material.css" rel="stylesheet" />
    <link href="https://cdn.syncfusion.com/ej2/25.1.35/ej2-richtexteditor/styles/material.css" rel="stylesheet" />
    <link href="https://cdn.syncfusion.com/ej2/25.1.35/ej2-inputs/styles/material.css" rel="stylesheet" />
    <link href="https://cdn.syncfusion.com/ej2/25.1.35/ej2-lists/styles/material.css" rel="stylesheet" />
    <link href="https://cdn.syncfusion.com/ej2/25.1.35/ej2-navigations/styles/material.css" rel="stylesheet" />
    <link href="https://cdn.syncfusion.com/ej2/25.1.35/ej2-popups/styles/material.css" rel="stylesheet" />
     <link href="https://cdn.syncfusion.com/ej2/25.1.35/ej2-buttons/styles/material.css" rel="stylesheet" />
    <link href="https://cdn.syncfusion.com/ej2/25.1.35/ej2-splitbuttons/styles/material.css" rel="stylesheet" />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/0.19.38/system.js"></script>
    <script src="systemjs.config.js"></script>
<script src="https://cdn.syncfusion.com/ej2/syncfusion-helper.js" type ="text/javascript"></script>
</head>

<body>
    <div id='loader'>Loading....</div>
    <div id='container'>
        <div id='defaultRTE'>
            <p>The Rich Text Editor is WYSIWYG ("what you see is what you get") editor useful to create and edit content, and return the valid <a href="https://ej2.syncfusion.com/home/" target="_blank">HTML markup</a> or <a href="https://ej2.syncfusion.com/home/" target="_blank">markdown</a> of the content</p>                
            <p><b>Key features:</b></p>
              <ul><li><p>Provides &lt;IFRAME&gt; and &lt;DIV&gt; modes</p></li>
              <li><p>Capable of handling markdown editing.</p></li>
              <li><p>Contains a modular library to load the necessary functionality on demand.</p></li>
              <li><p>Provides a fully customizable toolbar.</p></li>
              <li><p>Provides HTML view to edit the source directly for developers.</p></li>
              <li><p>Supports third-party library integration.</p></li>
              <li><p>Allows preview of modified content before saving it.</p></li>
              <li><p>Handles images, hyperlinks, video, hyperlinks, uploads, etc.</p></li>
              </ul>
        </div>
    </div>
    <style>
        .e-rte-quick-popup .e-rte-quick-toolbar .e-rotate-left::before {
            content: "\e76e";
        }
    
        .e-rte-quick-popup .e-rte-quick-toolbar .e-rotate-right::before {
            content: "\e726";
        }
    </style>
</body>

</html>

enableRtl property will not change based on locale property.