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

Resolve switching languages problem in settings fragment #5560

Merged
merged 3 commits into from
Mar 22, 2024

Conversation

rohit9625
Copy link
Contributor

@rohit9625 rohit9625 commented Feb 17, 2024

Description (required)

Fixes #5501

What changes did you make and why?
I added a method createLocale, for creating a Locale based on language codes specifically for those with '-'(hyphen).
Because the Local object can have three parameters code, country, and variant, so we need to split language code before passing it.

I also added some tests for the createLocale method.

Tests performed (required)

Tested prodDebug on Samsung A14 with API level 34.

Screenshots (for UI changes only)

@srishti-R
Copy link
Contributor

srishti-R commented Feb 22, 2024

Review by student - Works for me!
Before:

2024_02_22_14_48_08_trim.mp4

After:

2024_02_22_14_55_07_trim.mp4

@rohit9625
Copy link
Contributor Author

Thank you for reviewing it @srishti-R :)

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

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

Working great, thanks! :-)

@nicolas-raoul nicolas-raoul merged commit 7e5789d into commons-app:main Mar 22, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Switching languages doesn't seem to work properly
3 participants