Currently, most of the CodeEditor interface is not localizable at all.
It would be great if we could translate the interface into languages other than English.
Currently, most of the CodeEditor interface is not localizable at all.
It would be great if we could translate the interface into languages other than English.
I'm not sure, but I think that the position of Ace on this is that any UI that is available is only a demonstration of what you can do with Ace. Thus if you need translations, you need to build your own translatable UI elements.
@Nemo_bis i suspect the user refers to either the find/replace widget, or the errors and/or warnings of the linters.
I meant to the toolbar, such as the search-and-replace function which is currently not translated to any language.
Ace supports i18n since v1.20.0 (and improved in the just released v1.33.0) so we can just propagate wgUserLanguage to Ace when CodeEditor sets it up, though the translations need to be submitted and merged into Ace first, of course, and propagating the fallback chain can be a challenge (another option is to build it into CodeEditor and make it translatable via TranslateWiki). (And I wonder if it works with RTL...)