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

Don't force english language #98

Merged
merged 1 commit into from
Aug 29, 2015

Conversation

ledermann
Copy link
Contributor

In #96, the languageoption was introduced. Unfortunately, it forces the language to be english, if the option is not set. This breaks the browser detection. Please see the docs:

By default, the Google Chart libraries are loaded with the locale specified by the browser

This PR removes the fallback

"\n google.load('visualization', '#{version}', {packages: ['#{package_name}'], language: '#{language}', callback: #{chart_function_name(element_id)}});"
language_opt = ", language: '#{language}'" if language

"\n google.load('visualization', '#{version}', {packages: ['#{package_name}']#{language_opt}, callback: #{chart_function_name(element_id)}});"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Inconsistent indentation detected.

From the docs: „By default, the Google Chart libraries are loaded with
the locale specified by the browser“.
@ledermann ledermann force-pushed the dont-force-english-language branch from 5a73f26 to e421285 Compare August 29, 2015 07:43
@winston
Copy link
Owner

winston commented Aug 29, 2015

Good catch! My bad! Merging and releasing a new patch. Thanks! 🙇

winston added a commit that referenced this pull request Aug 29, 2015
@winston winston merged commit ffae172 into winston:master Aug 29, 2015
@winston
Copy link
Owner

winston commented Aug 29, 2015

New version up on https://rubygems.org/gems/google_visualr

@ledermann
Copy link
Contributor Author

Wow, this was fast - thanks!

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.

3 participants