()
| 24 | } |
| 25 | |
| 26 | const getRootNotFoundError = () => { |
| 27 | const key = "error.dev.rootNotFound" as const |
| 28 | const locale = getLocale() |
| 29 | return locale === "zh" ? (zh[key] ?? en[key]) : en[key] |
| 30 | } |
| 31 | |
| 32 | const getStorage = (key: string) => { |
| 33 | if (typeof localStorage === "undefined") return null |