mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-04 23:44:41 +00:00
Adds client-side i18n support, language settings, translated UI copy, and locale parity coverage.
15 lines
443 B
TypeScript
15 lines
443 B
TypeScript
import { describe, expect, it, vi } from "vitest";
|
|
import { observeI18nInit } from "./init";
|
|
|
|
describe("observeI18nInit", () => {
|
|
it("reports initialization failures", async () => {
|
|
const error = new Error("init failed");
|
|
const reportError = vi.fn();
|
|
|
|
observeI18nInit(Promise.reject(error), reportError);
|
|
await Promise.resolve();
|
|
|
|
expect(reportError).toHaveBeenCalledWith("[i18n] Failed to initialize", error);
|
|
});
|
|
});
|