-
Notifications
You must be signed in to change notification settings - Fork 289
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
💻 Updated language dropdown #5429
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
As discussed:
|
The tests are failing because of the iso639 import, i'm not sure why, if anyone can help out, would be great! |
Co-authored-by: Jesús Pelay <45865185+jpelay@users.noreply.github.com>
Co-authored-by: Jesús Pelay <45865185+jpelay@users.noreply.github.com>
…to add-language-btn
…to add-language-btn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
@@ -2444,7 +2445,31 @@ def all_countries(): | |||
def other_languages(lang_param=None): | |||
"""Return a list of language objects that are NOT the current language.""" | |||
current_lang = lang_param or g.lang | |||
return [make_lang_obj(lang) for lang in ALL_LANGUAGES.keys() if lang != current_lang] | |||
# these are the languages that iso doesn't have the English translations for | |||
non_iso_transl = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Thanks
Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork). |
Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork). |
Fixes #5426
Fixes #5459
How to test