refactor(i18n): show the installations status through translateStatusMessage

This commit is contained in:
German Khokhlov committed 2026-11-18 16:52:52 +04:00
1 parent dc13be07c0
commit e4e7b32289
5 files changed
+11 -22

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ const FALLBACK_REASON = msg('Overpass temporarily unavailable');
* @param {number} [now]
* @returns {{text: string, reason?: string, seconds?: number}|{count: number, km: ?number}}
*/
export function describeInstallationFeedback(stats = {}, now = Date.now()) {
function describeInstallationFeedback(stats = {}, now = Date.now()) {
const reason = REASONS[stats.failureReason] || FALLBACK_REASON;
if (stats.loading)
return {