---
import themeConfig from '@/config'
// Language array with empty string as default locale
const langs = ['', ...themeConfig.global.moreLocale]
const currentLocale = themeConfig.global.locale
function getLanguageDisplayName(code: string) {
if (!code) {
return 'Default'
}
return new Intl.DisplayNames(['en'], { type: 'language' }).of(code) || code
}
---