Skip to content

Commit 5e27d14

Browse files
fix(settings): show the correct initial locale in Personal info
Signed-off-by: Josh <josh.t.richards@gmail.com>
1 parent d8d708e commit 5e27d14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/settings/lib/Settings/Personal/PersonalInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ private function getLocaleMap(IUser $user): array {
265265
}
266266

267267
$uid = $user->getUID();
268-
$userLocaleString = $this->config->getUserValue($uid, 'core', 'locale', $this->l10nFactory->findLocale());
269268
$userLang = $this->config->getUserValue($uid, 'core', 'lang', $this->l10nFactory->findLanguage());
269+
$userLocaleString = $this->config->getUserValue($uid, 'core', 'locale', $this->l10nFactory->findLocale($userLang));
270270
$localeCodes = $this->l10nFactory->findAvailableLocales();
271271
$userLocale = array_filter($localeCodes, fn ($value) => $userLocaleString === $value['code']);
272272

0 commit comments

Comments
 (0)