chore: generate
This commit is contained in:
@@ -57,7 +57,7 @@ function detectLocale() {
|
||||
function UiI18nBridge(props: ParentProps) {
|
||||
const locale = createMemo(() => detectLocale())
|
||||
const t = (key: keyof typeof uiEn, params?: UiI18nParams) => {
|
||||
const value = locale() === "zh" ? uiZh[key] ?? uiEn[key] : uiEn[key]
|
||||
const value = locale() === "zh" ? (uiZh[key] ?? uiEn[key]) : uiEn[key]
|
||||
const text = value ?? String(key)
|
||||
return resolveTemplate(text, params)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user