mirror of
https://github.com/logto-io/logto.git
synced 2025-02-24 22:05:56 -05:00
refactor(console): remove deprecated languageKeys
(#2203)
This commit is contained in:
parent
61336dfbc8
commit
7fc0f43699
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
import { languageKeys } from '@logto/core-kit';
|
||||
import { builtInLanguages as builtInConsoleLanguages } from '@logto/phrases';
|
||||
import { useLogto } from '@logto/react';
|
||||
import { AppearanceMode } from '@logto/schemas';
|
||||
import { Nullable, Optional } from '@silverhand/essentials';
|
||||
|
@ -14,7 +14,7 @@ import useApi, { RequestError } from './use-api';
|
|||
import useLogtoUserId from './use-logto-user-id';
|
||||
|
||||
const userPreferencesGuard = z.object({
|
||||
language: z.enum(languageKeys).optional(),
|
||||
language: z.enum(builtInConsoleLanguages).optional(),
|
||||
appearanceMode: z.nativeEnum(AppearanceMode),
|
||||
experienceNoticeConfirmed: z.boolean().optional(),
|
||||
getStartedHidden: z.boolean().optional(),
|
||||
|
|
Loading…
Add table
Reference in a new issue