()
| 56 | }; |
| 57 | return { |
| 58 | async init() { |
| 59 | if (state.initCtx) { |
| 60 | return state.initCtx; |
| 61 | } |
| 62 | state.initCtx = await lDefinition.init?.(); |
| 63 | return state.initCtx as C; |
| 64 | }, |
| 65 | setDefaultLocale(locale) { |
| 66 | if (state.defaultLocale) { |
| 67 | throw new Error("Default locale already set"); |