From cb4c2adafa45aa34977ed85339e130a51ce441fc Mon Sep 17 00:00:00 2001 From: Josh Date: Sun, 29 Dec 2024 12:33:29 -0500 Subject: [PATCH] fix(settings): show the correct initial locale in Personal info Signed-off-by: Josh --- apps/settings/lib/Settings/Personal/PersonalInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/settings/lib/Settings/Personal/PersonalInfo.php b/apps/settings/lib/Settings/Personal/PersonalInfo.php index 8974d54d45e58..7d16c9645a999 100644 --- a/apps/settings/lib/Settings/Personal/PersonalInfo.php +++ b/apps/settings/lib/Settings/Personal/PersonalInfo.php @@ -324,8 +324,8 @@ private function getLocaleMap(IUser $user): array { } $uid = $user->getUID(); - $userLocaleString = $this->config->getUserValue($uid, 'core', 'locale', $this->l10nFactory->findLocale()); $userLang = $this->config->getUserValue($uid, 'core', 'lang', $this->l10nFactory->findLanguage()); + $userLocaleString = $this->config->getUserValue($uid, 'core', 'locale', $this->l10nFactory->findLocale($userLang)); $localeCodes = $this->l10nFactory->findAvailableLocales(); $userLocale = array_filter($localeCodes, fn ($value) => $userLocaleString === $value['code']);