Trying to have language suffix (en_EN)

I need to dynamically add locale to metadata og:locale i use $language = $page->language(); but only have the prefix (en), need to have en_EN Thanks for any tips

Then you should use locale base language types in the system config. ie. en_EN rather than just en to define your english language.