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

💻 Updated language dropdown #5429

Merged
merged 40 commits into from
May 6, 2024
Merged

💻 Updated language dropdown #5429

merged 40 commits into from
May 6, 2024

Conversation

Annelein
Copy link
Collaborator

@Annelein Annelein commented Apr 17, 2024

Fixes #5426
Fixes #5459

How to test

  1. Log out and go to languages in the menu bar. Click the "help us translate" button
  2. Search for a language with the English name

@Annelein Annelein changed the title 💻 Help us translate buttons 💻 'Help us translate' buttons Apr 17, 2024
@gisellandrade

This comment was marked as resolved.

@Annelein

This comment was marked as resolved.

@Felienne

This comment was marked as resolved.

@Annelein

This comment was marked as resolved.

@hasan-sh

This comment was marked as resolved.

@Annelein Annelein self-assigned this Apr 23, 2024
@Annelein
Copy link
Collaborator Author

As discussed:

@Annelein Annelein marked this pull request as draft April 23, 2024 14:34
@Annelein Annelein changed the title 💻 'Help us translate' buttons 💻 Updated language dropdown Apr 24, 2024
@Annelein Annelein removed their assignment Apr 24, 2024
@Annelein Annelein marked this pull request as ready for review April 24, 2024 11:22
@Annelein
Copy link
Collaborator Author

The tests are failing because of the iso639 import, i'm not sure why, if anyone can help out, would be great!

app.py Outdated Show resolved Hide resolved
app.py Outdated Show resolved Hide resolved
@Annelein Annelein requested a review from jpelay April 29, 2024 15:43
Copy link
Member

@jpelay jpelay left a 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 = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thanks

Copy link
Contributor

mergify bot commented May 6, 2024

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).

Copy link
Contributor

mergify bot commented May 6, 2024

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).

@mergify mergify bot merged commit 5622ba5 into main May 6, 2024
12 checks passed
@mergify mergify bot deleted the add-language-btn branch May 6, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

💻 When searching a language, show English option 💻 Add a new language button
5 participants