.Site.Language.LanguageCode is not standard

Hello everyone,

.Site.Language.LanguageCode is returning everything in lowercase.

<meta property="og:locale" content="en-us"/>

But based on ISO code standard, the two-letter country code should be upper case.

<meta property="og:locale" content="en-US"/>

or

<meta property="og:locale" content="fr-FR"/>

Any advice please?
Thanks

As per the following note in this section of the Docs:

Please note: use lowercase language codes, even when using regional languages (ie. use pt-pt instead of pt-PT). Currently Hugo language internals lowercase language codes, which can cause conflicts with settings like defaultContentLanguage which are not lowercased. Please track the evolution of this issue in Hugo repository issue tracker

1 Like

Thanks, I have left a comment on the GitHub issue. This is indeed a problem.