0
Fork 0
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:
Xiao Yijun 2022-10-19 16:17:57 +08:00 committed by GitHub
parent 61336dfbc8
commit 7fc0f43699
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(),