fix(mobile): sort language keys

This commit is contained in:
Stephen Zhou
2025-04-02 10:24:34 +08:00
parent 9e4b7a50cf
commit d27e5aba03
4 changed files with 19 additions and 17 deletions
+4 -3
View File
@@ -2,9 +2,9 @@ import type { z } from "zod"
import type { languageSchema } from "./hono"
export type SupportedLanguage = z.infer<typeof languageSchema>
export const LANGUAGE_MAP: Record<
SupportedLanguage,
export type SupportedActionLanguage = z.infer<typeof languageSchema>
export const ACTION_LANGUAGE_MAP: Record<
SupportedActionLanguage,
{
label: string
value: string
@@ -106,3 +106,4 @@ export const LANGUAGE_MAP: Record<
code: "tur",
},
}
export const ACTION_LANGUAGE_KEYS = Object.keys(ACTION_LANGUAGE_MAP) as SupportedActionLanguage[]