mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 22:02:16 +00:00
fix(i18n): one sentence each for the read-failure lines
The ended-session and spent-budget lines each ran to two sentences; the action sits on the button, so each is one sentence now. The sign-in label's key is common.signIn, matching what it says. The French strings added in this release use vous like the rest of the bundle, and the Korean sleep-score gap labels take the polite form the bundle uses.
This commit is contained in:
1 parent
923249dbf6
commit
3e6a33df35
10 files changed
+30
-30
No files matched your search
@@ -91,7 +91,7 @@ describe.each([
|
||||
|
||||
it("says a spent budget without offering a retry", () => {
|
||||
const html = render(new ApiError("Too many", 429));
|
||||
expect(html).toContain("Too many requests just now.");
|
||||
expect(html).toContain("There are too many requests just now");
|
||||
expect(html).not.toContain("retry");
|
||||
expect(html).not.toContain("Could not load");
|
||||
expect(html).not.toContain("Something on our side.");
|
||||
@@ -100,7 +100,7 @@ describe.each([
|
||||
it("offers sign-in for an ended session, never a blank", () => {
|
||||
const html = render(new ApiError("Unauthorized", 401));
|
||||
expect(html).not.toBe("");
|
||||
expect(html).toContain("Your session has ended.");
|
||||
expect(html).toContain("Your session has ended");
|
||||
expect(html).toContain('data-slot="query-error-sign-in"');
|
||||
expect(html).not.toContain("retry");
|
||||
});
|
||||
|
||||
@@ -45,7 +45,7 @@ export function useReadFailure(
|
||||
kind: "unauthenticated",
|
||||
message: t("common.sessionEnded"),
|
||||
action: {
|
||||
label: t("common.signInAgain"),
|
||||
label: t("common.signIn"),
|
||||
onClick: () => window.location.assign(signInHref()),
|
||||
kind: "signIn",
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user