Adds client-side i18n support, language settings, translated UI copy, and locale parity coverage.
11 lines
280 B
TypeScript
11 lines
280 B
TypeScript
type InitReporter = (message: string, error: unknown) => void;
|
|
|
|
export function observeI18nInit(
|
|
initPromise: Promise<unknown>,
|
|
report: InitReporter = console.error,
|
|
): void {
|
|
initPromise.catch((error: unknown) => {
|
|
report("[i18n] Failed to initialize", error);
|
|
});
|
|
}
|