fix(notifications): a notice keeps what to say and says it in the reader's language when shown
This commit is contained in:
@@ -37,6 +37,7 @@ import VerifyBanner from "./VerifyBanner";
|
||||
// pulls the release-notes loader into the eager App chunk and defeats the lazy ReleaseNotes
|
||||
// split. FRONTEND_VERSION equals the newest release note's version by release convention (both bump together).
|
||||
import { FRONTEND_VERSION } from "../lib/version";
|
||||
import { msg } from "../lib/notifications";
|
||||
|
||||
// The page modules (and their side rails) are code-split per route: each module's definition imports
|
||||
// them lazily (features/navigation/moduleRegistry), and so does the feed's for the channel page. App
|
||||
@@ -94,7 +95,7 @@ export default function App() {
|
||||
// Also from the signed-out login page, where the save 401s — `req` marks that as handled, so
|
||||
// the reporter stays quiet there.
|
||||
saveLanguage(queryClient, code).catch((e: unknown) =>
|
||||
notifyActionError(e, t("errors.writeFailed.prefs")),
|
||||
notifyActionError(e, msg("errors.writeFailed.prefs")),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user