(o)
| 27 | } |
| 28 | |
| 29 | export function t(o) { |
| 30 | if (typeof o === "string") return o; |
| 31 | if (typeof o === "object") { |
| 32 | for (let key of [currentLangKey, ...LANG_KEY]) { |
| 33 | if (key in o && o[key] != "") { |
| 34 | return o[key]; |
| 35 | } |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | return "?"; |
| 40 | } |