Skip to content

[Fix included] Localizing the Google Map using Craft site locale #373

@rtrudel

Description

@rtrudel

Not sure how MR works, I drop the fix here, hoping magic happens.

File: /src/services/EmbedService.php somewhere near line 144

$params = http_build_query([
   'key' => $settings->getMapToken(),
   
   // add next line to make the map load using the site language
   'language' => Craft::$app->getLocale()->getLanguageID(),
   
   'callback' => $callbackName,
]);

I guess the same trick also applies to other map providers?

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions