The personal finance app for everyone (by everyone)
Ruby
Drop "AI" from insight labels now that insights are templates (#5115)
Josh Sandersbdcc1fd4f807
diff --git a/config/locales/views/insights/ca.yml b/config/locales/views/insights/ca.ymlindex 5033eaceb4..520983db5d 100644--- a/config/locales/views/insights/ca.yml+++ b/config/locales/views/insights/ca.yml@@ -3,7 +3,7 @@ ca:insights:notification:title: Nova observació financera- body: Obre Sure per revisar la teva darrera observació generada per IA.+ body: Obre Sure per revisar la teva darrera observació.index:title: Observacionssubtitle: Què passa amb les teves finances, actualitzat cada nit.diff --git a/config/locales/views/insights/de.yml b/config/locales/views/insights/de.ymlindex cd480a391e..250a5daf60 100644--- a/config/locales/views/insights/de.yml+++ b/config/locales/views/insights/de.yml@@ -3,7 +3,7 @@ de:insights:notification:title: Neue Finanzanalyse- body: Öffne Sure, um deine neueste KI-Analyse anzusehen.+ body: Öffne Sure, um deine neueste Analyse anzusehen.actions:budget: Budget ansehencash_flow_warning: Wiederkehrende Buchungen prüfendiff --git a/config/locales/views/insights/en.yml b/config/locales/views/insights/en.ymlindex 945f79a5df..510d502cf2 100644--- a/config/locales/views/insights/en.yml+++ b/config/locales/views/insights/en.yml@@ -3,7 +3,7 @@ en:insights:notification:title: New financial insight- body: Open Sure to review your latest AI insight.+ body: Open Sure to review your latest insight.index:title: Insightssubtitle: What's happening across your finances, refreshed nightly.diff --git a/config/locales/views/insights/es.yml b/config/locales/views/insights/es.ymlindex fc610bb164..0badda4ba4 100644--- a/config/locales/views/insights/es.yml+++ b/config/locales/views/insights/es.yml@@ -3,7 +3,7 @@ es:insights:notification:title: Nuevo análisis financiero- body: Abre Sure para revisar tu análisis de IA más reciente.+ body: Abre Sure para revisar tu análisis más reciente.index:title: Insightssubtitle: Qué está pasando en tus finanzas, actualizado cada noche.diff --git a/config/locales/views/insights/fr.yml b/config/locales/views/insights/fr.ymlindex 60bba9047a..cebc127fc5 100644--- a/config/locales/views/insights/fr.yml+++ b/config/locales/views/insights/fr.yml@@ -3,7 +3,7 @@ fr:insights:notification:title: Nouvelle analyse financière- body: Ouvrez Sure pour consulter votre dernière analyse par IA.+ body: Ouvrez Sure pour consulter votre dernière analyse.actions:budget: Voir le budgetcash_flow_warning: Vérifier les transactions récurrentesdiff --git a/config/locales/views/insights/id.yml b/config/locales/views/insights/id.ymlindex 394f44dc19..2975a87e93 100644--- a/config/locales/views/insights/id.yml+++ b/config/locales/views/insights/id.yml@@ -3,7 +3,7 @@ id:insights:notification:title: Wawasan keuangan baru- body: Buka Sure untuk melihat wawasan AI terbaru Anda.+ body: Buka Sure untuk melihat wawasan terbaru Anda.index:title: Wawasansubtitle: Perkembangan terkini di seluruh keuangan Anda, diperbarui setiap malam.diff --git a/config/locales/views/insights/nl.yml b/config/locales/views/insights/nl.ymlindex 3a24b28276..48ffa7eb53 100644--- a/config/locales/views/insights/nl.yml+++ b/config/locales/views/insights/nl.yml@@ -3,7 +3,7 @@ nl:insights:notification:title: "Nieuw financieel inzicht"- body: "Open Sure om uw nieuwste AI-inzicht te bekijken."+ body: "Open Sure om uw nieuwste inzicht te bekijken."index:title: "Inzichten"subtitle: "Wat er speelt in uw financiën, elke nacht vernieuwd."diff --git a/config/locales/views/insights/pl.yml b/config/locales/views/insights/pl.ymlindex 4fcf4ba543..163d76dfc1 100644--- a/config/locales/views/insights/pl.yml+++ b/config/locales/views/insights/pl.yml@@ -59,7 +59,7 @@ pl:one: Następny dzieńother: Następnych %{count} dninotification:- body: Otwórz Sure, aby przejrzeć najnowszą analizę AI.+ body: Otwórz Sure, aby przejrzeć najnowszą analizę.title: Nowa analiza finansowarefresh:checking: Sprawdzanie...diff --git a/config/locales/views/insights/pt-PT.yml b/config/locales/views/insights/pt-PT.ymlindex c1d12ea211..98768b8da5 100644--- a/config/locales/views/insights/pt-PT.yml+++ b/config/locales/views/insights/pt-PT.yml@@ -3,7 +3,7 @@ pt-PT:insights:notification:title: Novo indicador financeiro- body: Abra a Sure para rever a sua informação de IA mais recente.+ body: Abra a Sure para rever a sua informação mais recente.index:title: Indicadoressubtitle: O que está a acontecer nas suas finanças, atualizado todas as noites.diff --git a/config/locales/views/insights/ru.yml b/config/locales/views/insights/ru.ymlindex 791dbd0c47..6127e5919f 100644--- a/config/locales/views/insights/ru.yml+++ b/config/locales/views/insights/ru.yml@@ -3,7 +3,7 @@ ru:insights:notification:title: Новый финансовый инсайт- body: Откройте Sure, чтобы посмотреть свежий инсайт от ИИ.+ body: Откройте Sure, чтобы посмотреть свежий инсайт.index:title: Инсайтыsubtitle: Что происходит с вашими финансами. Обновляется каждую ночь.diff --git a/config/locales/views/insights/tr.yml b/config/locales/views/insights/tr.ymlindex 3e5cffe9d2..5c0f75dbd0 100644--- a/config/locales/views/insights/tr.yml+++ b/config/locales/views/insights/tr.yml@@ -3,7 +3,7 @@ tr:insights:notification:title: Yeni finansal içgörü- body: En son yapay zekâ içgörünüzü incelemek için Sure'ı açın.+ body: En son içgörünüzü incelemek için Sure'ı açın.actions:budget: Bütçeyi görüntülecash_flow_warning: Yinelenen işlemleri incelediff --git a/config/locales/views/insights/uk.yml b/config/locales/views/insights/uk.ymlindex 55fcfc99f5..5f0842e7dc 100644--- a/config/locales/views/insights/uk.yml+++ b/config/locales/views/insights/uk.yml@@ -2,7 +2,7 @@ uk:insights:notification:title: Новий фінансовий інсайт- body: Відкрийте Sure, щоб переглянути найновіший інсайт від ШІ.+ body: Відкрийте Sure, щоб переглянути найновіший інсайт.index:title: Аналітикаsubtitle: Комплексний огляд ваших фінансів, оновлюється щоночі.diff --git a/config/locales/views/insights/zh-CN.yml b/config/locales/views/insights/zh-CN.ymlindex 5f07c85fc3..88f684d4b4 100644--- a/config/locales/views/insights/zh-CN.yml+++ b/config/locales/views/insights/zh-CN.yml@@ -3,7 +3,7 @@ zh-CN:insights:notification:title: 新的财务洞察- body: 打开 Sure 查看最新的 AI 洞察。+ body: 打开 Sure 查看最新的洞察。index:title: 洞察subtitle: 全面了解您的财务动态,每晚自动更新。diff --git a/config/locales/views/insights/zh-TW.yml b/config/locales/views/insights/zh-TW.ymlindex c6e79b99f5..b2f65fbf94 100644--- a/config/locales/views/insights/zh-TW.yml+++ b/config/locales/views/insights/zh-TW.yml@@ -3,7 +3,7 @@ zh-TW:insights:notification:title: 新的財務洞察- body: 開啟 Sure 以查看最新的 AI 洞察。+ body: 開啟 Sure 以查看最新的洞察。index:title: 洞察subtitle: 您財務狀況的近期動態,每晚更新。diff --git a/config/locales/views/settings/hostings/de.yml b/config/locales/views/settings/hostings/de.ymlindex 995cdeeda0..281d1a7234 100644--- a/config/locales/views/settings/hostings/de.yml+++ b/config/locales/views/settings/hostings/de.yml@@ -279,7 +279,7 @@ de:type_builtin: Integriert (direktes LLM)type_external: Extern (entfernter Agent)type_mcp_only: Keiner in der App (eigenen Agenten über MCP verbinden)- mcp_only_help: Der Assistent in der App ist für alle in diesem Haushalt ausgeschaltet. Auch die KI-Kurzbefehle bei Rechnungen und die von der KI geschriebenen Insight-Texte entfallen. MCP und die Kategorisierung im Hintergrund bleiben verfügbar; externe Agenten verbindest du unter Einstellungen > MCP.+ mcp_only_help: Der Assistent in der App ist für alle in diesem Haushalt ausgeschaltet. Auch die KI-Kurzbefehle bei Rechnungen und „Mit KI nachhaken“ bei Insights entfallen. MCP und die Kategorisierung im Hintergrund bleiben verfügbar; externe Agenten verbindest du unter Einstellungen > MCP.type_label: Art des Assistentenurl_help: Die vollständige URL zum API-Endpunkt deines Agenten. Die bekommst du von deinem Anbieter.url_label: Endpunkt-URLdiff --git a/config/locales/views/settings/hostings/en.yml b/config/locales/views/settings/hostings/en.ymlindex f47a7c9531..112e3b3276 100644--- a/config/locales/views/settings/hostings/en.yml+++ b/config/locales/views/settings/hostings/en.yml@@ -80,7 +80,7 @@ en:type_builtin: Builtin (direct LLM)type_external: External (remote agent)type_mcp_only: None in app (connect your own agent via MCP)- mcp_only_help: The in-app assistant is off for everyone in this household. Bills AI shortcuts and AI-written insight text also stop. MCP and background categorization stay available; connect external agents in Settings > MCP.+ mcp_only_help: The in-app assistant is off for everyone in this household. Bills AI shortcuts and Dig in with AI on insights also stop. MCP and background categorization stay available; connect external agents in Settings > MCP.external_status: External assistant endpointexternal_configured: Configuredexternal_not_configured: Not configured. Enter the URL and token below, or set EXTERNAL_ASSISTANT_URL and EXTERNAL_ASSISTANT_TOKEN environment variables.diff --git a/config/locales/views/settings/hostings/fr.yml b/config/locales/views/settings/hostings/fr.ymlindex fe1d4c7650..40e0f0c25f 100644--- a/config/locales/views/settings/hostings/fr.yml+++ b/config/locales/views/settings/hostings/fr.yml@@ -52,7 +52,7 @@ fr:title: Configuration de l'IA externeexternal_not_configured: Non configuré. Saisissez l'URL et le token ci-dessous, ou définissez les variables d'environnement EXTERNAL_ASSISTANT_URL et EXTERNAL_ASSISTANT_TOKEN.external_status: Endpoint de l'assistant externe- mcp_only_help: L'assistant intégré est désactivé pour tout le foyer. Les raccourcis IA des factures et les textes d'analyse rédigés par l'IA s'arrêtent aussi. MCP et la catégorisation en arrière-plan restent disponibles ; connectez des agents externes dans Paramètres > MCP.+ mcp_only_help: L'assistant intégré est désactivé pour tout le foyer. Les raccourcis IA des factures et « Approfondir avec l'IA » sur les analyses s'arrêtent aussi. MCP et la catégorisation en arrière-plan restent disponibles ; connectez des agents externes dans Paramètres > MCP.title: Assistant IAtoken_help: Le token d'authentification fourni par votre agent externe. Il est envoyé en tant que Bearer token avec chaque requête.token_label: Token APIdiff --git a/config/locales/views/settings/hostings/id.yml b/config/locales/views/settings/hostings/id.ymlindex bc4750435a..a17cd525d4 100644--- a/config/locales/views/settings/hostings/id.yml+++ b/config/locales/views/settings/hostings/id.yml@@ -80,7 +80,7 @@ id:type_builtin: Bawaan (LLM langsung)type_external: Eksternal (agen jarak jauh)type_mcp_only: Tidak ada di aplikasi (hubungkan agen Anda sendiri melalui MCP)- mcp_only_help: Asisten dalam aplikasi dinonaktifkan untuk semua orang di keluarga ini. Pintasan AI Tagihan dan teks wawasan yang ditulis AI juga berhenti. MCP dan kategorisasi latar belakang tetap tersedia; hubungkan agen eksternal di Pengaturan > MCP.+ mcp_only_help: Asisten dalam aplikasi dinonaktifkan untuk semua orang di keluarga ini. Pintasan AI Tagihan dan Pelajari lebih lanjut bersama AI pada wawasan juga berhenti. MCP dan kategorisasi latar belakang tetap tersedia; hubungkan agen eksternal di Pengaturan > MCP.external_status: Endpoint asisten eksternalexternal_configured: Terkonfigurasiexternal_not_configured: Belum terkonfigurasi. Masukkan URL dan token di bawah, atau atur variabel lingkungan EXTERNAL_ASSISTANT_URL dan EXTERNAL_ASSISTANT_TOKEN.diff --git a/config/locales/views/settings/hostings/nl.yml b/config/locales/views/settings/hostings/nl.ymlindex 5b375ba763..bc71a094bb 100644--- a/config/locales/views/settings/hostings/nl.yml+++ b/config/locales/views/settings/hostings/nl.yml@@ -77,7 +77,7 @@ nl:type_builtin: "Ingebouwd (directe LLM)"type_external: "Extern (externe agent)"type_mcp_only: "Geen in de app (koppel uw eigen agent via MCP)"- mcp_only_help: "De assistent in de app staat uit voor iedereen in dit huishouden. Ook de AI-snelkoppelingen bij vaste lasten en door AI geschreven teksten bij inzichten stoppen. MCP en categorisatie op de achtergrond blijven beschikbaar; koppel externe agents via Instellingen > MCP."+ mcp_only_help: "De assistent in de app staat uit voor iedereen in dit huishouden. Ook de AI-snelkoppelingen bij vaste lasten en „Verder uitzoeken met AI” bij inzichten stoppen. MCP en categorisatie op de achtergrond blijven beschikbaar; koppel externe agents via Instellingen > MCP."external_status: "Endpoint van externe assistent"external_configured: "Geconfigureerd"external_not_configured: "Niet geconfigureerd. Voer hieronder de URL en het token in, of stel de omgevingsvariabelen EXTERNAL_ASSISTANT_URL en EXTERNAL_ASSISTANT_TOKEN in."diff --git a/config/locales/views/settings/hostings/zh-CN.yml b/config/locales/views/settings/hostings/zh-CN.ymlindex bb51cb6020..e26b0d84c1 100644--- a/config/locales/views/settings/hostings/zh-CN.yml+++ b/config/locales/views/settings/hostings/zh-CN.yml@@ -192,7 +192,7 @@ zh-CN:title: 断开外部助手?body: 断开后将无法继续使用此远程助手。type_mcp_only: 应用内不启用(通过 MCP 连接您自己的代理)- mcp_only_help: 此家庭中的所有成员均关闭应用内助手。账单 AI 快捷方式和 AI 编写的洞察文本也将停止。MCP 和后台分类仍然可用;可在“设置 > MCP”中连接外部代理。+ mcp_only_help: 此家庭中的所有成员均关闭应用内助手。账单 AI 快捷方式和洞察上的“借助 AI 深入分析”也将停止。MCP 和后台分类仍然可用;可在“设置 > MCP”中连接外部代理。agent_discovery_configure_first: 保存有效的端点 URL 和 API 令牌以加载可用代理。external_agent_required: 保存前请选择一个外部代理。external_agent_invalid: 请选择配置的端点所返回的代理。diff --git a/test/jobs/deliver_insight_notification_job_test.rb b/test/jobs/deliver_insight_notification_job_test.rbindex 2513029513..dae764a45f 100644--- a/test/jobs/deliver_insight_notification_job_test.rb+++ b/test/jobs/deliver_insight_notification_job_test.rb@@ -34,7 +34,7 @@ class DeliverInsightNotificationJobTest < ActiveJob::TestCaseclient.expects(:deliver).with(token: @subscription.token,title: "New financial insight",- body: "Open Sure to review your latest AI insight.",+ body: "Open Sure to review your latest insight.",insight_id: @insight.id).returns(response)@@ -59,7 +59,7 @@ class DeliverInsightNotificationJobTest < ActiveJob::TestCaseclient.expects(:deliver).with(token: @subscription.token,title: "Neue Finanzanalyse",- body: "Öffne Sure, um deine neueste KI-Analyse anzusehen.",+ body: "Öffne Sure, um deine neueste Analyse anzusehen.",insight_id: @insight.id).returns(response)diff --git a/test/services/apns/client_test.rb b/test/services/apns/client_test.rbindex 86006561dd..f5655f652f 100644--- a/test/services/apns/client_test.rb+++ b/test/services/apns/client_test.rb@@ -33,7 +33,7 @@ class Apns::ClientTest < ActiveSupport::TestCaseresult = Apns::Client.new(environment: "sandbox").deliver(token: "ab" * 32,title: "New financial insight",- body: "Open Sure to review your latest AI insight.",+ body: "Open Sure to review your latest insight.",insight_id: "insight-id")