Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to translate language names in the language plugin #5411

Open
Comandeer opened this issue Jan 26, 2023 · 0 comments
Open

Add ability to translate language names in the language plugin #5411

Comandeer opened this issue Jan 26, 2023 · 0 comments
Labels
accessibility Issue related to accessibility. plugin:language The plugin which probably causes the issue. status:confirmed An issue confirmed by the development team. support:2 An issue reported by a commercially licensed client. type:feature A feature request.

Comments

@Comandeer
Copy link
Member

Type of report

Feature request

Provide description of the new feature

At the moment the default list of languages is hardcoded right inside the plugin →

var languagesConfigStrings = ( editor.config.language_list || [ 'ar:Arabic:rtl', 'fr:French', 'es:Spanish' ] ),

However, the fact that all languages are defined by the ISO-639-1 codes means that it should be possible to provide translations for their names (Library of Congress provides translations for English, French and German) in the plugin's lang files. It should be even possible to simplify the format of the config.language_list configuration variable from <languageCode>:<languageLabel>[:<textDirection>] to <languageCode>[:<textDirection>].

@Comandeer Comandeer added type:feature A feature request. status:confirmed An issue confirmed by the development team. accessibility Issue related to accessibility. plugin:language The plugin which probably causes the issue. labels Jan 26, 2023
@martynawierzbicka martynawierzbicka added the support:2 An issue reported by a commercially licensed client. label Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Issue related to accessibility. plugin:language The plugin which probably causes the issue. status:confirmed An issue confirmed by the development team. support:2 An issue reported by a commercially licensed client. type:feature A feature request.
Projects
None yet
Development

No branches or pull requests

2 participants