| @@ -175,8 +175,15 @@ | ||
| 175 | 175 | |
| 176 | 176 | return $simple ? substr($acymLanguages['currentLanguage'], 0, 2) : $acymLanguages['currentLanguage']; |
| 177 | 177 | } |
| 178 | 178 | |
| 179 | +function acym_getSiteLanguageTag(bool $simple = false): string | |
| 180 | +{ | |
| 181 | + $currentLocale = acym_convertWPLocaleToAcyLocale(get_locale()); | |
| 182 | + | |
| 183 | + return $simple ? substr($currentLocale, 0, 2) : $currentLocale; | |
| 184 | +} | |
| 185 | + | |
| 179 | 186 | function acym_getCustomTranslation() |
| 180 | 187 | { |
| 181 | 188 | global $acymailingCustomTranslation; |
| 182 | 189 | if (isset($acymailingCustomTranslation)) { |