mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 14:32:03 +00:00
fix(i18n): say "back online" once in the offline strip
The offline strip joins two sentences, and both ended on "once you're back online"; in French it ran to four lines on a phone, and the Russian one was ungrammatical. The first sentence now only says that changes can't be saved.
This commit is contained in:
1 parent
b617c1f88e
commit
fd92e9fd23
11 files changed
+14
-13
No files matched your search
@@ -46,17 +46,18 @@ describe("<OfflineBanner>", () => {
|
||||
it("ships the EN copy for `offlineBanner.message`", () => {
|
||||
// The copy must not over-promise auto-save: offline mutations now
|
||||
// fail fast (networkMode "always") rather than queue, so the banner states
|
||||
// the honest thing.
|
||||
// the honest thing. "Once you're back online" is said by the sentence
|
||||
// after it, once.
|
||||
const en = loadMessages("en");
|
||||
expect(en.offlineBanner.message).toBe(
|
||||
"No connection: changes can't be saved until you're back online.",
|
||||
"No connection: changes can't be saved.",
|
||||
);
|
||||
});
|
||||
|
||||
it("ships the DE copy for `offlineBanner.message`", () => {
|
||||
const de = loadMessages("de");
|
||||
expect(de.offlineBanner.message).toBe(
|
||||
"Keine Verbindung: Änderungen können erst gespeichert werden, wenn du wieder online bist.",
|
||||
"Keine Verbindung: Änderungen können nicht gespeichert werden.",
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user