Altering language code?

Created on 12 July 2020, over 4 years ago
Updated 25 August 2023, about 1 year ago

Hello, and thank you for this useful module!

On my site, our language codes include the country code as well, for instance /en-ca and /en-gb. So, I'd like to strip the country code off before passing it to Cookiebot via the data-culture attribute.

I noticed there was a cookiebot-gtm-declaration.html.twig, so I tried creating a theme_preprocess_cookiebot_gtm_declaration(&$variables) in my .theme file (to alter the #language variable) but the function is not being called.

Do you have a suggestion for me?

Thanks!

πŸ’¬ Support request
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States JustMagicMaria

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024