(config: ResolvedConfig)
| 54 | !("cite" in config.locale) |
| 55 | |
| 56 | const select = (config: ResolvedConfig): Locale.Resolved => { |
| 57 | if (isStandalone(config)) return config.locale |
| 58 | if (selector === undefined) return configured |
| 59 | try { |
| 60 | const locale = selector() |
| 61 | return locale === undefined ? defaultLocale : normalizeLocale(locale) |
| 62 | } catch { |
| 63 | // a throw from a read would replace the TraversalError assert throws |
| 64 | return defaultLocale |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | const write = ( |
| 69 | error: ArkError, |
nothing calls this directly
no test coverage detected