Skip to content

Conversation

@LarsBauer
Copy link
Contributor

Fixes a duplicate call of chooseLanguage when setting a language without subtag (e.g. "en"). To prevent the assignment of currentLanguageTag with non matching tag I added a missing return statement in the setLanguage method of numbro.

@BenjaminVanRyseghem
Copy link
Owner

good catch!!

Could you add a test covering this case? That would prevent having the same issue later on 😄

Also, please add yourself to the AUTHORS file 😄

@LarsBauer
Copy link
Contributor Author

Thank you for your quick response! 😄

I added the missing test case. Eager to fix this issue I totally forgot to read your contributor guideline. Shame on me...

@BenjaminVanRyseghem BenjaminVanRyseghem merged commit 675b697 into BenjaminVanRyseghem:develop Jul 13, 2018
@BenjaminVanRyseghem
Copy link
Owner

No problem 😄

@BenjaminVanRyseghem
Copy link
Owner

in v2.1.1

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.

2 participants