Completa i18n IT/EN/FR/DE/ES su sito pubblico, area autenticata e admin.
Tutte le view marketing, legali, viewer, dashboard e admin usano t(); mailer utente-facing e flash localizzati; admin con LocaleResolver e selettore lingua. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -164,13 +164,13 @@ class Recording < ApplicationRecord
|
||||
end
|
||||
|
||||
def status_label
|
||||
return "Eliminato" if deleted?
|
||||
return "Scaduto" if status == "expired"
|
||||
return "Errore" if status == "failed"
|
||||
return "In elaborazione" if status == "processing"
|
||||
return "Scade presto" if expires_at.present? && expires_at <= 7.days.from_now
|
||||
return I18n.t("recordings.status.deleted") if deleted?
|
||||
return I18n.t("recordings.status.expired") if status == "expired"
|
||||
return I18n.t("recordings.status.failed") if status == "failed"
|
||||
return I18n.t("recordings.status.processing") if status == "processing"
|
||||
return I18n.t("recordings.status.expiring_soon") if expires_at.present? && expires_at <= 7.days.from_now
|
||||
|
||||
"Disponibile"
|
||||
I18n.t("recordings.status.available")
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user