feat: add user locale setting

This commit is contained in:
steven
2023-09-02 14:10:03 +08:00
parent 96c1901dce
commit 98cb5a2292
7 changed files with 222 additions and 42 deletions

View File

@ -31,6 +31,8 @@ func (s *Store) UpsertUserSetting(ctx context.Context, upsert *storepb.UserSetti
return nil, err
}
valueString = string(valueBytes)
} else if upsert.Key == storepb.UserSettingKey_USER_SETTING_LOCALE {
valueString = upsert.GetLocaleUserSetting().String()
} else {
return nil, errors.New("invalid user setting key")
}