chore: generate
This commit is contained in:
parent
233d003b49
commit
bb8bf32abe
20 changed files with 161 additions and 123 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue