Fix html lang (#291)

This commit is contained in:
Simon 2025-08-14 15:50:40 +01:00 committed by GitHub
parent a3319b2fa7
commit ba7af69592
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,7 +107,7 @@ export const APP_LOCALE = (process.env.NEXT_PUBLIC_LOCALE || 'en-us')
// Accepts both `en-us` and `EN_US`
.toLocaleLowerCase()
.replace('_', '-');
export const HTML_LANG = (APP_LOCALE.split('-')[1] || 'en');
export const HTML_LANG = (APP_LOCALE.split('-')[0] || 'en');
export const CUSTOM_NAV_TITLE =
process.env.NEXT_PUBLIC_NAV_TITLE;
@ -490,4 +490,3 @@ export const IS_SITE_READY =
APP_CONFIGURATION.hasAdminUser;
export type AppConfiguration = typeof APP_CONFIGURATION;