Closed cunhazera closed 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.
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.
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:
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]
).<h1>
and the page navigation (for the bottom of blogs and sermons) was displayed. You might want to pull in my latest commits.Ok, thanks for the commit.
I'll change all these stuff and tell you if worked.
@funkydan2 it worked perfectly!!
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?