mirror of
https://github.com/nextcloud/server.git
synced 2026-06-16 20:19:48 -04:00
fix(settings): show the correct initial locale in Personal info
Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
parent
cfd31b4f13
commit
cb4c2adafa
1 changed files with 1 additions and 1 deletions
|
|
@ -324,8 +324,8 @@ class PersonalInfo implements ISettings {
|
|||
}
|
||||
|
||||
$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']);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue