Text Part Language

toolbars.toolbar-1.text-part-language

Property NameTypeDefault

toolbars.toolbar-1.text-part-language

array

en, fa

This feature enables the ability to mark the language of selected text fragments, making it convenient to work with multilingual content.

By default, theis option is set to fa and en, indicating that Persian (Farsi) and English are the supported languages for the text part language feature within the toolbar. You can adjust this array to include additional language codes as needed.

To configure the supported languages for the text part language feature within Toolbar 1, update the value of toolbars.toolbar-1.text-part-language in the config/nova-ckeditor.php file with the desired language codes.

Example:

<?php

return [    
    'toolbars' => [
        'toolbar-1' => [
            'text-part-language' => [
                ['title' => 'Farsi', 'languageCode' => 'fa'],
                ['title' => 'English', 'languageCode' => 'en']
            ],
        ],
    ]
];

Last updated