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

Fix country code emoji when using ISO-3166-1 #42

Merged
merged 1 commit into from
May 26, 2019
Merged

Fix country code emoji when using ISO-3166-1 #42

merged 1 commit into from
May 26, 2019

Conversation

AmineI
Copy link

@AmineI AmineI commented Apr 10, 2019

Fixes the issue seen in #39 causing the country emoji test to fail when using languages like "pt-BR", (ISO-639-1 followed by ISO-3166-1).

According to the TMDB API documentation, it won't be accurate when the translation defaults to another language.

The last example to show you would be a request for pt-US. This is not a valid translation and will default to pt-PT.

In the case above, we would get the US flag emoji anyway, and it won't be possible to fix this if the API doesn't return us the actual applied code to use.

@AmineI
Copy link
Author

AmineI commented Apr 10, 2019

(Didn't bump the version number as it'd conflict with my other pending PR depending on which one was applied first)

@nliautaud nliautaud merged commit 07b1a4e into nliautaud:0.5 May 26, 2019
@nliautaud
Copy link
Owner

👍

@nliautaud nliautaud added this to the v0.5 milestone May 26, 2019
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