funkydan2 / alpha-church

Hugo theme for churches based on a html5up theme
https://alpha-church.netlify.app
Other
67 stars 58 forks source link

Google maps english only #10

Closed cunhazera closed 5 years ago

cunhazera commented 5 years ago

I'm using the google maps in a project, but the map is always in english. I'm using here: https://github.com/cunhazera/villa-hugo/blob/master/config.toml#L119

Is there some way to change the map language?

funkydan2 commented 5 years ago

Yep - it should be possible for us to make that an option.

According to google's documentation maps should automatically be localised based on the user's browser. Is that working?

Overriding will be really easy...but I'll only do it if the auto-detection isn't working or isn't appropriate.

cunhazera commented 5 years ago

I'm accessing this site but it's written Presbyterian Church in english, instead of Igreja Presbiteriana in portuguese. And yes, the browser is set to Brazilian Portuguese.

funkydan2 commented 5 years ago

Ok, I think this commit enables this.

You'll need to put two more settings under [params.map]

language = "pt"
region = "BR"

(Not 100% sure these are the settings you want...so you'll have to play around.)

Can you let me know if this works?


Two more things:

  1. I noticed that in your config.toml you've got some settings that won't get used. You can delete lines 118-122 (they're a duplicate of what is under [params.map]).
  2. (Not regarding this issue) since you forked the project, I noticed a few problems with the SCSS with how <h1> and the page navigation (for the bottom of blogs and sermons) was displayed. You might want to pull in my latest commits.
cunhazera commented 5 years ago

Ok, thanks for the commit.

I'll change all these stuff and tell you if worked.

cunhazera commented 5 years ago

@funkydan2 it worked perfectly!!