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

Remove country from locale key before calling Google translate #292

Merged
merged 1 commit into from
Jul 23, 2018

Conversation

atd
Copy link
Contributor

@atd atd commented Jul 23, 2018

Fixes #286


# Convert 'es-ES' to 'es'
%i[from to].each do |key|
opts[key] = opts[key].split('-').first
Copy link
Owner

Choose a reason for hiding this comment

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

Google Translate supports zh-CN and zh-TW

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed

@atd atd force-pushed the master branch 2 times, most recently from af96438 to 6be1bb0 Compare July 23, 2018 14:42
@glebm glebm merged commit 0f940e5 into glebm:master Jul 23, 2018
@glebm glebm added the bug label Jul 23, 2018
@glebm
Copy link
Owner

glebm commented Jul 23, 2018

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants