mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 17:22:19 +00:00
refactor(i18n): show the installations status through translateStatusMessage
This commit is contained in:
1 parent
dc13be07c0
commit
e4e7b32289
5 files changed
+11
-22
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user