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

Keyboard layout in the Language widget #90

Closed
Osyx opened this issue Dec 27, 2024 · 0 comments · Fixed by #91
Closed

Keyboard layout in the Language widget #90

Osyx opened this issue Dec 27, 2024 · 0 comments · Fixed by #91

Comments

@Osyx
Copy link
Contributor

Osyx commented Dec 27, 2024

What is the request?.
I want to be able to access the keyboard layout from the lang array in the LanguageWidget.

Why is it useful?
Some people use different layouts with the same language, like this:
image

In those cases the current options returned on the lang array, are not enough to see what the current layout is. For example, in the image shown, the language component would only show e.g. en-GB in both of those cases, even though en-SE and en-US would give better info that what kind of layout the user currently is writing in.

How could it be implemented?
The current objects stored in the lang array contains

{
  'language_code': language_code,
  'country_code': country_code,
  'full_name': full_name,
  'native_country_name': native_country_name.value,
  'native_lang_name': native_lang_name.value
}

and that could be extended with keyboard_layout which would return the current layout like se-SV or just SV, en-US, US or some other identifier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant