Skip to content

Fixes duplicate call of chooseLanguage when setting a language without subtag - #367

Merged
BenjaminVanRyseghem merged 2 commits into
BenjaminVanRyseghem:developfrom
LarsBauer:develop
Jul 13, 2018
Merged

BenjaminVanRyseghem merged 2 commits into
BenjaminVanRyseghem:developfrom
LarsBauer:develop

Conversation

@LarsBauer

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Owner

No problem 😄

@BenjaminVanRyseghem

Copy link
Copy Markdown
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