From 7a84cb34334d4de9a5a872cd227471853f2f7c57 Mon Sep 17 00:00:00 2001 From: Rodrigo Borba Date: Sun, 1 Mar 2026 22:51:33 -0300 Subject: [PATCH] fix(captain): Move NOTIFICATIONS key settings to correct correct namespace in i18n. --- .../dashboard/i18n/locale/en/captain.json | 80 +++++++++--------- .../dashboard/i18n/locale/pt_BR/captain.json | 82 +++++++++---------- 2 files changed, 81 insertions(+), 81 deletions(-) diff --git a/app/javascript/dashboard/i18n/locale/en/captain.json b/app/javascript/dashboard/i18n/locale/en/captain.json index 85fce456a..ea724918f 100644 --- a/app/javascript/dashboard/i18n/locale/en/captain.json +++ b/app/javascript/dashboard/i18n/locale/en/captain.json @@ -298,6 +298,46 @@ "LABEL": "Available for agent sending" } } + }, + "NOTIFICATIONS": { + "TITLE": "Automatic Notifications", + "DESCRIPTION": "Configure messages sent automatically before or after the guest's arrival.", + "LOADING": "Loading notifications...", + "ADD": "Add notification", + "ACTIVE": "Active", + "INACTIVE": "Inactive", + "DIRECTION": { + "BEFORE": "before", + "AFTER": "after", + "OF_ARRIVAL": "arrival" + }, + "FORM": { + "LABEL_PLACEHOLDER": "Template name (e.g. Arrival Instructions)", + "CONTENT_PLACEHOLDER": "Message to send... Use {{guest_name}}, {{check_in_time}}, {{suite_name}}", + "SEND": "Send", + "MINUTES": "min", + "CANCEL": "Cancel", + "SAVE": "Save" + }, + "CREATE": { + "SUCCESS": "Notification created successfully!", + "ERROR": "Error creating notification. Please try again." + }, + "UPDATE": { + "SUCCESS": "Notification updated!", + "ERROR": "Error updating notification." + }, + "DELETE": { + "SUCCESS": "Notification removed.", + "ERROR": "Error removing notification." + }, + "INBOX_LABEL": "Select inbox", + "NO_CAPTAIN_INBOXES": "No inboxes with Captain configured.", + "SELECT_INBOX_HINT": "Click an inbox above to view and configure its templates.", + "EMPTY": { + "TITLE": "No templates configured", + "DESC": "Create automatic message templates for this inbox." + } } }, "CAPTAIN": { @@ -444,46 +484,6 @@ "SAVE": "Save FAQ", "SUCCESS": "FAQ created successfully!", "ERROR": "Error creating FAQ. Please try again." - }, - "NOTIFICATIONS": { - "TITLE": "Automatic Notifications", - "DESCRIPTION": "Configure messages sent automatically before or after the guest's arrival.", - "LOADING": "Loading notifications...", - "ADD": "Add notification", - "ACTIVE": "Active", - "INACTIVE": "Inactive", - "DIRECTION": { - "BEFORE": "before", - "AFTER": "after", - "OF_ARRIVAL": "arrival" - }, - "FORM": { - "LABEL_PLACEHOLDER": "Template name (e.g. Arrival Instructions)", - "CONTENT_PLACEHOLDER": "Message to send... Use {{guest_name}}, {{check_in_time}}, {{suite_name}}", - "SEND": "Send", - "MINUTES": "min", - "CANCEL": "Cancel", - "SAVE": "Save" - }, - "CREATE": { - "SUCCESS": "Notification created successfully!", - "ERROR": "Error creating notification. Please try again." - }, - "UPDATE": { - "SUCCESS": "Notification updated!", - "ERROR": "Error updating notification." - }, - "DELETE": { - "SUCCESS": "Notification removed.", - "ERROR": "Error removing notification." - }, - "INBOX_LABEL": "Select inbox", - "NO_CAPTAIN_INBOXES": "No inboxes with Captain configured.", - "SELECT_INBOX_HINT": "Click an inbox above to view and configure its templates.", - "EMPTY": { - "TITLE": "No templates configured", - "DESC": "Create automatic message templates for this inbox." - } } } } diff --git a/app/javascript/dashboard/i18n/locale/pt_BR/captain.json b/app/javascript/dashboard/i18n/locale/pt_BR/captain.json index d3b3806dd..78c0a4938 100644 --- a/app/javascript/dashboard/i18n/locale/pt_BR/captain.json +++ b/app/javascript/dashboard/i18n/locale/pt_BR/captain.json @@ -298,6 +298,47 @@ "LABEL": "Disponível para envio pelos agentes" } } + }, + "NOTIFICATIONS": { + "TITLE": "Notificações Automáticas", + "DESCRIPTION": "Configure mensagens automáticas enviadas antes ou depois da chegada do hóspede.", + "LOADING": "Carregando notificações...", + "ADD": "Adicionar notificação", + "ACTIVE": "Ativo", + "INACTIVE": "Inativo", + "DIRECTION": { + "BEFORE": "antes", + "AFTER": "depois", + "OF_ARRIVAL": "da chegada" + }, + "TIMING_LABEL": "da chegada", + "FORM": { + "LABEL_PLACEHOLDER": "Nome do template (ex: Orientações de Chegada)", + "CONTENT_PLACEHOLDER": "Mensagem a enviar... Use {{guest_name}}, {{check_in_time}}, {{suite_name}}", + "SEND": "Enviar", + "MINUTES": "min", + "CANCEL": "Cancelar", + "SAVE": "Salvar" + }, + "CREATE": { + "SUCCESS": "Notificação criada com sucesso!", + "ERROR": "Erro ao criar notificação. Tente novamente." + }, + "UPDATE": { + "SUCCESS": "Notificação atualizada!", + "ERROR": "Erro ao atualizar notificação." + }, + "DELETE": { + "SUCCESS": "Notificação removida.", + "ERROR": "Erro ao remover notificação." + }, + "INBOX_LABEL": "Selecione a caixa de entrada", + "NO_CAPTAIN_INBOXES": "Nenhuma caixa de entrada com Captain configurado.", + "SELECT_INBOX_HINT": "Clique em uma caixa de entrada acima para ver e configurar os templates.", + "EMPTY": { + "TITLE": "Nenhum template configurado", + "DESC": "Crie templates de mensagem automática para esta caixa de entrada." + } } }, "CAPTAIN": { @@ -444,47 +485,6 @@ "SAVE": "Salvar FAQ", "SUCCESS": "FAQ criado com sucesso!", "ERROR": "Erro ao criar FAQ. Tente novamente." - }, - "NOTIFICATIONS": { - "TITLE": "Notificações Automáticas", - "DESCRIPTION": "Configure mensagens automáticas enviadas antes ou depois da chegada do hóspede.", - "LOADING": "Carregando notificações...", - "ADD": "Adicionar notificação", - "ACTIVE": "Ativo", - "INACTIVE": "Inativo", - "DIRECTION": { - "BEFORE": "antes", - "AFTER": "depois", - "OF_ARRIVAL": "da chegada" - }, - "TIMING_LABEL": "da chegada", - "FORM": { - "LABEL_PLACEHOLDER": "Nome do template (ex: Orientações de Chegada)", - "CONTENT_PLACEHOLDER": "Mensagem a enviar... Use {{guest_name}}, {{check_in_time}}, {{suite_name}}", - "SEND": "Enviar", - "MINUTES": "min", - "CANCEL": "Cancelar", - "SAVE": "Salvar" - }, - "CREATE": { - "SUCCESS": "Notificação criada com sucesso!", - "ERROR": "Erro ao criar notificação. Tente novamente." - }, - "UPDATE": { - "SUCCESS": "Notificação atualizada!", - "ERROR": "Erro ao atualizar notificação." - }, - "DELETE": { - "SUCCESS": "Notificação removida.", - "ERROR": "Erro ao remover notificação." - }, - "INBOX_LABEL": "Selecione a caixa de entrada", - "NO_CAPTAIN_INBOXES": "Nenhuma caixa de entrada com Captain configurado.", - "SELECT_INBOX_HINT": "Clique em uma caixa de entrada acima para ver e configurar os templates.", - "EMPTY": { - "TITLE": "Nenhum template configurado", - "DESC": "Crie templates de mensagem automática para esta caixa de entrada." - } } } }