Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I would like to get CKEditor to use the current user interface language in my multilingual website. In the Interface Language configuration there is no "Auto" selection. I have to set the language to a single value. Can we add this?
Comments
Comment #1
TwoDThere are a couple of issues about improving language support in the queue, but to make this effective we'll have to add code which scans each editor library and its plugins to make sure there actually is a full set of translation files for all the languages the editor could switch to. If we don't, the editor would simply crash when an unsupported language gets activated.
You can already implement your own logic for this if you'd like, with the help of hook_wysiwyg_editor_settings_alter().
Something like:
Will that work for now?
Comment #2
shadysamir CreditAttribution: shadysamir commentedThank you. This is exactly what I needed. I don't know why I didn't see this earlier.
Comment #3
Rudi Teschner CreditAttribution: Rudi Teschner commentedSuggestion works for me too. Thanks. :)