The personal finance app for everyone (by everyone)
Ruby
feat(i18n): extract hardcoded English strings to locale files (#1806)
Brendon Scheiber0c126b16745c
diff --git a/app/components/UI/account/activity_date.html.erb b/app/components/UI/account/activity_date.html.erbindex f563801ab1..6fd158d532 100644--- a/app/components/UI/account/activity_date.html.erb+++ b/app/components/UI/account/activity_date.html.erb@@ -21,7 +21,7 @@<div class="flex items-center gap-4"><div class="flex items-center gap-2"><span class="font-medium privacy-sensitive"><%= end_balance_money.format %></span>- <%= render DS::Tooltip.new(text: "The end of day balance, after all transactions and adjustments", placement: "left", size: "sm") %>+ <%= render DS::Tooltip.new(text: t(".balance_tooltip"), placement: "left", size: "sm") %></div><%= helpers.icon "chevron-down", class: "group-open:rotate-180" %></div>@@ -32,7 +32,7 @@<% if balance %><%= render UI::Account::BalanceReconciliation.new(balance: balance, account: account) %><% else %>- <p class="text-sm text-secondary">No balance data available for this date</p>+ <p class="text-sm text-secondary"><%= t(".no_balance_data") %></p><% end %></div></details>diff --git a/app/components/UI/account/chart.html.erb b/app/components/UI/account/chart.html.erbindex efcdca7d66..54933dcfe7 100644--- a/app/components/UI/account/chart.html.erb+++ b/app/components/UI/account/chart.html.erb@@ -50,7 +50,7 @@data-time-series-chart-data-value="<%= series.to_json %>"></div><% else %><div class="w-full h-full flex items-center justify-center">- <p class="text-secondary text-sm">No data available</p>+ <p class="text-secondary text-sm"><%= t(".no_data_available") %></p></div><% end %></div>diff --git a/app/controllers/categories_controller.rb b/app/controllers/categories_controller.rbindex 6d5e6b9fce..a38e5166ce 100644--- a/app/controllers/categories_controller.rb+++ b/app/controllers/categories_controller.rb@@ -58,7 +58,7 @@ class CategoriesController < ApplicationControllerdef destroy_allCurrent.family.categories.destroy_all- redirect_back_or_to categories_path, notice: "All categories deleted"+ redirect_back_or_to categories_path, notice: t(".success")enddef bootstrapdiff --git a/app/controllers/chats_controller.rb b/app/controllers/chats_controller.rbindex eb3e2c5c73..aefb7daf4e 100644--- a/app/controllers/chats_controller.rb+++ b/app/controllers/chats_controller.rb@@ -29,7 +29,7 @@ class ChatsController < ApplicationController@chat.update!(chat_params)respond_to do |format|- format.html { redirect_back_or_to chat_path(@chat), notice: "Chat updated" }+ format.html { redirect_back_or_to chat_path(@chat), notice: t(".success") }format.turbo_stream { render turbo_stream: turbo_stream.replace(dom_id(@chat, :title), partial: "chats/chat_title", locals: { chat: @chat }) }endend@@ -38,7 +38,7 @@ class ChatsController < ApplicationController@chat.destroyclear_last_viewed_chat- redirect_to chats_path, notice: "Chat was successfully deleted"+ redirect_to chats_path, notice: t(".notice")enddef retrydiff --git a/app/controllers/concerns/self_hostable.rb b/app/controllers/concerns/self_hostable.rbindex 3631571aea..83498269ba 100644--- a/app/controllers/concerns/self_hostable.rb+++ b/app/controllers/concerns/self_hostable.rb@@ -23,7 +23,7 @@ module SelfHostableif controller_name == "pages" && action_name == "redis_configuration_error"# If Redis is now working, redirect to homeif redis_connected?- redirect_to root_path, notice: "Redis is now configured properly! You can now setup your Sure application."+ redirect_to root_path, notice: t("concerns.self_hostable.redis_configured")endreturndiff --git a/app/controllers/holdings_controller.rb b/app/controllers/holdings_controller.rbindex 14c7f55b82..45a89f9388 100644--- a/app/controllers/holdings_controller.rb+++ b/app/controllers/holdings_controller.rb@@ -42,7 +42,7 @@ class HoldingsController < ApplicationController@holding.destroy_holding_and_entries!flash[:notice] = t(".success")else- flash[:alert] = "You cannot delete this holding"+ flash[:alert] = t(".cannot_delete")endrespond_to do |format|diff --git a/app/controllers/import/cleans_controller.rb b/app/controllers/import/cleans_controller.rbindex 7d91f2134e..4b0b46c165 100644--- a/app/controllers/import/cleans_controller.rb+++ b/app/controllers/import/cleans_controller.rb@@ -6,7 +6,7 @@ class Import::CleansController < ApplicationControllerdef showunless @import.configured?redirect_path = @import.is_a?(PdfImport) ? import_path(@import) : import_configuration_path(@import)- return redirect_to redirect_path, alert: "Please configure your import before proceeding."+ return redirect_to redirect_path, alert: t(".not_configured")endrows = @import.rows_ordereddiff --git a/app/controllers/import/confirms_controller.rb b/app/controllers/import/confirms_controller.rbindex 1a687d4bd8..029a58469e 100644--- a/app/controllers/import/confirms_controller.rb+++ b/app/controllers/import/confirms_controller.rb@@ -8,7 +8,7 @@ class Import::ConfirmsController < ApplicationControllerreturn redirect_to import_path(@import)end- redirect_to import_clean_path(@import), alert: "You have invalid data, please edit until all errors are resolved" unless @import.cleaned?+ redirect_to import_clean_path(@import), alert: t(".invalid_data") unless @import.cleaned?endprivatediff --git a/app/controllers/import/qif_category_selections_controller.rb b/app/controllers/import/qif_category_selections_controller.rbindex 2ed7b195af..cf7538b9b3 100644--- a/app/controllers/import/qif_category_selections_controller.rb+++ b/app/controllers/import/qif_category_selections_controller.rb@@ -54,7 +54,7 @@ class Import::QifCategorySelectionsController < ApplicationController@import.sync_mappings unless format_changedend- redirect_to import_clean_path(@import), notice: "Categories and tags saved."+ redirect_to import_clean_path(@import), notice: t(".success")endprivatediff --git a/app/controllers/import/uploads_controller.rb b/app/controllers/import/uploads_controller.rbindex 0212bc850f..bd08c3e2a7 100644--- a/app/controllers/import/uploads_controller.rb+++ b/app/controllers/import/uploads_controller.rb@@ -85,7 +85,7 @@ class Import::UploadsController < ApplicationController@import.sync_mappingsend- redirect_to import_qif_category_selection_path(@import), notice: "QIF file uploaded successfully."+ redirect_to import_qif_category_selection_path(@import), notice: t(".qif_uploaded")enddef csv_strdiff --git a/app/controllers/imports_controller.rb b/app/controllers/imports_controller.rbindex 4a3cc0492e..108cbd393d 100644--- a/app/controllers/imports_controller.rb+++ b/app/controllers/imports_controller.rb@@ -22,9 +22,9 @@ class ImportsController < ApplicationControllerdef publish@import.publish_later- redirect_to import_path(@import), notice: "Your import has started in the background."+ redirect_to import_path(@import), notice: t(".started")rescue Import::MaxRowCountExceededError- redirect_back_or_to import_path(@import), alert: "Your import exceeds the maximum row count of #{@import.max_row_count}."+ redirect_back_or_to import_path(@import), alert: t(".max_rows_exceeded", max: @import.max_row_count)enddef index@@ -112,22 +112,22 @@ class ImportsController < ApplicationControllerdef revert@import.revert_later- redirect_to imports_path, notice: "Import is reverting in the background."+ redirect_to imports_path, notice: t(".started")enddef apply_templateif @import.suggested_template@import.apply_template!(@import.suggested_template)- redirect_to import_configuration_path(@import), notice: "Template applied."+ redirect_to import_configuration_path(@import), notice: t(".template_applied")else- redirect_to import_configuration_path(@import), alert: "No template found, please manually configure your import."+ redirect_to import_configuration_path(@import), alert: t(".no_template_found")endenddef destroy@import.destroy- redirect_to imports_path, notice: "Your import has been deleted."+ redirect_to imports_path, notice: t(".deleted")endprivatediff --git a/app/controllers/invite_codes_controller.rb b/app/controllers/invite_codes_controller.rbindex f9bcf67600..436e9a7d1a 100644--- a/app/controllers/invite_codes_controller.rb+++ b/app/controllers/invite_codes_controller.rb@@ -8,13 +8,13 @@ class InviteCodesController < ApplicationControllerdef createInviteCode.generate!- redirect_back_or_to invite_codes_path, notice: "Code generated"+ redirect_back_or_to invite_codes_path, notice: t(".success")enddef destroycode = InviteCode.find(params[:id])code.destroy- redirect_back_or_to invite_codes_path, notice: "Code deleted"+ redirect_back_or_to invite_codes_path, notice: t(".success")endprivatediff --git a/app/controllers/oidc_accounts_controller.rb b/app/controllers/oidc_accounts_controller.rbindex 25548995d2..a0e31e7a4b 100644--- a/app/controllers/oidc_accounts_controller.rb+++ b/app/controllers/oidc_accounts_controller.rb@@ -7,7 +7,7 @@ class OidcAccountsController < ApplicationController@pending_auth = session[:pending_oidc_auth]if @pending_auth.nil?- redirect_to new_session_path, alert: "No pending OIDC authentication found"+ redirect_to new_session_path, alert: t(".no_pending_oidc")returnend@@ -26,7 +26,7 @@ class OidcAccountsController < ApplicationController@pending_auth = session[:pending_oidc_auth]if @pending_auth.nil?- redirect_to new_session_path, alert: "No pending OIDC authentication found"+ redirect_to new_session_path, alert: t(".no_pending_oidc")returnend@@ -75,7 +75,7 @@ class OidcAccountsController < ApplicationController@pending_auth = session[:pending_oidc_auth]if @pending_auth.nil?- redirect_to new_session_path, alert: "No pending OIDC authentication found"+ redirect_to new_session_path, alert: t(".no_pending_oidc")returnend@@ -91,7 +91,7 @@ class OidcAccountsController < ApplicationController@pending_auth = session[:pending_oidc_auth]if @pending_auth.nil?- redirect_to new_session_path, alert: "No pending OIDC authentication found"+ redirect_to new_session_path, alert: t(".no_pending_oidc")returnend@@ -104,7 +104,7 @@ class OidcAccountsController < ApplicationController# domain is not allowed, block JIT account creation—unless there's a# pending invitation for this user.unless invitation.present? || (!AuthConfig.jit_link_only? && AuthConfig.allowed_oidc_domain?(email))- redirect_to new_session_path, alert: "SSO account creation is disabled. Please contact an administrator."+ redirect_to new_session_path, alert: t(".account_creation_disabled")returnend@@ -164,7 +164,7 @@ class OidcAccountsController < ApplicationControllerelsif accept_pending_invitation_for(@user)t("invitations.accept_choice.joined_household")else- "Welcome! Your account has been created."+ t(".account_created")endredirect_to root_path, notice: noticeelsediff --git a/app/controllers/pending_duplicate_merges_controller.rb b/app/controllers/pending_duplicate_merges_controller.rbindex 9b690daa5f..ec2914097e 100644--- a/app/controllers/pending_duplicate_merges_controller.rb+++ b/app/controllers/pending_duplicate_merges_controller.rb@@ -21,7 +21,7 @@ class PendingDuplicateMergesController < ApplicationController# Manually merge the pending transaction with the selected posted transactionunless merge_params[:posted_entry_id].present?- redirect_back_or_to transactions_path, alert: "Please select a posted transaction to merge with"+ redirect_back_or_to transactions_path, alert: t(".no_posted_selected")returnend@@ -29,7 +29,7 @@ class PendingDuplicateMergesController < ApplicationControllerposted_entry = find_eligible_posted_entry(merge_params[:posted_entry_id])unless posted_entry- redirect_back_or_to transactions_path, alert: "Invalid transaction selected for merge"+ redirect_back_or_to transactions_path, alert: t(".invalid_transaction")returnend@@ -48,9 +48,9 @@ class PendingDuplicateMergesController < ApplicationController# Immediately mergeif @transaction.merge_with_duplicate!- redirect_back_or_to transactions_path, notice: "Pending transaction merged with posted transaction"+ redirect_back_or_to transactions_path, notice: t(".merge_success")else- redirect_back_or_to transactions_path, alert: "Could not merge transactions"+ redirect_back_or_to transactions_path, alert: t(".merge_failed")endrescue ActiveRecord::RecordInvalid, ActiveRecord::RecordNotDestroyed,ActiveRecord::Deadlocked, ActiveRecord::LockWaitTimeout => e@@ -64,7 +64,7 @@ class PendingDuplicateMergesController < ApplicationController@transaction = entry.entryableunless @transaction.is_a?(Transaction) && @transaction.pending?- redirect_to transactions_path, alert: "This feature is only available for pending transactions"+ redirect_to transactions_path, alert: t("pending_duplicate_merges.set_transaction.pending_only")endenddiff --git a/app/controllers/plaid_items_controller.rb b/app/controllers/plaid_items_controller.rbindex bfe8c5bd56..08de7e0b4a 100644--- a/app/controllers/plaid_items_controller.rb+++ b/app/controllers/plaid_items_controller.rb@@ -62,7 +62,7 @@ class PlaidItemsController < ApplicationController.select { |pa| pa.account_provider.nil? && pa.account.nil? } # Not linked via new or legacy systemif @available_plaid_accounts.empty?- redirect_to account_path(@account), alert: "No available Plaid accounts to link. Please connect a new Plaid account first."+ redirect_to account_path(@account), alert: t(".no_available_accounts")endend@@ -72,13 +72,13 @@ class PlaidItemsController < ApplicationController# Verify the Plaid account belongs to this family's Plaid itemsunless Current.family.plaid_items.include?(plaid_account.plaid_item)- redirect_to account_path(@account), alert: "Invalid Plaid account selected"+ redirect_to account_path(@account), alert: t(".invalid_account")returnend# Verify the Plaid account is not already linkedif plaid_account.account_provider.present? || plaid_account.account.present?- redirect_to account_path(@account), alert: "This Plaid account is already linked"+ redirect_to account_path(@account), alert: t(".already_linked")returnend@@ -88,7 +88,7 @@ class PlaidItemsController < ApplicationControllerprovider: plaid_account)- redirect_to accounts_path, notice: "Account successfully linked to Plaid"+ redirect_to accounts_path, notice: t(".success")endprivatediff --git a/app/controllers/rules_controller.rb b/app/controllers/rules_controller.rbindex 5e7496cb8b..ae9e1ee1f0 100644--- a/app/controllers/rules_controller.rb+++ b/app/controllers/rules_controller.rb@@ -86,8 +86,8 @@ class RulesController < ApplicationControllerdef updateif @rule.update(rule_params)respond_to do |format|- format.html { redirect_back_or_to rules_path, notice: "Rule updated" }- format.turbo_stream { stream_redirect_back_or_to rules_path, notice: "Rule updated" }+ format.html { redirect_back_or_to rules_path, notice: t(".success") }+ format.turbo_stream { stream_redirect_back_or_to rules_path, notice: t(".success") }endelserender :edit, status: :unprocessable_entity@@ -96,12 +96,12 @@ class RulesController < ApplicationControllerdef destroy@rule.destroy- redirect_to rules_path, notice: "Rule deleted"+ redirect_to rules_path, notice: t(".success")enddef destroy_allCurrent.family.rules.destroy_all- redirect_to rules_path, notice: "All rules deleted"+ redirect_to rules_path, notice: t(".success")enddef confirm_alldiff --git a/app/controllers/settings/api_keys_controller.rb b/app/controllers/settings/api_keys_controller.rbindex c509df41af..d132e9a5f0 100644--- a/app/controllers/settings/api_keys_controller.rb+++ b/app/controllers/settings/api_keys_controller.rb@@ -31,7 +31,7 @@ class Settings::ApiKeysController < ApplicationControllerexisting_keys.each { |key| key.update_column(:revoked_at, Time.current) }if @api_key.save- flash[:notice] = "Your API key has been created successfully"+ flash[:notice] = t(".success")redirect_to settings_api_key_pathelse# Restore existing keys if new key creation failed@@ -42,13 +42,13 @@ class Settings::ApiKeysController < ApplicationControllerdef destroyif @api_key.nil?- flash[:alert] = "API key not found"+ flash[:alert] = t(".not_found")elsif @api_key.demo_monitoring_key?- flash[:alert] = "This API key cannot be revoked"+ flash[:alert] = t(".cannot_revoke")elsif @api_key.revoke!- flash[:notice] = "API key has been revoked successfully"+ flash[:notice] = t(".revoked_successfully")else- flash[:alert] = "Failed to revoke API key"+ flash[:alert] = t(".revoke_failed")endredirect_to settings_api_key_pathenddiff --git a/app/controllers/settings/profiles_controller.rb b/app/controllers/settings/profiles_controller.rbindex 6e8dbbf0e1..7015e55f47 100644--- a/app/controllers/settings/profiles_controller.rb+++ b/app/controllers/settings/profiles_controller.rb@@ -29,9 +29,9 @@ class Settings::ProfilesController < ApplicationControllerif @user.destroy# Also destroy the invitation associated with this user for this familyCurrent.family.invitations.find_by(email: @user.email)&.destroy- flash[:notice] = "Member removed successfully."+ flash[:notice] = t(".member_removed")else- flash[:alert] = "Failed to remove member."+ flash[:alert] = t(".member_removal_failed")endredirect_to settings_profile_pathdiff --git a/app/controllers/settings/providers_controller.rb b/app/controllers/settings/providers_controller.rbindex bdd9b485ea..014be3d74f 100644--- a/app/controllers/settings/providers_controller.rb+++ b/app/controllers/settings/providers_controller.rb@@ -66,9 +66,9 @@ class Settings::ProvidersController < ApplicationController# Reload provider configurations if neededreload_provider_configs(updated_fields)- redirect_to settings_providers_path, notice: "Provider settings updated successfully"+ redirect_to settings_providers_path, notice: t(".updated_successfully")else- redirect_to settings_providers_path, notice: "No changes were made"+ redirect_to settings_providers_path, notice: t(".no_changes")endrescue => errorRails.logger.error("Failed to update provider settings: #{error.class} - #{error.message}")diff --git a/app/controllers/snaptrade_items_controller.rb b/app/controllers/snaptrade_items_controller.rbindex 6fab6b0ec8..6062c4dfb1 100644--- a/app/controllers/snaptrade_items_controller.rb+++ b/app/controllers/snaptrade_items_controller.rb@@ -380,7 +380,7 @@ class SnaptradeItemsController < ApplicationControllerenddef link_accounts- redirect_to settings_providers_path, alert: "Use the account setup flow instead"+ redirect_to settings_providers_path, alert: t(".use_setup_flow")enddef select_existing_accountdiff --git a/app/controllers/subscriptions_controller.rb b/app/controllers/subscriptions_controller.rbindex da02534bd3..d6d5ba7d76 100644--- a/app/controllers/subscriptions_controller.rb+++ b/app/controllers/subscriptions_controller.rb@@ -8,7 +8,7 @@ class SubscriptionsController < ApplicationController# Upgrade page for unsubscribed usersdef upgradeif Current.family.subscription&.active?- redirect_to root_path, notice: "You are already contributing. Thank you!"+ redirect_to root_path, notice: t(".already_contributing")else@plan = params[:plan] || "annual"render layout: "onboardings"@@ -33,9 +33,9 @@ class SubscriptionsController < ApplicationControllerdef createif Current.family.can_start_trial?Current.family.start_trial_subscription!- redirect_to root_path, notice: "Welcome to Sure!"+ redirect_to root_path, notice: t(".welcome")else- redirect_to root_path, alert: "You have already started or completed a trial. Please upgrade to continue."+ redirect_to root_path, alert: t(".trial_already_used")endend@@ -54,9 +54,9 @@ class SubscriptionsController < ApplicationControllerif checkout_result.success?Current.family.start_subscription!(checkout_result.subscription_id)- redirect_to root_path, notice: "Welcome to Sure! Your contribution is appreciated."+ redirect_to root_path, notice: t(".welcome_with_contribution")else- redirect_to root_path, alert: "Something went wrong processing your contribution. Please try again."+ redirect_to root_path, alert: t(".contribution_failed")endenddiff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rbindex 1c28629078..219971529d 100644--- a/app/controllers/tags_controller.rb+++ b/app/controllers/tags_controller.rb@@ -36,7 +36,7 @@ class TagsController < ApplicationControllerdef destroy_allCurrent.family.tags.destroy_all- redirect_back_or_to tags_path, notice: "All tags deleted"+ redirect_back_or_to tags_path, notice: t(".all_deleted")endprivatediff --git a/app/controllers/transactions_controller.rb b/app/controllers/transactions_controller.rbindex 8ba56d8e13..a1932c5559 100644--- a/app/controllers/transactions_controller.rb+++ b/app/controllers/transactions_controller.rb@@ -107,7 +107,7 @@ class TransactionsController < ApplicationController@entry.mark_user_modified!@entry.transaction.lock_attr!(:tag_ids) if @entry.transaction.tags.any?- flash[:notice] = "Transaction created"+ flash[:notice] = t(".created")respond_to do |format|format.html { redirect_back_or_to account_path(@entry.account) }@@ -141,7 +141,7 @@ class TransactionsController < ApplicationController@entry.reloadrespond_to do |format|- format.html { redirect_back_or_to account_path(@entry.account), notice: "Transaction updated" }+ format.html { redirect_back_or_to account_path(@entry.account), notice: t(".updated") }format.turbo_stream doin_split_group = helpers.in_split_group?(@entry, params[:grouped])render turbo_stream: [diff --git a/app/controllers/transfer_matches_controller.rb b/app/controllers/transfer_matches_controller.rbindex 341688d5d4..4e67653baa 100644--- a/app/controllers/transfer_matches_controller.rb+++ b/app/controllers/transfer_matches_controller.rb@@ -32,7 +32,7 @@ class TransferMatchesController < ApplicationController@transfer.sync_account_later- redirect_back_or_to transactions_path, notice: "Transfer created"+ redirect_back_or_to transactions_path, notice: t(".success")endprivatediff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rbindex 1ee9ee95b1..d265734c6d 100644--- a/app/controllers/users_controller.rb+++ b/app/controllers/users_controller.rb@@ -6,7 +6,7 @@ class UsersController < ApplicationControllerif @user.resend_confirmation_emailredirect_to settings_profile_path, notice: t(".success")else- redirect_to settings_profile_path, alert: t("no_pending_change")+ redirect_to settings_profile_path, alert: t(".no_pending_change")endenddiff --git a/app/controllers/valuations_controller.rb b/app/controllers/valuations_controller.rbindex 5a29661674..9dbfdd597b 100644--- a/app/controllers/valuations_controller.rb+++ b/app/controllers/valuations_controller.rb@@ -57,8 +57,8 @@ class ValuationsController < ApplicationControllerif result.success?respond_to do |format|- format.html { redirect_back_or_to account_path(account), notice: "Account updated" }- format.turbo_stream { stream_redirect_back_or_to(account_path(account), notice: "Account updated") }+ format.html { redirect_back_or_to account_path(account), notice: t(".account_updated") }+ format.turbo_stream { stream_redirect_back_or_to(account_path(account), notice: t(".account_updated")) }endelse@error_message = result.error_message@@ -84,7 +84,7 @@ class ValuationsController < ApplicationController@entry.reloadrespond_to do |format|- format.html { redirect_back_or_to account_path(@entry.account), notice: "Entry updated" }+ format.html { redirect_back_or_to account_path(@entry.account), notice: t(".entry_updated") }format.turbo_stream dorender turbo_stream: [turbo_stream.replace(diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rbindex f00d876eaf..d15266e032 100644--- a/app/helpers/application_helper.rb+++ b/app/helpers/application_helper.rb@@ -74,7 +74,7 @@ module ApplicationHelperdef family_moniker- Current.family&.moniker_label || "Family"+ Current.family&.moniker_label || I18n.t("shared.family_moniker.singular")enddef family_moniker_downcase@@ -82,7 +82,7 @@ module ApplicationHelperenddef family_moniker_plural- Current.family&.moniker_label_plural || "Families"+ Current.family&.moniker_label_plural || I18n.t("shared.family_moniker.plural")enddef family_moniker_plural_downcasediff --git a/app/helpers/categories_helper.rb b/app/helpers/categories_helper.rbindex 2d586dee75..458dae432b 100644--- a/app/helpers/categories_helper.rb+++ b/app/helpers/categories_helper.rb@@ -1,21 +1,21 @@module CategoriesHelperdef transfer_categoryCategory.new \- name: "Transfer",+ name: I18n.t("categories.virtual.transfer"),color: Category::TRANSFER_COLOR,lucide_icon: "arrow-right-left"enddef payment_categoryCategory.new \- name: "Payment",+ name: I18n.t("categories.virtual.payment"),color: Category::PAYMENT_COLOR,lucide_icon: "arrow-right"enddef trade_categoryCategory.new \- name: "Trade",+ name: I18n.t("categories.virtual.trade"),color: Category::TRADE_COLORenddiff --git a/app/helpers/custom_confirm.rb b/app/helpers/custom_confirm.rbindex cdf245853f..f2d59a0095 100644--- a/app/helpers/custom_confirm.rb+++ b/app/helpers/custom_confirm.rb@@ -38,14 +38,14 @@ class CustomConfirmenddef default_title- "Are you sure?"+ I18n.t("shared.custom_confirm.default_title")enddef default_body- "This is not reversible."+ I18n.t("shared.custom_confirm.default_body")enddef default_btn_text- "Confirm"+ I18n.t("shared.custom_confirm.default_btn_text")endenddiff --git a/app/helpers/imports_helper.rb b/app/helpers/imports_helper.rbindex 6cf680452f..3f46287204 100644--- a/app/helpers/imports_helper.rb+++ b/app/helpers/imports_helper.rb@@ -1,31 +1,31 @@module ImportsHelperdef mapping_label(mapping_class){- "Import::AccountTypeMapping" => "Account Type",- "Import::AccountMapping" => "Account",- "Import::CategoryMapping" => "Category",- "Import::TagMapping" => "Tag"+ "Import::AccountTypeMapping" => I18n.t("imports.mapping_labels.account_type"),+ "Import::AccountMapping" => I18n.t("imports.mapping_labels.account"),+ "Import::CategoryMapping" => I18n.t("imports.mapping_labels.category"),+ "Import::TagMapping" => I18n.t("imports.mapping_labels.tag")}.fetch(mapping_class.name)enddef import_col_label(key){- date: "Date",- amount: "Amount",- name: "Name",- currency: "Currency",- category: "Category",- tags: "Tags",- account: "Account",- notes: "Notes",- qty: "Quantity",- ticker: "Ticker",- exchange: "Exchange",- price: "Price",- entity_type: "Type",- category_parent: "Parent category",- category_color: "Color",- category_icon: "Lucide icon"+ date: I18n.t("imports.column_labels.date"),+ amount: I18n.t("imports.column_labels.amount"),+ name: I18n.t("imports.column_labels.name"),+ currency: I18n.t("imports.column_labels.currency"),+ category: I18n.t("imports.column_labels.category"),+ tags: I18n.t("imports.column_labels.tags"),+ account: I18n.t("imports.column_labels.account"),+ notes: I18n.t("imports.column_labels.notes"),+ qty: I18n.t("imports.column_labels.qty"),+ ticker: I18n.t("imports.column_labels.ticker"),+ exchange: I18n.t("imports.column_labels.exchange"),+ price: I18n.t("imports.column_labels.price"),+ entity_type: I18n.t("imports.column_labels.entity_type"),+ category_parent: I18n.t("imports.column_labels.category_parent"),+ category_color: I18n.t("imports.column_labels.category_color"),+ category_icon: I18n.t("imports.column_labels.category_icon")}[key]enddiff --git a/app/models/api_key.rb b/app/models/api_key.rbindex ae24ccec32..4c12b4668f 100644--- a/app/models/api_key.rb+++ b/app/models/api_key.rb@@ -112,7 +112,7 @@ class ApiKey < ApplicationRecorddef prevent_demo_monitoring_key_destroy!return unless demo_monitoring_key?- errors.add(:base, "Cannot destroy demo monitoring API key")+ errors.add(:base, :cannot_destroy_demo_key)throw(:abort)endenddiff --git a/app/models/category_import.rb b/app/models/category_import.rbindex 15e3a6dd8a..1bf4564bb4 100644--- a/app/models/category_import.rb+++ b/app/models/category_import.rb@@ -17,7 +17,7 @@ class CategoryImport < Importparent = ensure_placeholder_category(row.category_parent)if parent && parent == category- errors.add(:base, "Category '#{category.name}' cannot be its own parent")+ errors.add(:base, :own_parent, name: category.name)raise ActiveRecord::RecordInvalid.new(self)end@@ -82,7 +82,7 @@ class CategoryImport < Importmissing_headers = required_column_keys.map(&:to_s).reject { |key| header_for(key).present? }return if missing_headers.empty?- errors.add(:base, "Missing required columns: #{missing_headers.join(', ')}")+ errors.add(:base, :missing_columns, columns: missing_headers.join(", "))raise ActiveRecord::RecordInvalid.new(self)enddiff --git a/app/models/import.rb b/app/models/import.rbindex 2f1256ff4e..ac3c5d5dfb 100644--- a/app/models/import.rb+++ b/app/models/import.rb@@ -418,7 +418,7 @@ class Import < ApplicationRecordendif duplicate_headers.any?- errors.add(:base, "CSV headers normalize to duplicate columns: #{duplicate_headers.map { |headers| headers.join(', ') }.join('; ')}")+ errors.add(:base, :duplicate_headers, columns: duplicate_headers.map { |headers| headers.join(", ") }.join("; "))raise ActiveRecord::RecordInvalid, selfenddiff --git a/app/models/indexa_capital_item.rb b/app/models/indexa_capital_item.rbindex ccea401b46..53bd562a80 100644--- a/app/models/indexa_capital_item.rb+++ b/app/models/indexa_capital_item.rb@@ -176,6 +176,6 @@ class IndexaCapitalItem < ApplicationRecorddef credentials_present_on_createreturn if credentials_configured?- errors.add(:base, "Either INDEXA_API_TOKEN env var or username/document/password credentials are required")+ errors.add(:base, :credentials_required)endenddiff --git a/app/models/plaid_account.rb b/app/models/plaid_account.rbindex ae2ecfeae1..fa5922ae18 100644--- a/app/models/plaid_account.rb+++ b/app/models/plaid_account.rb@@ -70,6 +70,6 @@ class PlaidAccount < ApplicationRecord# Plaid guarantees at least one of these. This validation is a sanity check for that guarantee.def has_balancereturn if current_balance.present? || available_balance.present?- errors.add(:base, "Plaid account must have either current or available balance")+ errors.add(:base, :no_balance)endenddiff --git a/app/models/recurring_transaction.rb b/app/models/recurring_transaction.rbindex ffc2c75be5..090d315492 100644--- a/app/models/recurring_transaction.rb+++ b/app/models/recurring_transaction.rb@@ -24,7 +24,7 @@ class RecurringTransaction < ApplicationRecorddef merchant_or_name_presentif merchant_id.blank? && name.blank?- errors.add(:base, "Either merchant or name must be present")+ errors.add(:base, :merchant_or_name_required)endenddiff --git a/app/models/rule.rb b/app/models/rule.rbindex b53f80f833..d5b89eef01 100644--- a/app/models/rule.rb+++ b/app/models/rule.rb@@ -140,14 +140,14 @@ class Rule < ApplicationRecordreturn if new_record? && !actions.empty?if actions.reject(&:marked_for_destruction?).empty?- errors.add(:base, "must have at least one action")+ errors.add(:base, :min_actions)endenddef no_duplicate_actionsaction_types = actions.reject(&:marked_for_destruction?).map(&:action_type)- errors.add(:base, "Rule cannot have duplicate actions #{action_types.inspect}") if action_types.uniq.count != action_types.count+ errors.add(:base, :duplicate_actions, types: action_types.inspect) if action_types.uniq.count != action_types.countend# Validation: To keep rules simple and easy to understand, we don't allow nested compound conditions.@@ -157,7 +157,7 @@ class Rule < ApplicationRecordconditions.each do |condition|if condition.compound?if condition.sub_conditions.any? { |sub_condition| sub_condition.compound? }- errors.add(:base, "Compound conditions cannot be nested")+ errors.add(:base, :nested_conditions)endendenddiff --git a/app/models/rule_import.rb b/app/models/rule_import.rbindex 2fac4cb218..31cf4025af 100644--- a/app/models/rule_import.rb+++ b/app/models/rule_import.rb@@ -115,7 +115,7 @@ class RuleImport < Import# Validate resource typeunless resource_type == "transaction"- errors.add(:base, "Unsupported resource type: #{resource_type}")+ errors.add(:base, :unsupported_resource_type, resource_type: resource_type)raise ActiveRecord::RecordInvalid.new(self)end@@ -124,13 +124,13 @@ class RuleImport < Importconditions_data = parse_json_safely(row.conditions, "conditions")actions_data = parse_json_safely(row.actions, "actions")rescue JSON::ParserError => e- errors.add(:base, "Invalid JSON in conditions or actions: #{e.message}")+ errors.add(:base, :invalid_json, message: e.message)raise ActiveRecord::RecordInvalid.new(self)end# Validate we have at least one actionif actions_data.empty?- errors.add(:base, "Rule must have at least one action")+ errors.add(:base, :min_actions)raise ActiveRecord::RecordInvalid.new(self)enddiff --git a/app/models/simplefin_account.rb b/app/models/simplefin_account.rbindex bf9571edb4..049834667d 100644--- a/app/models/simplefin_account.rb+++ b/app/models/simplefin_account.rb@@ -137,6 +137,6 @@ class SimplefinAccount < ApplicationRecordenddef has_balancereturn if current_balance.present? || available_balance.present?- errors.add(:base, "SimpleFin account must have either current or available balance")+ errors.add(:base, :no_balance)endenddiff --git a/app/models/sophtron_account.rb b/app/models/sophtron_account.rbindex e227698830..8179b7b849 100644--- a/app/models/sophtron_account.rb+++ b/app/models/sophtron_account.rb@@ -158,7 +158,7 @@ class SophtronAccount < ApplicationRecordenddef has_balancereturn if balance.present? || available_balance.present?- errors.add(:base, "Sophtron account must have either current or available balance")+ errors.add(:base, :no_balance)enddef first_present(hash, *keys)diff --git a/app/models/sso_provider.rb b/app/models/sso_provider.rbindex f9f2ef7c4d..b5c9fe25bb 100644--- a/app/models/sso_provider.rb+++ b/app/models/sso_provider.rb@@ -90,7 +90,7 @@ class SsoProvider < ApplicationRecordidp_sso_url = settings&.dig("idp_sso_url")if idp_metadata_url.blank? && idp_sso_url.blank?- errors.add(:settings, "Either IdP Metadata URL or IdP SSO URL is required for SAML providers")+ errors.add(:settings, :saml_url_required)end# If using manual config, require certificate@@ -99,17 +99,17 @@ class SsoProvider < ApplicationRecordidp_fingerprint = settings&.dig("idp_cert_fingerprint")if idp_cert.blank? && idp_fingerprint.blank?- errors.add(:settings, "Either IdP Certificate or Certificate Fingerprint is required when not using metadata URL")+ errors.add(:settings, :saml_cert_required)endend# Validate URL formats if providedif idp_metadata_url.present? && !valid_url?(idp_metadata_url)- errors.add(:settings, "IdP Metadata URL must be a valid URL")+ errors.add(:settings, :metadata_url_invalid)endif idp_sso_url.present? && !valid_url?(idp_sso_url)- errors.add(:settings, "IdP SSO URL must be a valid URL")+ errors.add(:settings, :sso_url_invalid)endenddiff --git a/app/models/transfer.rb b/app/models/transfer.rbindex d2dcbf667a..878e899be7 100644--- a/app/models/transfer.rb+++ b/app/models/transfer.rb@@ -107,12 +107,12 @@ class Transfer < ApplicationRecordprivatedef transfer_has_different_accountsreturn unless inflow_transaction&.entry && outflow_transaction&.entry- errors.add(:base, "Must be from different accounts") if to_account == from_account+ errors.add(:base, :different_accounts) if to_account == from_accountenddef transfer_has_same_familyreturn unless inflow_transaction&.entry && outflow_transaction&.entry- errors.add(:base, "Must be from same family") unless to_account&.family == from_account&.family+ errors.add(:base, :same_family) unless to_account&.family == from_account&.familyenddef transfer_has_opposite_amounts@@ -126,10 +126,10 @@ class Transfer < ApplicationRecordif inflow_entry.currency == outflow_entry.currency# For same currency, amounts must be exactly opposite- errors.add(:base, "Must have opposite amounts") if inflow_amount + outflow_amount != 0+ errors.add(:base, :opposite_amounts) if inflow_amount + outflow_amount != 0else# For different currencies, just check the signs are opposite- errors.add(:base, "Must have opposite amounts") unless inflow_amount.negative? && outflow_amount.positive?+ errors.add(:base, :opposite_amounts) unless inflow_amount.negative? && outflow_amount.positive?endend@@ -138,6 +138,6 @@ class Transfer < ApplicationRecorddate_diff = (inflow_transaction.entry.date - outflow_transaction.entry.date).absmax_days = status == "confirmed" ? 30 : 4- errors.add(:base, "Must be within #{max_days} days") if date_diff > max_days+ errors.add(:base, :within_days, count: max_days) if date_diff > max_daysendenddiff --git a/app/views/accounts/_account.html.erb b/app/views/accounts/_account.html.erbindex 59dca6c4eb..bcc57a68d7 100644--- a/app/views/accounts/_account.html.erb+++ b/app/views/accounts/_account.html.erb@@ -54,7 +54,7 @@<% if account.draft? %><%= render DS::Link.new(- text: "Complete setup",+ text: t(".complete_setup"),href: edit_account_path(account, return_to: return_to),variant: :outline,frame: :modaldiff --git a/app/views/accounts/new/_container.html.erb b/app/views/accounts/new/_container.html.erbindex 387a59f147..6c1c16112f 100644--- a/app/views/accounts/new/_container.html.erb+++ b/app/views/accounts/new/_container.html.erb@@ -29,13 +29,13 @@<div class="border-t border-alpha-black-25 px-4 pt-4 text-secondary text-sm justify-between hidden md:flex"><div class="flex space-x-5"><div class="flex items-center space-x-2">- <span>Select</span>+ <span><%= t(".select") %></span><kbd class="bg-alpha-black-50 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.1)] p-1 rounded-md flex w-5 h-5 shrink-0 grow-0 items-center justify-center"><%= icon("corner-down-left", size: "xs") %></kbd></div><div class="flex items-center space-x-2">- <span>Navigate</span>+ <span><%= t(".navigate") %></span><kbd class="bg-alpha-black-50 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.1)] p-1 rounded-md flex w-5 h-5 shrink-0 grow-0 items-center justify-center"><%= icon("arrow-up", size: "xs") %></kbd>@@ -45,7 +45,7 @@</div></div><div class="flex items-center space-x-2">- <button data-action="DS--dialog#close">Close</button>+ <button data-action="DS--dialog#close"><%= t(".close") %></button><kbd class="bg-alpha-black-50 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.1)] p-1 rounded-md flex w-8 h-5 shrink-0 grow-0 items-center justify-center text-xs">ESC</kbd></div></div>diff --git a/app/views/accounts/show/_activity.html.erb b/app/views/accounts/show/_activity.html.erbindex a36407a1f7..5660695c99 100644--- a/app/views/accounts/show/_activity.html.erb+++ b/app/views/accounts/show/_activity.html.erb@@ -7,11 +7,11 @@<% unless @account.linked? %><% if @account.permission_for(Current.user).in?([ :owner, :full_control ]) %><%= render DS::Menu.new(variant: "button") do |menu| %>- <% menu.with_button(text: "New", variant: "secondary", icon: "plus") %>+ <% menu.with_button(text: t(".new"), variant: "secondary", icon: "plus") %><% menu.with_item(variant: "link",- text: "New balance",+ text: t(".new_balance"),icon: "circle-dollar-sign",href: new_valuation_path(account_id: @account.id),data: { turbo_frame: :modal }) %>@@ -48,7 +48,7 @@<%= icon("search") %><%= hidden_field_tag :account_id, @account.id %><%= form.search_field :search,- placeholder: "Search entries by name",+ placeholder: t(".search_placeholder"),value: @q[:search],class: "form-field__input placeholder:text-sm placeholder:text-secondary","data-auto-submit-form-target": "auto" %>diff --git a/app/views/accounts/show/_header.html.erb b/app/views/accounts/show/_header.html.erbindex cafd978119..ddbad5a2bd 100644--- a/app/views/accounts/show/_header.html.erb+++ b/app/views/accounts/show/_header.html.erb@@ -17,7 +17,7 @@<% end %><% if account.draft? %><%= render DS::Link.new(- text: "Complete setup",+ text: t(".complete_setup"),href: edit_account_path(account),variant: :outline,size: :sm,diff --git a/app/views/accounts/show/_menu.html.erb b/app/views/accounts/show/_menu.html.erbindex cb577369e7..de1b77626d 100644--- a/app/views/accounts/show/_menu.html.erb+++ b/app/views/accounts/show/_menu.html.erb@@ -3,9 +3,9 @@<% permission = account.permission_for(Current.user) %><%= render DS::Menu.new(testid: "account-menu") do |menu| %><% if permission.in?([ :owner, :full_control ]) %>- <% menu.with_item(variant: "link", text: "Edit", href: edit_account_path(account), icon: "pencil-line", data: { turbo_frame: :modal }) %>+ <% menu.with_item(variant: "link", text: t(".edit"), href: edit_account_path(account), icon: "pencil-line", data: { turbo_frame: :modal }) %><% end %>- <% menu.with_item(variant: "link", text: "Sharing", href: account_sharing_path(account), icon: "users", data: { turbo_frame: :modal }) %>+ <% menu.with_item(variant: "link", text: t(".sharing"), href: account_sharing_path(account), icon: "users", data: { turbo_frame: :modal }) %><% menu.with_item(variant: "link", text: t(".statements"), href: account_path(account, tab: "statements"), icon: "archive") %><% if permission.in?([ :owner, :full_control ]) %>@@ -31,7 +31,7 @@<% if account.owned_by?(Current.user) && !account.linked? %><% menu.with_item(variant: "button",- text: "Delete account",+ text: t(".delete_account"),href: account_path(account),method: :delete,icon: "trash-2",diff --git a/app/views/admin/sso_providers/_form.html.erb b/app/views/admin/sso_providers/_form.html.erbindex 5a3527c3eb..9845bab1a9 100644--- a/app/views/admin/sso_providers/_form.html.erb+++ b/app/views/admin/sso_providers/_form.html.erb@@ -6,7 +6,7 @@<%= icon "alert-circle", class: "w-5 h-5 text-destructive mr-2 shrink-0" %><div><p class="text-sm font-medium text-destructive">- <%= pluralize(sso_provider.errors.count, "error") %> prohibited this provider from being saved:+ <%= t("admin.sso_providers.form.errors_title", count: sso_provider.errors.count) %></p><ul class="mt-2 text-sm text-destructive list-disc list-inside"><% sso_provider.errors.full_messages.each do |message| %>@@ -20,38 +20,38 @@<%= styled_form_with model: [:admin, sso_provider], class: "space-y-6", data: { controller: "admin-sso-form" } do |form| %><div class="space-y-4">- <h3 class="font-medium text-primary">Basic Information</h3>+ <h3 class="font-medium text-primary"><%= t("admin.sso_providers.form.basic_information") %></h3><div class="grid grid-cols-1 gap-4 sm:grid-cols-2"><%= form.select :strategy,options_for_select([- ["OpenID Connect", "openid_connect"],- ["SAML 2.0", "saml"],- ["Google OAuth2", "google_oauth2"],- ["GitHub", "github"]+ [t("admin.sso_providers.form.strategy_openid_connect"), "openid_connect"],+ [t("admin.sso_providers.form.strategy_saml"), "saml"],+ [t("admin.sso_providers.form.strategy_google_oauth2"), "google_oauth2"],+ [t("admin.sso_providers.form.strategy_github"), "github"]], sso_provider.strategy),- { label: "Strategy" },+ { label: t("admin.sso_providers.form.strategy_label") },{ data: { action: "change->admin-sso-form#toggleFields" } } %><%= form.text_field :name,- label: "Name",- placeholder: "e.g., keycloak, authentik",+ label: t("admin.sso_providers.form.name_label"),+ placeholder: t("admin.sso_providers.form.name_placeholder"),required: true,data: { action: "input->admin-sso-form#updateCallbackUrl" } %></div>- <p class="text-xs text-secondary -mt-2">Unique identifier (lowercase, numbers, underscores only)</p>+ <p class="text-xs text-secondary -mt-2"><%= t("admin.sso_providers.form.name_help") %></p><div class="grid grid-cols-1 gap-4 sm:grid-cols-2"><%= form.text_field :label,- label: "Button Label",- placeholder: "e.g., Sign in with Keycloak",+ label: t("admin.sso_providers.form.label_label"),+ placeholder: t("admin.sso_providers.form.label_placeholder"),required: true %><div><%= form.text_field :icon,- label: "Icon (optional)",- placeholder: "e.g., key, shield" %>- <p class="text-xs text-secondary mt-1">Lucide icon name for the login button</p>+ label: t("admin.sso_providers.form.icon_label"),+ placeholder: t("admin.sso_providers.form.icon_placeholder") %>+ <p class="text-xs text-secondary mt-1"><%= t("admin.sso_providers.form.icon_help") %></p></div></div>@@ -65,42 +65,42 @@</div><div class="border-t border-primary pt-4 space-y-4">- <h3 class="font-medium text-primary">OAuth/OIDC Configuration</h3>+ <h3 class="font-medium text-primary"><%= t("admin.sso_providers.form.oauth_configuration") %></h3><div data-oidc-field class="<%= "hidden" unless sso_provider.strategy == "openid_connect" %>"><%= form.text_field :issuer,- label: "Issuer URL",- placeholder: "https://your-idp.example.com/realms/your-realm",+ label: t("admin.sso_providers.form.issuer_label"),+ placeholder: t("admin.sso_providers.form.issuer_placeholder"),data: { action: "blur->admin-sso-form#validateIssuer" } %>- <p class="text-xs text-secondary mt-1">OIDC issuer URL (validates .well-known/openid-configuration)</p>+ <p class="text-xs text-secondary mt-1"><%= t("admin.sso_providers.form.issuer_help") %></p></div><%= form.text_field :client_id,- label: "Client ID",- placeholder: "your-client-id",+ label: t("admin.sso_providers.form.client_id_label"),+ placeholder: t("admin.sso_providers.form.client_id_placeholder"),required: true %><%= form.password_field :client_secret,- label: "Client Secret",- placeholder: sso_provider.persisted? ? "••••••••" : "your-client-secret",+ label: t("admin.sso_providers.form.client_secret_label"),+ placeholder: sso_provider.persisted? ? t("admin.sso_providers.form.client_secret_placeholder_existing") : t("admin.sso_providers.form.client_secret_placeholder_new"),required: !sso_provider.persisted? %><% if sso_provider.persisted? %>- <p class="text-xs text-secondary -mt-2">Leave blank to keep existing secret</p>+ <p class="text-xs text-secondary -mt-2"><%= t("admin.sso_providers.form.client_secret_help_existing") %></p><% end %><div data-oidc-field class="<%= "hidden" unless sso_provider.strategy == "openid_connect" %>">- <label class="block text-sm font-medium text-primary mb-1">Callback URL</label>+ <label class="block text-sm font-medium text-primary mb-1"><%= t("admin.sso_providers.form.redirect_uri_label") %></label><div class="flex items-center gap-2"><code class="flex-1 bg-surface px-3 py-2 rounded text-sm text-secondary overflow-x-auto"data-admin-sso-form-target="callbackUrl"><%= "#{request.base_url}/auth/#{sso_provider.name.presence || 'PROVIDER_NAME'}/callback" %></code><button type="button"data-action="click->admin-sso-form#copyCallback"class="p-2 text-secondary hover:text-primary shrink-0"- title="Copy to clipboard">+ title="<%= t("admin.sso_providers.form.copy_button") %>"><%= icon "copy", class: "w-4 h-4" %></button></div>- <p class="text-xs text-secondary mt-1">Configure this URL in your identity provider</p>+ <p class="text-xs text-secondary mt-1"><%= t("admin.sso_providers.form.redirect_uri_help") %></p></div></div>@@ -172,18 +172,18 @@</details><div>- <label class="block text-sm font-medium text-primary mb-1">SP Callback URL (ACS URL)</label>+ <label class="block text-sm font-medium text-primary mb-1"><%= t("admin.sso_providers.form.saml_sp_callback_url_label") %></label><div class="flex items-center gap-2"><code class="flex-1 bg-surface px-3 py-2 rounded text-sm text-secondary overflow-x-auto"data-admin-sso-form-target="samlCallbackUrl"><%= "#{request.base_url}/auth/#{sso_provider.name.presence || 'PROVIDER_NAME'}/callback" %></code><button type="button"data-action="click->admin-sso-form#copySamlCallback"class="p-2 text-secondary hover:text-primary shrink-0"- title="Copy to clipboard">+ title="<%= t("admin.sso_providers.form.copy_button") %>"><%= icon "copy", class: "w-4 h-4" %></button></div>- <p class="text-xs text-secondary mt-1">Configure this URL as the Assertion Consumer Service URL in your IdP</p>+ <p class="text-xs text-secondary mt-1"><%= t("admin.sso_providers.form.saml_sp_callback_url_help") %></p></div></div>@@ -282,8 +282,8 @@</div><div class="flex gap-3">- <%= link_to "Cancel", admin_sso_providers_path, class: "px-4 py-2 text-sm font-medium text-secondary hover:text-primary" %>- <%= form.submit sso_provider.persisted? ? "Update Provider" : "Create Provider",+ <%= link_to t("admin.sso_providers.form.cancel"), admin_sso_providers_path, class: "px-4 py-2 text-sm font-medium text-secondary hover:text-primary" %>+ <%= form.submit sso_provider.persisted? ? t("admin.sso_providers.form.update_provider") : t("admin.sso_providers.form.create_provider"),class: "px-4 py-2 button-bg-primary text-inverse rounded-lg text-sm font-medium hover:button-bg-primary-hover" %></div></div>diff --git a/app/views/admin/sso_providers/index.html.erb b/app/views/admin/sso_providers/index.html.erbindex c9ccfc6a1b..c799d374d2 100644--- a/app/views/admin/sso_providers/index.html.erb+++ b/app/views/admin/sso_providers/index.html.erb@@ -1,14 +1,14 @@-<%= content_for :page_title, "SSO Providers" %>+<%= content_for :page_title, t(".page_title") %><div class="space-y-4"><p class="text-secondary mb-4">- Manage single sign-on authentication providers for your instance.+ <%= t(".description") %><% unless FeatureFlags.db_sso_providers? %>- <span class="text-warning">Changes require a server restart to take effect.</span>+ <span class="text-warning"><%= t(".restart_required") %></span><% end %></p>- <%= settings_section title: "Configured Providers" do %>+ <%= settings_section title: t(".configured_providers") do %><% if @sso_providers.any? %><div class="divide-y divide-alpha-black-200 theme-dark:divide-alpha-white-200"><% @sso_providers.each do |provider| %>@@ -27,20 +27,20 @@<div class="flex items-center gap-2"><% if provider.enabled? %><span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800">- Enabled+ <%= t(".enabled") %></span><% else %><span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-surface text-secondary">- Disabled+ <%= t(".disabled") %></span><% end %>- <%= link_to edit_admin_sso_provider_path(provider), class: "p-1 text-secondary hover:text-primary", title: "Edit" do %>+ <%= link_to edit_admin_sso_provider_path(provider), class: "p-1 text-secondary hover:text-primary", title: t(".edit") do %><%= icon "pencil", class: "w-4 h-4" %><% end %>- <%= button_to toggle_admin_sso_provider_path(provider), method: :patch, class: "p-1 text-secondary hover:text-primary", title: provider.enabled? ? "Disable" : "Enable", form: { data: { turbo_confirm: "Are you sure you want to #{provider.enabled? ? 'disable' : 'enable'} this provider?" } } do %>+ <%= button_to toggle_admin_sso_provider_path(provider), method: :patch, class: "p-1 text-secondary hover:text-primary", title: provider.enabled? ? t(".disable") : t(".enable"), form: { data: { turbo_confirm: provider.enabled? ? t("admin.sso_providers.toggle.confirm_disable") : t("admin.sso_providers.toggle.confirm_enable") } } do %><%= icon provider.enabled? ? "toggle-right" : "toggle-left", class: "w-4 h-4" %><% end %>- <%= button_to admin_sso_provider_path(provider), method: :delete, class: "p-1 text-destructive hover:text-destructive", title: "Delete", form: { data: { turbo_confirm: "Are you sure you want to delete this provider? This action cannot be undone." } } do %>+ <%= button_to admin_sso_provider_path(provider), method: :delete, class: "p-1 text-destructive hover:text-destructive", title: t(".delete"), form: { data: { turbo_confirm: t("admin.sso_providers.destroy.confirm") } } do %><%= icon "trash-2", class: "w-4 h-4" %><% end %></div>@@ -50,14 +50,14 @@<% else %><div class="text-center py-6"><%= icon "key", class: "w-12 h-12 mx-auto text-secondary mb-3" %>- <p class="text-secondary">No SSO providers configured yet.</p>+ <p class="text-secondary"><%= t(".no_providers_message") %></p></div><% end %><div class="pt-4 border-t border-primary"><%= link_to new_admin_sso_provider_path, class: "inline-flex items-center gap-2 text-sm font-medium text-primary hover:text-secondary" do %><%= icon "plus", class: "w-4 h-4" %>- Add Provider+ <%= t(".add_provider") %><% end %></div><% end %>@@ -100,26 +100,25 @@<% end %><% end %>- <%= settings_section title: "Configuration Mode", collapsible: true, open: false do %>+ <%= settings_section title: t(".configuration_mode"), collapsible: true, open: false do %><div class="space-y-3"><div class="flex items-center justify-between"><div>- <p class="font-medium text-primary">Database-backed providers</p>- <p class="text-sm text-secondary">Load providers from database instead of YAML config</p>+ <p class="font-medium text-primary"><%= t(".db_backed_providers") %></p>+ <p class="text-sm text-secondary"><%= t(".db_backed_providers_description") %></p></div><% if FeatureFlags.db_sso_providers? %><span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-green-100 text-green-800">- Enabled+ <%= t(".enabled") %></span><% else %><span class="inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-surface text-secondary">- Disabled+ <%= t(".disabled") %></span><% end %></div><p class="text-sm text-secondary">- Set <code class="bg-surface px-1 py-0.5 rounded text-xs">AUTH_PROVIDERS_SOURCE=db</code> to enable database-backed providers.- This allows changes without server restarts.+ <%= t(".db_backed_providers_help_html") %></p></div><% end %>diff --git a/app/views/assistant_messages/_assistant_message.html.erb b/app/views/assistant_messages/_assistant_message.html.erbindex 9768ee0d0f..6b00a3c2da 100644--- a/app/views/assistant_messages/_assistant_message.html.erb+++ b/app/views/assistant_messages/_assistant_message.html.erb@@ -9,7 +9,7 @@<% elsif assistant_message.reasoning? %><details class="group mb-1"><summary class="flex items-center gap-2">- <p class="text-secondary text-sm">Assistant reasoning</p>+ <p class="text-secondary text-sm"><%= t(".assistant_reasoning") %></p><%= icon("chevron-down", class: "group-open:transform group-open:rotate-180") %></summary>diff --git a/app/views/assistant_messages/_tool_calls.html.erb b/app/views/assistant_messages/_tool_calls.html.erbindex 59c1492257..d2adace6a8 100644--- a/app/views/assistant_messages/_tool_calls.html.erb+++ b/app/views/assistant_messages/_tool_calls.html.erb@@ -3,15 +3,15 @@<details class="my-2 group mb-4"><summary class="text-secondary text-xs cursor-pointer flex items-center gap-2"><%= icon("chevron-right", class: "group-open:transform group-open:rotate-90") %>- <p>Tool Calls</p>+ <p><%= t(".tool_calls") %></p></summary><div class="mt-2"><% message.tool_calls.each do |tool_call| %><div class="bg-blue-50 border-blue-200 px-3 py-2 rounded-lg border mb-2">- <p class="text-secondary text-xs">Function:</p>+ <p class="text-secondary text-xs"><%= t(".function") %></p><p class="text-primary text-sm font-mono"><%= tool_call.function_name %></p>- <p class="text-secondary text-xs mt-2">Arguments:</p>+ <p class="text-secondary text-xs mt-2"><%= t(".arguments") %></p><pre class="text-primary text-sm font-mono whitespace-pre-wrap"><%= tool_call.function_arguments %></pre></div><% end %>diff --git a/app/views/budget_categories/_confirm_button.html.erb b/app/views/budget_categories/_confirm_button.html.erbindex a9d983317f..730ebf1e30 100644--- a/app/views/budget_categories/_confirm_button.html.erb+++ b/app/views/budget_categories/_confirm_button.html.erb@@ -1,6 +1,6 @@<div id="<%= dom_id(budget, :confirm_button) %>"><%= render DS::Button.new(- text: "Confirm",+ text: t(".confirm"),variant: "primary",full_width: true,href: budget_path(budget),diff --git a/app/views/budget_categories/_no_categories.html.erb b/app/views/budget_categories/_no_categories.html.erbindex 44d8915b18..ed949d2d92 100644--- a/app/views/budget_categories/_no_categories.html.erb+++ b/app/views/budget_categories/_no_categories.html.erb@@ -1,18 +1,18 @@<div class="flex justify-center items-center"><div class="text-center flex flex-col items-center max-w-[500px]">- <h2 class="text-lg text-primary font-medium">Oops!</h2>+ <h2 class="text-lg text-primary font-medium"><%= t(".oops") %></h2><p class="text-secondary text-sm max-w-sm mx-auto mb-4">- You have not created or assigned any expense categories to your transactions yet.+ <%= t(".no_categories_message") %></p><div class="flex items-center gap-2"><%= render DS::Button.new(- text: "Use defaults (recommended)",+ text: t(".use_defaults"),href: bootstrap_categories_path,) %><%= render DS::Link.new(- text: "New category",+ text: t(".new_category"),variant: "outline",icon: "plus",href: new_category_path,diff --git a/app/views/budget_categories/index.html.erb b/app/views/budget_categories/index.html.erbindex d5ded43d77..049d5ede8f 100644--- a/app/views/budget_categories/index.html.erb+++ b/app/views/budget_categories/index.html.erb@@ -8,9 +8,9 @@<div><div class="space-y-6"><div class="text-center space-y-2">- <h1 class="text-3xl text-primary font-medium">Edit your category budgets</h1>+ <h1 class="text-3xl text-primary font-medium"><%= t(".title") %></h1><p class="text-secondary text-sm max-w-md mx-auto">- Adjust category budgets to set spending limits. Unallocated funds will be automatically assigned as uncategorized.+ <%= t(".description") %></p></div>diff --git a/app/views/budget_categories/show.html.erb b/app/views/budget_categories/show.html.erbindex 154a7958f7..6d8d64ed9d 100644--- a/app/views/budget_categories/show.html.erb+++ b/app/views/budget_categories/show.html.erb@@ -1,7 +1,7 @@<%= render DS::Dialog.new(variant: :drawer) do |dialog| %><% dialog.with_header do %><div>- <p class="text-sm text-secondary">Category</p>+ <p class="text-sm text-secondary"><%= t(".category") %></p><h3 class="text-2xl font-medium text-primary"><%= @budget_category.name %></h3>@@ -26,12 +26,12 @@<% end %><% dialog.with_body do %>- <% dialog.with_section(title: "Overview", open: true) do %>+ <% dialog.with_section(title: t(".overview"), open: true) do %><div class="pb-4"><dl class="space-y-3 px-3 py-2"><div class="flex items-center justify-between text-sm"><dt class="text-secondary">- <%= @budget_category.budget.start_date.strftime("%b %Y") %> spending+ <%= t(".spending", date: @budget_category.budget.start_date.strftime("%b %Y")) %></dt><dd class="text-primary font-medium privacy-sensitive"><%= format_money @budget_category.actual_spending_money %>@@ -40,30 +40,30 @@<% if @budget_category.budget.initialized? %><div class="flex items-center justify-between text-sm">- <dt class="text-secondary">Status</dt>+ <dt class="text-secondary"><%= t(".status") %></dt><% if @budget_category.available_to_spend.negative? %><dd class="flex items-center gap-1 text-red-500 font-medium privacy-sensitive"><%= icon "alert-circle", size: "sm", color: "destructive" %><%= format_money @budget_category.available_to_spend_money.abs %>- <span>overspent</span>+ <span><%= t(".overspent") %></span></dd><% elsif @budget_category.available_to_spend.zero? %><dd class="flex items-center gap-1 text-orange-500 font-medium privacy-sensitive"><%= icon "x-circle", size: "sm", color: "warning" %><%= format_money @budget_category.available_to_spend_money %>- <span>left</span>+ <span><%= t(".left") %></span></dd><% else %><dd class="text-primary flex items-center gap-1 text-green-500 font-medium privacy-sensitive"><%= icon "check-circle", size: "sm", color: "success" %><%= format_money @budget_category.available_to_spend_money %>- <span>left</span>+ <span><%= t(".left") %></span></dd><% end %></div><div class="flex items-center justify-between text-sm">- <dt class="text-secondary">Budgeted</dt>+ <dt class="text-secondary"><%= t(".budgeted") %></dt><dd class="text-primary font-medium privacy-sensitive"><%= format_money @budget_category.budgeted_spending_money %></dd>@@ -71,14 +71,14 @@<% end %><div class="flex items-center justify-between text-sm">- <dt class="text-secondary">Monthly average spending</dt>+ <dt class="text-secondary"><%= t(".monthly_average_spending") %></dt><dd class="text-primary font-medium privacy-sensitive"><%= @budget_category.avg_monthly_expense_money.format %></dd></div><div class="flex items-center justify-between text-sm">- <dt class="text-secondary">Monthly median spending</dt>+ <dt class="text-secondary"><%= t(".monthly_median_spending") %></dt><dd class="text-primary font-medium privacy-sensitive"><%= @budget_category.median_monthly_expense_money.format %></dd>@@ -87,7 +87,7 @@</div><% end %>- <% dialog.with_section(title: "Recent Transactions", open: true) do %>+ <% dialog.with_section(title: t(".recent_transactions"), open: true) do %><div class="space-y-2"><div class="px-3 py-4 space-y-2"><% if @recent_transactions.any? %>@@ -120,7 +120,7 @@</ul><%= render DS::Link.new(- text: "View all category transactions",+ text: t(".view_all_transactions"),variant: "outline",full_width: true,href: transactions_path(q: {@@ -132,7 +132,7 @@) %><% else %><p class="text-secondary text-sm mb-4">- No transactions found for this budget period.+ <%= t(".no_transactions") %></p><% end %></div>diff --git a/app/views/budgets/_actuals_summary.html.erb b/app/views/budgets/_actuals_summary.html.erbindex fe9509d9a3..524fb0006d 100644--- a/app/views/budgets/_actuals_summary.html.erb+++ b/app/views/budgets/_actuals_summary.html.erb@@ -2,7 +2,7 @@<div><div class="p-4 border-b border-secondary">- <h3 class="text-sm text-secondary mb-2">Income</h3>+ <h3 class="text-sm text-secondary mb-2"><%= t(".income") %></h3><span class="inline-block mb-2 text-xl font-medium text-primary privacy-sensitive"><%= budget.actual_income_money.format %>@@ -30,7 +30,7 @@</div><div class="p-4">- <h3 class="text-sm text-secondary mb-2">Expenses</h3>+ <h3 class="text-sm text-secondary mb-2"><%= t(".expenses") %></h3><span class="inline-block mb-2 text-xl font-medium text-primary privacy-sensitive"><%= budget.actual_spending_money.format %></span>diff --git a/app/views/budgets/_budget_donut.html.erb b/app/views/budgets/_budget_donut.html.erbindex 8e0520b371..15c88046ff 100644--- a/app/views/budgets/_budget_donut.html.erb+++ b/app/views/budgets/_budget_donut.html.erb@@ -5,7 +5,7 @@<div data-donut-chart-target="defaultContent" class="flex flex-col items-center"><% if budget.initialized? %><div class="text-secondary text-sm mb-2">- <span>Spent</span>+ <span><%= t(".spent") %></span></div><div class="mb-2 text-3xl font-medium privacy-sensitive <%= budget.available_to_spend.negative? ? "text-red-500" : "text-primary" %>">@@ -13,7 +13,7 @@</div><%= render DS::Link.new(- text: "of #{budget.budgeted_spending_money.format}",+ text: t(".of_budget", amount: budget.budgeted_spending_money.format),variant: "secondary",icon: "pencil",icon_position: "right",@@ -26,7 +26,7 @@</div><%= render DS::Link.new(- text: "New budget",+ text: t(".new_budget"),size: "sm",icon: "plus",href: edit_budget_path(budget)@@ -47,7 +47,7 @@</p><%= render DS::Link.new(- text: "of #{bc.budgeted_spending_money.format(precision: 0)}",+ text: t(".of_budget", amount: bc.budgeted_spending_money.format(precision: 0)),variant: "secondary",icon: "pencil",icon_position: "right",@@ -59,7 +59,7 @@<% end %><div id="segment_unused" class="hidden">- <p class="text-sm text-secondary text-center mb-2">Unused</p>+ <p class="text-sm text-secondary text-center mb-2"><%= t(".unused") %></p><p class="text-3xl font-medium text-primary privacy-sensitive"><%= format_money(budget.available_to_spend_money) %>diff --git a/app/views/budgets/_budget_header.html.erb b/app/views/budgets/_budget_header.html.erbindex 6f7d59fce7..9346d6ba7d 100644--- a/app/views/budgets/_budget_header.html.erb+++ b/app/views/budgets/_budget_header.html.erb@@ -40,7 +40,7 @@<div class="ml-auto"><%= render DS::Link.new(- text: "Today",+ text: t(".today"),variant: "outline",href: budget_path(Budget.date_to_param(Date.current)),) %>diff --git a/app/views/budgets/_budgeted_summary.html.erb b/app/views/budgets/_budgeted_summary.html.erbindex 07905d0d30..86a9f12106 100644--- a/app/views/budgets/_budgeted_summary.html.erb+++ b/app/views/budgets/_budgeted_summary.html.erb@@ -2,7 +2,7 @@<div><div class="p-4 border-b border-secondary">- <h3 class="text-sm text-secondary mb-2">Expected income</h3>+ <h3 class="text-sm text-secondary mb-2"><%= t(".expected_income") %></h3><span class="inline-block mb-2 text-xl font-medium text-primary privacy-sensitive"><%= format_money(budget.expected_income_money) %>@@ -19,12 +19,12 @@<% end %></div><div class="flex justify-between text-sm privacy-sensitive">- <p class="text-secondary"><%= format_money(budget.actual_income_money) %> earned</p>+ <p class="text-secondary"><%= t(".earned", amount: format_money(budget.actual_income_money)) %></p><p class="font-medium"><% if budget.remaining_expected_income.negative? %>- <span class="text-green-500"><%= format_money(budget.remaining_expected_income_money.abs) %> over</span>+ <span class="text-green-500"><%= t(".over", amount: format_money(budget.remaining_expected_income_money.abs)) %></span><% else %>- <span class="text-primary"><%= format_money(budget.remaining_expected_income_money) %> left</span>+ <span class="text-primary"><%= t(".left", amount: format_money(budget.remaining_expected_income_money)) %></span><% end %></p></div>@@ -32,7 +32,7 @@</div><div class="p-4">- <h3 class="text-sm text-secondary mb-2">Budgeted</h3>+ <h3 class="text-sm text-secondary mb-2"><%= t(".budgeted") %></h3><span class="inline-block mb-2 text-xl font-medium text-primary privacy-sensitive"><%= format_money(budget.budgeted_spending_money) %>@@ -49,12 +49,12 @@<% end %></div><div class="flex justify-between text-sm privacy-sensitive">- <p class="text-secondary"><%= format_money(budget.actual_spending_money) %> spent</p>+ <p class="text-secondary"><%= t(".spent", amount: format_money(budget.actual_spending_money)) %></p><p class="font-medium"><% if budget.available_to_spend.negative? %>- <span class="text-destructive"><%= format_money(budget.available_to_spend_money.abs) %> over</span>+ <span class="text-destructive"><%= t(".over", amount: format_money(budget.available_to_spend_money.abs)) %></span><% else %>- <span class="text-primary"><%= format_money(budget.available_to_spend_money) %> left</span>+ <span class="text-primary"><%= t(".left", amount: format_money(budget.available_to_spend_money)) %></span><% end %></p></div>diff --git a/app/views/budgets/_over_allocation_warning.html.erb b/app/views/budgets/_over_allocation_warning.html.erbindex bd75fba282..16ebf72e64 100644--- a/app/views/budgets/_over_allocation_warning.html.erb+++ b/app/views/budgets/_over_allocation_warning.html.erb@@ -2,10 +2,10 @@<div class="flex flex-col gap-4 items-center justify-center h-full"><%= icon "alert-triangle", size: "lg", color: "destructive" %>- <p class="text-secondary text-sm text-center">You have over-allocated your budget. Please fix your allocations.</p>+ <p class="text-secondary text-sm text-center"><%= t(".over_allocated_message") %></p><%= render DS::Link.new(- text: "Fix allocations",+ text: t(".fix_allocations"),variant: "secondary",size: "sm",icon: "pencil",diff --git a/app/views/budgets/edit.html.erb b/app/views/budgets/edit.html.erbindex 3ec00b2208..abe757af62 100644--- a/app/views/budgets/edit.html.erb+++ b/app/views/budgets/edit.html.erb@@ -8,24 +8,24 @@<div><div class="space-y-4"><div class="text-center space-y-2">- <h1 class="text-3xl text-primary font-medium">Setup your budget</h1>+ <h1 class="text-3xl text-primary font-medium"><%= t(".setup_title") %></h1><p class="text-secondary text-sm max-w-sm mx-auto">- Enter your monthly earnings and planned spending below to setup your budget.+ <%= t(".setup_description") %></p></div><div class="mx-auto max-w-lg"><%= styled_form_with model: @budget, class: "space-y-3", data: { controller: "budget-form" } do |f| %>- <%= f.money_field :budgeted_spending, label: "Budgeted spending", required: true, disable_currency: true %>- <%= f.money_field :expected_income, label: "Expected income", required: true, disable_currency: true %>+ <%= f.money_field :budgeted_spending, label: t(".budgeted_spending"), required: true, disable_currency: true %>+ <%= f.money_field :expected_income, label: t(".expected_income"), required: true, disable_currency: true %><% if @budget.estimated_income && @budget.estimated_spending %><div class="border border-tertiary rounded-lg p-3 flex"><%= icon "sparkles" %><div class="ml-2 space-y-1 text-sm">- <h4 class="text-primary">Autosuggest income & spending budget</h4>+ <h4 class="text-primary"><%= t(".autosuggest_title") %></h4><p class="text-secondary">- This will be based on transaction history. AI can make mistakes, verify before continuing.+ <%= t(".autosuggest_description") %></p></div>@@ -40,7 +40,7 @@</div><% end %>- <%= f.submit "Continue" %>+ <%= f.submit t(".continue") %><% end %></div></div>diff --git a/app/views/categories/_form.html.erb b/app/views/categories/_form.html.erbindex 1577f8eb4b..66c5369e88 100644--- a/app/views/categories/_form.html.erb+++ b/app/views/categories/_form.html.erb@@ -14,7 +14,7 @@<div class="fixed right-0 sm:right-auto mx-2 sm:ml-8 sm:mr-0 mt-2 z-50 bg-container p-4 border border-alpha-black-25 rounded-2xl shadow-xs h-fit" data-category-target="popup"><div class="flex gap-2 flex-col mb-4" data-category-target="selection" style="<%= "display:none;" if @category.subcategory? %>"><div data-category-target="pickerSection"></div>- <h4 class="text-secondary text-sm">Color</h4>+ <h4 class="text-secondary text-sm"><%= t(".color") %></h4><div class="flex flex-wrap md:flex-nowrap gap-2 items-center" data-category-target="colorsSection"><% Category::COLORS.each do |color| %><label class="relative">@@ -34,14 +34,14 @@<%= icon "palette", size: "2xl", data: { action: "click->category#toggleSections" } %></div><div data-category-target="validationMessage" class="hidden self-start flex gap-1 items-center text-xs text-destructive ">- <span>Poor contrast, choose darker color or</span>+ <span><%= t(".poor_contrast") %></span><button type="button" class="underline cursor-pointer" data-action="category#autoAdjust">auto-adjust.</button></div></div></div><div class="flex flex-wrap gap-2 justify-center flex-col w-auto md:w-87">- <h4 class="text-secondary text-sm">Icon</h4>+ <h4 class="text-secondary text-sm"><%= t(".icon") %></h4><div class="flex flex-wrap gap-0.5 max-h-52 overflow-auto"><% Category.icon_codes.each do |icon| %><label class="relative">@@ -62,9 +62,9 @@<% end %><div class="space-y-2">- <%= f.text_field :name, placeholder: t(".placeholder"), required: true, autofocus: true, label: "Name", data: { color_avatar_target: "name" } %>+ <%= f.text_field :name, placeholder: t(".placeholder"), required: true, autofocus: true, label: t(".name_label"), data: { color_avatar_target: "name" } %><% unless category.parent? %>- <%= f.select :parent_id, categories.pluck(:name, :id), { include_blank: "(unassigned)", label: "Parent category (optional)" }, disabled: category.parent?, data: { action: "change->category#handleParentChange" } %>+ <%= f.select :parent_id, categories.pluck(:name, :id), { include_blank: t(".unassigned"), label: t(".parent_category_label") }, disabled: category.parent?, data: { action: "change->category#handleParentChange" } %><% end %></div></section>diff --git a/app/views/categories/index.html.erb b/app/views/categories/index.html.erbindex 8c53918319..7edac37eb2 100644--- a/app/views/categories/index.html.erb+++ b/app/views/categories/index.html.erb@@ -3,7 +3,7 @@<%= render DS::Menu.new do |menu| %><% menu.with_item(variant: "button",- text: "Delete all",+ text: t(".delete_all"),href: destroy_all_categories_path,method: :delete,icon: "trash-2",diff --git a/app/views/category/dropdowns/show.html.erb b/app/views/category/dropdowns/show.html.erbindex 91ada562ee..27a272ea41 100644--- a/app/views/category/dropdowns/show.html.erb+++ b/app/views/category/dropdowns/show.html.erb@@ -65,7 +65,7 @@data: { turbo_frame: "modal" } do %><%= icon("refresh-cw") %>- <p>Match transfer/payment</p>+ <p><%= t(".match_transfer") %></p><% end %><% end %>@@ -93,7 +93,7 @@<% end %></div>- <p>One-time <%= @transaction.entry.amount.negative? ? "income" : "expense" %></p>+ <p><%= t(".one_time", type: @transaction.entry.amount.negative? ? t(".income") : t(".expense")) %></p><span class="text-orange-500 ml-auto"><%= icon("asterisk", color: "current") %>diff --git a/app/views/chats/_ai_consent.html.erb b/app/views/chats/_ai_consent.html.erbindex d71023d81e..03266a8107 100644--- a/app/views/chats/_ai_consent.html.erb+++ b/app/views/chats/_ai_consent.html.erb@@ -3,14 +3,13 @@<%= render "chats/ai_avatar" %></div>- <h3 class="text-sm font-medium text-primary mb-1 -mt-2 text-center">Enable AI Chats</h3>+ <h3 class="text-sm font-medium text-primary mb-1 -mt-2 text-center"><%= t(".title") %></h3><p class="text-secondary mb-4 text-sm text-center"><% if Current.user.ai_available? %>- AI chat can answer financial questions and provide insights based on your data. To use this feature you'll need to explicitly enable it.+ <%= t(".available_description") %><% else %>- To use the AI assistant, you need to set the <code class="bg-surface-inset px-1 py-0.5 rounded font-mono text-xs">OPENAI_ACCESS_TOKEN</code>- environment variable or configure it in the Self-Hosting settings of your instance.+ <%= t(".unavailable_description_html") %><% end %></p>@@ -18,9 +17,9 @@<%= form_with url: user_path(Current.user), method: :patch, class: "w-full", data: { turbo: false } do |form| %><%= form.hidden_field "user[ai_enabled]", value: true %><%= form.hidden_field "user[redirect_to]", value: "home" %>- <%= form.submit "Enable AI Chats", class: "cursor-pointer hover:bg-inverse-hover w-full py-2 px-4 bg-inverse text-inverse rounded-lg text-sm font-medium" %>+ <%= form.submit t(".enable_button"), class: "cursor-pointer hover:bg-inverse-hover w-full py-2 px-4 bg-inverse text-inverse rounded-lg text-sm font-medium" %><% end %><% end %>- <p class="text-xs text-secondary text-center mt-2">Disable anytime. All data sent to our LLM providers is anonymized.</p>+ <p class="text-xs text-secondary text-center mt-2"><%= t(".disable_note") %></p></div>diff --git a/app/views/chats/_ai_greeting.html.erb b/app/views/chats/_ai_greeting.html.erbindex ad10d9cd06..f5baa52c69 100644--- a/app/views/chats/_ai_greeting.html.erb+++ b/app/views/chats/_ai_greeting.html.erb@@ -2,27 +2,27 @@<%= render "chats/ai_avatar" %><div class="max-w-[85%] text-sm space-y-4 text-primary">- <p>Hey <%= Current.user&.first_name || "there" %>! I'm an AI/large-language-model that can help with your finances. I have access to the web and your account data.</p>+ <p><%= t(".greeting", name: Current.user&.first_name || t(".there")) %></p><p>- You can use <span class="bg-container border border-secondary px-1.5 py-0.5 rounded font-mono text-xs">/</span> to access commands+ <%= t(".commands_hint_html") %></p><div class="space-y-3">- <p>Here's a few questions you can ask:</p>+ <p><%= t(".questions_intro") %></p><% questions = [{icon: "chart-area",- text: "Evaluate investment portfolio"+ text: t(".evaluate_portfolio")},{icon: "wallet-minimal",- text: "Show spending insights"+ text: t(".spending_insights")},{icon: "alert-triangle",- text: "Find unusual patterns"+ text: t(".unusual_patterns")}] %>diff --git a/app/views/chats/_chat.html.erb b/app/views/chats/_chat.html.erbindex fc082f3772..d10d9f7714 100644--- a/app/views/chats/_chat.html.erb+++ b/app/views/chats/_chat.html.erb@@ -14,14 +14,14 @@<%= render DS::Menu.new(icon_vertical: true) do |menu| %><% menu.with_item(variant: "link",- text: "Edit chat title",+ text: t(".edit_chat_title"),href: edit_chat_path(chat, ctx: "list"),icon: "pencil",frame: dom_id(chat, "title")) %><% menu.with_item(variant: "button",- text: "Delete chat",+ text: t(".delete_chat"),href: chat_path(chat),icon: "trash-2",method: :delete,diff --git a/app/views/chats/_chat_nav.html.erb b/app/views/chats/_chat_nav.html.erbindex 6cf7d28f25..ea093fc61a 100644--- a/app/views/chats/_chat_nav.html.erb+++ b/app/views/chats/_chat_nav.html.erb@@ -10,7 +10,7 @@icon: "menu",href: path,frame: chat_frame,- text: "All chats"+ text: t(".all_chats")) %><div class="grow">@@ -19,19 +19,19 @@</div><%= render DS::Menu.new(icon_vertical: true) do |menu| %>- <% menu.with_item(variant: "link", text: "Start new chat", href: new_chat_path, icon: "plus") %>+ <% menu.with_item(variant: "link", text: t(".start_new_chat"), href: new_chat_path, icon: "plus") %><% unless chat.new_record? %><% menu.with_item(variant: "link",- text: "Edit chat title",+ text: t(".edit_chat_title"),href: edit_chat_path(chat, ctx: "chat"),icon: "pencil",frame: dom_id(chat, "title")) %><% menu.with_item(variant: "button",- text: "Delete chat",+ text: t(".delete_chat"),href: chat_path(chat),icon: "trash-2",method: :delete,diff --git a/app/views/chats/_error.html.erb b/app/views/chats/_error.html.erbindex b1f590b882..c4ea7b9124 100644--- a/app/views/chats/_error.html.erb+++ b/app/views/chats/_error.html.erb@@ -11,7 +11,7 @@<p class="text-xs text-red-500"><%= chat.presentable_error_message %></p><%= render DS::Button.new(- text: "Retry",+ text: t(".retry"),href: retry_chat_path(chat),) %></div>diff --git a/app/views/chats/index.html.erb b/app/views/chats/index.html.erbindex 801865e311..8afa67c576 100644--- a/app/views/chats/index.html.erb+++ b/app/views/chats/index.html.erb@@ -10,14 +10,14 @@<% if @chats.any? %><div class="grow flex flex-col"><div class="flex items-center justify-between my-6">- <h1 class="text-xl font-medium">Chats</h1>+ <h1 class="text-xl font-medium"><%= t(".chats") %></h1><%= render DS::Link.new(id: "new-chat",icon: "plus",variant: "icon",href: new_chat_path,frame: chat_frame,- text: "New chat"+ text: t(".new_chat")) %></div><div class="space-y-2 px-0.5">@@ -26,7 +26,7 @@</div><% else %><div class="grow flex flex-col">- <h1 class="sr-only">Chats</h1>+ <h1 class="sr-only"><%= t(".chats") %></h1><div class="mt-auto py-8"><%= render "chats/ai_greeting" %></div>diff --git a/app/views/credit_cards/_overview.html.erb b/app/views/credit_cards/_overview.html.erbindex 1dfcbb0b7b..317191a144 100644--- a/app/views/credit_cards/_overview.html.erb+++ b/app/views/credit_cards/_overview.html.erb@@ -28,7 +28,7 @@<div class="flex justify-center py-8"><%= render DS::Link.new(- text: "Edit account details",+ text: t(".edit_account_details"),variant: "ghost",href: edit_credit_card_path(account),frame: :modaldiff --git a/app/views/doorkeeper/authorizations/error.html.erb b/app/views/doorkeeper/authorizations/error.html.erbindex 401e191f74..0334300308 100644--- a/app/views/doorkeeper/authorizations/error.html.erb+++ b/app/views/doorkeeper/authorizations/error.html.erb@@ -14,7 +14,7 @@<div class="text-center"><%= render DS::Link.new(- text: "Go back",+ text: t("doorkeeper.authorizations.error.go_back"),href: "javascript:history.back()",variant: :secondary) %>diff --git a/app/views/doorkeeper/authorizations/show.html.erb b/app/views/doorkeeper/authorizations/show.html.erbindex 4653af2a18..43552339a0 100644--- a/app/views/doorkeeper/authorizations/show.html.erb+++ b/app/views/doorkeeper/authorizations/show.html.erb@@ -7,11 +7,11 @@</div><div class="bg-surface-inset rounded-lg p-4">- <p class="text-xs text-secondary mb-2">Authorization Code:</p>+ <p class="text-xs text-secondary mb-2"><%= t(".authorization_code_label") %></p><code id="authorization_code" class="block text-sm font-mono text-primary break-all"><%= params[:code] %></code></div><p class="text-sm text-secondary text-center">- Copy this code and paste it into the application.+ <%= t(".copy_instructions") %></p></div>diff --git a/app/views/enable_banking_items/_enable_banking_item.html.erb b/app/views/enable_banking_items/_enable_banking_item.html.erbindex 6d53b0c6aa..3c31e8f6ed 100644--- a/app/views/enable_banking_items/_enable_banking_item.html.erb+++ b/app/views/enable_banking_items/_enable_banking_item.html.erb@@ -20,29 +20,29 @@<div class="flex items-center gap-2"><%= tag.p enable_banking_item.institution_display_name, class: "font-medium text-primary" %><% if enable_banking_item.scheduled_for_deletion? %>- <p class="text-destructive text-sm animate-pulse">Deletion in progress</p>+ <p class="text-destructive text-sm animate-pulse"><%= t(".deletion_in_progress") %></p><% end %></div>- <p class="text-xs text-secondary">Enable Banking</p>+ <p class="text-xs text-secondary"><%= t(".provider_name") %></p><% if enable_banking_item.syncing? %><div class="text-secondary flex items-center gap-1"><%= icon "loader", size: "sm", class: "animate-spin" %>- <%= tag.span "Syncing..." %>+ <%= tag.span t(".syncing") %></div><% elsif enable_banking_item.requires_update? %><div class="text-warning flex items-center gap-1"><%= icon "alert-triangle", size: "sm", color: "warning" %>- <%= tag.span "Reconnect" %>+ <%= tag.span t(".reconnect") %></div><% else %><p class="text-secondary"><% if enable_banking_item.last_synced_at %>- Last synced <%= time_ago_in_words(enable_banking_item.last_synced_at) %> ago+ <%= t(".last_synced", time: time_ago_in_words(enable_banking_item.last_synced_at)) %><% if enable_banking_item.sync_status_summary %>· <%= enable_banking_item.sync_status_summary %><% end %><% else %>- Never synced+ <%= t(".never_synced") %><% end %></p><% end %>@@ -57,7 +57,7 @@class: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium rounded-lg text-white bg-warning hover:opacity-90 transition-colors",data: { turbo: false } do %><%= icon "refresh-cw", size: "sm" %>- Update+ <%= t(".update") %><% end %><% elsif Rails.env.development? %><%= icon(@@ -70,7 +70,7 @@<%= render DS::Menu.new do |menu| %><% menu.with_item(variant: "button",- text: "Delete",+ text: t(".delete"),icon: "trash-2",href: enable_banking_item_path(enable_banking_item),method: :delete,@@ -109,10 +109,10 @@<% if enable_banking_item.unlinked_accounts_count > 0 %><div class="p-4 flex flex-col gap-3 items-center justify-center">- <p class="text-primary font-medium text-sm">Setup needed</p>- <p class="text-secondary text-sm"><%= pluralize(enable_banking_item.unlinked_accounts_count, "account") %> imported from Enable Banking need to be set up</p>+ <p class="text-primary font-medium text-sm"><%= t(".setup_needed") %></p>+ <p class="text-secondary text-sm"><%= t(".setup_needed_description", count: enable_banking_item.unlinked_accounts_count) %></p><%= render DS::Link.new(- text: "Set up accounts",+ text: t(".set_up_accounts"),icon: "settings",variant: "primary",href: setup_accounts_enable_banking_item_path(enable_banking_item),@@ -121,8 +121,8 @@</div><% elsif enable_banking_item.accounts.empty? && enable_banking_item.enable_banking_accounts.empty? %><div class="p-4 flex flex-col gap-3 items-center justify-center">- <p class="text-primary font-medium text-sm">No accounts found</p>- <p class="text-secondary text-sm">No accounts were found from Enable Banking. Try syncing again.</p>+ <p class="text-primary font-medium text-sm"><%= t(".no_accounts_found") %></p>+ <p class="text-secondary text-sm"><%= t(".no_accounts_found_description") %></p></div><% end %></div>diff --git a/app/views/enable_banking_items/new.html.erb b/app/views/enable_banking_items/new.html.erbindex 4e0376c8b1..625579939f 100644--- a/app/views/enable_banking_items/new.html.erb+++ b/app/views/enable_banking_items/new.html.erb@@ -17,22 +17,22 @@<% if item.session_valid? %><div class="w-2 h-2 bg-success rounded-full"></div><div>- <p class="text-sm font-medium text-primary"><%= item.aspsp_name || "Connected Bank" %></p>+ <p class="text-sm font-medium text-primary"><%= item.aspsp_name || t(".connected_bank") %></p><p class="text-xs text-secondary">- Session expires: <%= item.session_expires_at&.strftime("%b %d, %Y") || "Unknown" %>+ <%= t(".session_expires") %>: <%= item.session_expires_at&.strftime("%b %d, %Y") || t(".unknown") %></p></div><% elsif item.session_expired? %><div class="w-2 h-2 bg-warning rounded-full"></div><div>- <p class="text-sm font-medium text-primary"><%= item.aspsp_name || "Connection" %></p>- <p class="text-xs text-destructive">Session expired - re-authorization required</p>+ <p class="text-sm font-medium text-primary"><%= item.aspsp_name || t(".connection") %></p>+ <p class="text-xs text-destructive"><%= t(".session_expired") %></p></div><% else %><div class="w-2 h-2 bg-secondary rounded-full"></div><div>- <p class="text-sm font-medium text-primary">Configured</p>- <p class="text-xs text-secondary">Ready to connect a bank</p>+ <p class="text-sm font-medium text-primary"><%= t(".configured") %></p>+ <p class="text-xs text-secondary"><%= t(".ready_to_connect") %></p></div><% end %></div>@@ -43,28 +43,28 @@method: :post,class: "inline-flex items-center justify-center rounded-lg px-3 py-1.5 text-xs font-medium text-primary bg-container border border-primary hover:bg-surface-inset transition-colors",data: { turbo: false } do %>- Sync+ <%= t(".sync") %><% end %><% elsif item.session_expired? %><%= button_to reauthorize_enable_banking_item_path(item),method: :post,class: "inline-flex items-center justify-center rounded-lg px-3 py-1.5 text-xs font-medium text-white bg-warning hover:opacity-90 transition-colors",data: { turbo: false } do %>- Reconnect+ <%= t(".reconnect") %><% end %><% else %><%= link_to select_bank_enable_banking_item_path(item),class: "inline-flex items-center justify-center rounded-lg px-3 py-1.5 text-xs font-medium text-inverse button-bg-primary hover:button-bg-primary-hover transition-colors",data: { turbo_frame: "modal" } do %>- Connect Bank+ <%= t(".connect_bank") %><% end %><% end %><%= button_to enable_banking_item_path(item),method: :delete,class: "inline-flex items-center justify-center rounded-lg px-3 py-1.5 text-xs font-medium text-destructive hover:bg-destructive/10 transition-colors",- data: { turbo_confirm: "Are you sure you want to remove this connection?" } do %>- Remove+ data: { turbo_confirm: t(".remove_confirm") } do %>+ <%= t(".remove") %><% end %></div></div>@@ -78,7 +78,7 @@class: "inline-flex items-center gap-2 justify-center rounded-lg px-4 py-2 text-sm font-medium text-inverse button-bg-primary hover:button-bg-primary-hover transition-colors",data: { turbo_frame: "modal" } do %><%= icon "plus", size: "sm" %>- Add Connection+ <%= t(".add_connection") %><% end %></div><% end %>@@ -88,18 +88,18 @@<div class="flex items-start gap-3"><%= icon("alert-circle", class: "text-warning w-5 h-5 shrink-0 mt-0.5") %><div class="text-sm text-secondary">- <p class="font-medium text-primary mb-2">Enable Banking connection not configured</p>- <p>Before you can link Enable Banking accounts, you need to configure your Enable Banking connection.</p>+ <p class="font-medium text-primary mb-2"><%= t(".not_configured") %></p>+ <p><%= t(".not_configured_description") %></p></div></div><div class="bg-surface rounded-lg p-4 space-y-2 text-sm">- <p class="font-medium text-primary">Setup Steps:</p>+ <p class="font-medium text-primary"><%= t(".setup_steps_title") %></p><ol class="list-decimal list-inside space-y-1 text-secondary">- <li>Go to <strong>Settings → Providers</strong></li>- <li>Find the <strong>Enable Banking</strong> section</li>- <li>Enter your Enable Banking credentials</li>- <li>Return here to link your accounts</li>+ <li><%= t(".setup_step_1_html") %></li>+ <li><%= t(".setup_step_2_html") %></li>+ <li><%= t(".setup_step_3") %></li>+ <li><%= t(".setup_step_4") %></li></ol></div>@@ -107,7 +107,7 @@<%= link_to settings_providers_path,class: "w-full inline-flex items-center justify-center rounded-lg font-medium whitespace-nowrap rounded-lg hidden md:inline-flex px-3 py-2 text-sm text-inverse bg-inverse hover:bg-inverse-hover disabled:bg-gray-500 theme-dark:disabled:bg-gray-400",data: { turbo: false } do %>- Go to Provider Settings+ <%= t(".go_to_provider_settings") %><% end %></div></div>diff --git a/app/views/enable_banking_items/select_existing_account.html.erb b/app/views/enable_banking_items/select_existing_account.html.erbindex 9303aa2525..9d77b70711 100644--- a/app/views/enable_banking_items/select_existing_account.html.erb+++ b/app/views/enable_banking_items/select_existing_account.html.erb@@ -1,15 +1,15 @@<%# Modal: Link an existing manual account to a Enable Banking account %><%= turbo_frame_tag "modal" do %><%= render DS::Dialog.new do |dialog| %>- <% dialog.with_header(title: "Link Enable Banking account") %>+ <% dialog.with_header(title: t(".title")) %><% dialog.with_body do %><% if @available_enable_banking_accounts.blank? %><div class="p-4 text-sm text-secondary">- <p class="mb-2">All Enable Banking accounts appear to be linked already.</p>+ <p class="mb-2"><%= t(".all_linked") %></p><ul class="list-disc list-inside space-y-1">- <li>If you just connected or synced, try again after the sync completes.</li>- <li>To link a different account, first unlink it from the account’s actions menu.</li>+ <li><%= t(".try_after_sync") %></li>+ <li><%= t(".unlink_to_move") %></li></ul></div><% else %>@@ -22,7 +22,7 @@<div class="flex flex-col"><span class="text-sm text-primary font-medium"><%= eba.name.presence || eba.account_id %></span><span class="text-xs text-secondary">- <%= eba.currency %> • Balance: <%= number_to_currency((eba.current_balance || 0), unit: eba.currency) %>+ <%= eba.currency %> • <%= t(".balance") %>: <%= number_to_currency((eba.current_balance || 0), unit: eba.currency) %></span></div></label>@@ -30,8 +30,8 @@</div><div class="flex items-center justify-end gap-2">- <%= render DS::Button.new(text: "Link", variant: :primary, icon: "link-2", type: :submit) %>- <%= render DS::Link.new(text: "Cancel", variant: :secondary, href: accounts_path, data: { turbo_frame: "_top" }) %>+ <%= render DS::Button.new(text: t(".link"), variant: :primary, icon: "link-2", type: :submit) %>+ <%= render DS::Link.new(text: t(".cancel"), variant: :secondary, href: accounts_path, data: { turbo_frame: "_top" }) %></div><% end %><% end %>diff --git a/app/views/enable_banking_items/setup_accounts.html.erb b/app/views/enable_banking_items/setup_accounts.html.erbindex 5da8e30169..97060d2c21 100644--- a/app/views/enable_banking_items/setup_accounts.html.erb+++ b/app/views/enable_banking_items/setup_accounts.html.erb@@ -1,8 +1,8 @@<%= render DS::Dialog.new do |dialog| %>- <% dialog.with_header(title: "Set Up Your Enable Banking Accounts") do %>+ <% dialog.with_header(title: t(".title")) do %><div class="flex items-center gap-2"><%= icon "building-2", class: "text-primary" %>- <span class="text-primary">Choose the correct account types for your imported accounts</span>+ <span class="text-primary"><%= t(".header_subtitle") %></span></div><% end %>@@ -13,7 +13,7 @@data: {controller: "loading-button",action: "submit->loading-button#showLoading",- loading_button_loading_text_value: "Creating Accounts...",+ loading_button_loading_text_value: t(".creating_accounts"),turbo_frame: "_top"},class: "space-y-6" do |form| %>@@ -24,7 +24,7 @@<%= icon "info", size: "sm", class: "text-primary mt-0.5 flex-shrink-0" %><div><p class="text-sm text-primary mb-2">- <strong>Choose the correct account type for each Enable Banking account:</strong>+ <strong><%= t(".choose_account_type") %></strong></p><ul class="text-xs text-secondary space-y-1 list-disc list-inside"><% @account_type_options.reject { |_, type| type == "skip" }.each do |label, _| %>@@ -53,15 +53,15 @@<%= icon "calendar", size: "sm", class: "text-primary mt-0.5 flex-shrink-0" %><div class="flex-1"><p class="text-sm text-primary mb-3">- <strong>Historical Data Range:</strong>+ <strong><%= t(".historical_data_range") %></strong></p><%= form.date_field :sync_start_date,- label: "Start syncing transactions from:",+ label: t(".sync_start_date_label"),value: @enable_banking_item.sync_start_date || 3.months.ago.to_date,min: 2.years.ago.to_date,max: Date.current,class: "w-full max-w-xs rounded-md border border-primary px-3 py-2 text-sm bg-container-inset text-primary",- help_text: "Select how far back you want to sync transaction history. Maximum 2 years of history available." %>+ help_text: t(".sync_start_date_help") %></div></div></div>@@ -81,7 +81,7 @@<p><%= enable_banking_account.account_type_display %></p><% end %><% if enable_banking_account.current_balance.present? %>- <p>Balance: <%= number_to_currency(enable_banking_account.current_balance, unit: enable_banking_account.currency) %></p>+ <p><%= t(".balance") %>: <%= number_to_currency(enable_banking_account.current_balance, unit: enable_banking_account.currency) %></p><% end %></div></div>@@ -92,7 +92,7 @@data-account-type-selector-account-id-value="<%= enable_banking_account.id %>"data-account-type-selector-suggested-subtype-value="<%= enable_banking_account.suggested_subtype %>"><div>- <%= label_tag "account_types[#{enable_banking_account.id}]", "Account Type:",+ <%= label_tag "account_types[#{enable_banking_account.id}]", t(".account_type_label"),class: "block text-sm font-medium text-primary mb-2" %><%= select_tag "account_types[#{enable_banking_account.id}]",options_for_select(@account_type_options, enable_banking_account.suggested_account_type || "skip"),@@ -115,7 +115,7 @@<div class="flex gap-3"><%= render DS::Button.new(- text: "Create Accounts",+ text: t(".create_accounts"),variant: "primary",icon: "plus",type: "submit",@@ -123,7 +123,7 @@data: { loading_button_target: "button" }) %><%= render DS::Link.new(- text: "Cancel",+ text: t(".cancel"),variant: "secondary",href: accounts_path) %>diff --git a/app/views/family_exports/new.html.erb b/app/views/family_exports/new.html.erbindex d6942158b5..9433eee2fe 100644--- a/app/views/family_exports/new.html.erb+++ b/app/views/family_exports/new.html.erb@@ -1,40 +1,40 @@<%= render DS::Dialog.new do |dialog| %>- <% dialog.with_header(title: "Export your data", subtitle: "Download all your financial data") %>+ <% dialog.with_header(title: t(".dialog_title"), subtitle: t(".dialog_subtitle")) %><% dialog.with_body do %><div class="space-y-4"><div class="bg-container-inset rounded-lg p-4 space-y-3">- <h3 class="font-medium text-primary">What's included:</h3>+ <h3 class="font-medium text-primary"><%= t(".whats_included") %></h3><ul class="space-y-2 text-sm text-secondary"><li class="flex items-start gap-2"><%= icon "check", class: "shrink-0 mt-0.5 text-positive" %>- <span>All accounts and balances</span>+ <span><%= t(".accounts_and_balances") %></span></li><li class="flex items-start gap-2"><%= icon "check", class: "shrink-0 mt-0.5 text-positive" %>- <span>Transaction history</span>+ <span><%= t(".transaction_history") %></span></li><li class="flex items-start gap-2"><%= icon "check", class: "shrink-0 mt-0.5 text-positive" %>- <span>Investment trades</span>+ <span><%= t(".investment_trades") %></span></li><li class="flex items-start gap-2"><%= icon "check", class: "shrink-0 mt-0.5 text-positive" %>- <span>Categories, tags and rules</span>+ <span><%= t(".categories_tags_rules") %></span></li></ul></div><div class="bg-amber-50 border border-amber-200 rounded-lg p-3"><p class="text-sm text-amber-800">- <strong>Note:</strong> This export includes all of your data, but only some of the data can be imported back via the CSV import feature. We support account, transaction (with category and tags), and trade imports. Other account data cannot be imported and is for your records only.+ <strong><%= t(".note_label") %>:</strong> <%= t(".note_description") %></p></div><%= form_with url: family_exports_path, method: :post, class: "space-y-4" do |form| %><div class="flex gap-3">- <%= link_to "Cancel", "#", class: "flex-1 text-center px-4 py-2 text-primary bg-surface border border-primary rounded-lg hover:bg-surface-hover", data: { action: "click->modal#close" } %>- <%= form.submit "Export data", class: "flex-1 bg-inverse text-inverse rounded-lg px-4 py-2 cursor-pointer hover:bg-inverse-hover" %>+ <%= link_to t(".cancel"), "#", class: "flex-1 text-center px-4 py-2 text-primary bg-surface border border-primary rounded-lg hover:bg-surface-hover", data: { action: "click->modal#close" } %>+ <%= form.submit t(".export_data"), class: "flex-1 bg-inverse text-inverse rounded-lg px-4 py-2 cursor-pointer hover:bg-inverse-hover" %></div><% end %></div>diff --git a/app/views/family_merchants/_family_merchant.html.erb b/app/views/family_merchants/_family_merchant.html.erbindex 8e3306df71..c0df9dfecd 100644--- a/app/views/family_merchants/_family_merchant.html.erb+++ b/app/views/family_merchants/_family_merchant.html.erb@@ -18,10 +18,10 @@</td><td class="py-3 px-4 text-sm text-right align-middle"><%= render DS::Menu.new do |menu| %>- <% menu.with_item(variant: "link", text: "Edit", href: edit_family_merchant_path(family_merchant), icon: "pencil", data: { turbo_frame: "modal" }) %>+ <% menu.with_item(variant: "link", text: t(".edit"), href: edit_family_merchant_path(family_merchant), icon: "pencil", data: { turbo_frame: "modal" }) %><% menu.with_item(variant: "button",- text: "Delete",+ text: t(".delete"),href: family_merchant_path(family_merchant),icon: "trash-2",method: :delete,diff --git a/app/views/holdings/_cost_basis_cell.html.erb b/app/views/holdings/_cost_basis_cell.html.erbindex 8d595baeed..0b82ca2994 100644--- a/app/views/holdings/_cost_basis_cell.html.erb+++ b/app/views/holdings/_cost_basis_cell.html.erb@@ -30,7 +30,7 @@<% else %><div class="flex items-center gap-1 px-2 py-0.5 rounded text-secondary hover:text-primary hover:bg-container-inset-hover transition-colors"><%= icon "pencil", size: "xs" %>- <span class="text-xs">Set</span>+ <span class="text-xs"><%= t(".set") %></span></div><% end %><% end %>diff --git a/app/views/ibkr_items/select_existing_account.html.erb b/app/views/ibkr_items/select_existing_account.html.erbindex 3598da843a..d1d27663b6 100644--- a/app/views/ibkr_items/select_existing_account.html.erb+++ b/app/views/ibkr_items/select_existing_account.html.erb@@ -1,14 +1,14 @@<%= turbo_frame_tag "modal" do %><%= render DS::Dialog.new do |dialog| %>- <% dialog.with_header(title: "Link Interactive Brokers account") %>+ <% dialog.with_header(title: t(".title")) %><% dialog.with_body do %><% if @available_ibkr_accounts.blank? %><div class="p-4 text-sm text-secondary">- <p class="mb-2">No unlinked Interactive Brokers accounts are available yet.</p>+ <p class="mb-2"><%= t(".no_accounts_available") %></p><ul class="list-disc list-inside space-y-1">- <li>Run a sync from Settings > Providers after updating your Flex query.</li>- <li>Wait for the account discovery sync to finish.</li>+ <li><%= t(".run_sync_hint") %></li>+ <li><%= t(".wait_for_sync") %></li></ul></div><% else %>@@ -21,7 +21,7 @@<div class="flex flex-col"><span class="text-sm text-primary font-medium"><%= ibkr_account.name.presence || ibkr_account.ibkr_account_id %></span><span class="text-xs text-secondary">- <%= ibkr_account.currency %> • Balance: <%= number_to_currency((ibkr_account.current_balance || 0), unit: Money::Currency.new(ibkr_account.currency || "USD").symbol) %>+ <%= ibkr_account.currency %> • <%= t(".balance") %>: <%= number_to_currency((ibkr_account.current_balance || 0), unit: Money::Currency.new(ibkr_account.currency || "USD").symbol) %></span></div></label>@@ -29,8 +29,8 @@</div><div class="flex items-center justify-end gap-2">- <%= render DS::Button.new(text: "Link", variant: :primary, icon: "link-2", type: :submit) %>- <%= render DS::Link.new(text: "Cancel", variant: :secondary, href: accounts_path, data: { turbo_frame: "_top" }) %>+ <%= render DS::Button.new(text: t(".link"), variant: :primary, icon: "link-2", type: :submit) %>+ <%= render DS::Link.new(text: t(".cancel"), variant: :secondary, href: accounts_path, data: { turbo_frame: "_top" }) %></div><% end %><% end %>diff --git a/app/views/impersonation_sessions/_super_admin_bar.html.erb b/app/views/impersonation_sessions/_super_admin_bar.html.erbindex a09a8250fa..718471b674 100644--- a/app/views/impersonation_sessions/_super_admin_bar.html.erb+++ b/app/views/impersonation_sessions/_super_admin_bar.html.erb@@ -1,20 +1,20 @@<div class="sticky top-0 left-0 w-full bg-black flex items-center justify-between font-mono"><div class="flex items-center bg-red-600 px-6 py-4"><%= icon "alert-triangle", size: "lg", color: "current", class: "mr-2" %>- <span class="text-inverse font-semibold uppercase">Super Admin</span>+ <span class="text-inverse font-semibold uppercase"><%= t(".super_admin") %></span></div><div>- <%= link_to "Jobs", sidekiq_web_url, class: "text-white underline hover:text-gray-100" %>+ <%= link_to t(".jobs"), sidekiq_web_url, class: "text-white underline hover:text-gray-100" %></div><div class="flex items-center space-x-2 px-2 py-2 text-white"><% if Current.session.active_impersonator_session.present? %><div class="flex items-center space-x-3 bg-gray-800 border border-gray-700 rounded-md pl-3"><div class="text-sm">- Impersonating: <span class="font-semibold text-red-400"><%= Current.impersonated_user.email %></span>+ <%= t(".impersonating") %>: <span class="font-semibold text-red-400"><%= Current.impersonated_user.email %></span></div>- <%= button_to "Leave", leave_impersonation_sessions_path, method: :delete, class: "items-center px-3 py-1.5 border border-transparent text-sm font-medium rounded-md text-white bg-red-600 hover:bg-red-700 focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-red-500" %>- <%= button_to "Terminate", complete_impersonation_session_path(Current.session.active_impersonator_session), method: :put, class: "items-center px-3 py-1.5 border border-transparent text-sm font-medium rounded-md text-white bg-red-600 hover:bg-red-700 focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-red-500" %>+ <%= button_to t(".leave"), leave_impersonation_sessions_path, method: :delete, class: "items-center px-3 py-1.5 border border-transparent text-sm font-medium rounded-md text-white bg-red-600 hover:bg-red-700 focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-red-500" %>+ <%= button_to t(".terminate"), complete_impersonation_session_path(Current.session.active_impersonator_session), method: :put, class: "items-center px-3 py-1.5 border border-transparent text-sm font-medium rounded-md text-white bg-red-600 hover:bg-red-700 focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-red-500" %></div><% else %><% if Current.true_user.impersonator_support_sessions.in_progress.any? %>@@ -23,16 +23,16 @@Current.true_user.impersonator_support_sessions.in_progress.map { |session|["#{session.impersonated.email} (#{session.status})", session.id]},- { prompt: "Join a session" },+ { prompt: t(".join_a_session") },{ class: "rounded-md text-sm border-0 focus:ring-0 ring-0 text-black font-mono" } %>- <%= f.submit "Join",+ <%= f.submit t(".join"),class: "inline-flex items-center px-3 py-1.5 border border-transparent text-sm font-medium rounded-md text-white bg-red-600 hover:bg-red-700 focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-red-500" %><% end %><% end %><%= form_with model: ImpersonationSession.new, class: "flex items-center space-x-2" do |f| %>- <%= f.text_field :impersonated_id, class: "rounded-md text-sm border-0 focus:ring-0 ring-0 text-black font-mono w-96", placeholder: "UUID", autocomplete: "off" %>- <%= f.submit "Request Impersonation", class: "inline-flex items-center px-3 py-1.5 border border-transparent text-sm font-medium rounded-md text-white bg-red-600 hover:bg-red-700 focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-red-500" %>+ <%= f.text_field :impersonated_id, class: "rounded-md text-sm border-0 focus:ring-0 ring-0 text-black font-mono w-96", placeholder: t(".uuid_placeholder"), autocomplete: "off" %>+ <%= f.submit t(".request_impersonation"), class: "inline-flex items-center px-3 py-1.5 border border-transparent text-sm font-medium rounded-md text-white bg-red-600 hover:bg-red-700 focus:outline-hidden focus:ring-2 focus:ring-offset-2 focus:ring-red-500" %><% end %><% end %></div>diff --git a/app/views/import/cleans/show.html.erb b/app/views/import/cleans/show.html.erbindex 14941acf8c..834b9741af 100644--- a/app/views/import/cleans/show.html.erb+++ b/app/views/import/cleans/show.html.erb@@ -14,11 +14,11 @@<div class="bg-container border border-tertiary rounded-lg p-3 flex flex-col md:flex-row items-start md:items-center justify-between gap-2 md:gap-0"><div class="flex items-center gap-2"><%= icon "check-circle", size: "sm", color: "success" %>- <p class="text-success text-sm">Your data has been cleaned</p>+ <p class="text-success text-sm"><%= t(".data_cleaned") %></p></div><%= render DS::Link.new(- text: "Next step",+ text: t(".next_step"),variant: "primary",href: @import.is_a?(PdfImport) ? import_path(@import) : import_confirm_path(@import),frame: :_top,@@ -35,8 +35,8 @@<div class="flex justify-center w-full md:w-auto"><div class="bg-surface-inset rounded-lg inline-flex p-1 space-x-2 text-sm text-primary font-medium w-full md:w-auto">- <%= link_to "All rows", import_clean_path(@import, per_page: params[:per_page], view: "all"), class: "p-2 rounded-lg flex-1 md:flex-auto text-center #{params[:view] != 'errors' ? 'bg-container' : ''}" %>- <%= link_to "Error rows", import_clean_path(@import, per_page: params[:per_page], view: "errors"), class: "p-2 rounded-lg flex-1 md:flex-auto text-center #{params[:view] == 'errors' ? 'bg-container' : ''}" %>+ <%= link_to t(".all_rows"), import_clean_path(@import, per_page: params[:per_page], view: "all"), class: "p-2 rounded-lg flex-1 md:flex-auto text-center #{params[:view] != 'errors' ? 'bg-container' : ''}" %>+ <%= link_to t(".error_rows"), import_clean_path(@import, per_page: params[:per_page], view: "errors"), class: "p-2 rounded-lg flex-1 md:flex-auto text-center #{params[:view] == 'errors' ? 'bg-container' : ''}" %></div></div></div>diff --git a/app/views/import/configurations/_account_import.html.erb b/app/views/import/configurations/_account_import.html.erbindex a8c4ec0104..2b50e4cb7c 100644--- a/app/views/import/configurations/_account_import.html.erb+++ b/app/views/import/configurations/_account_import.html.erb@@ -1,18 +1,18 @@<%# locals: (import:) %><%= styled_form_with model: @import, url: import_configuration_path(@import), scope: :import, method: :patch, class: "space-y-4" do |form| %>- <%= form.select :entity_type_col_label, import.csv_headers, { include_blank: "Leave empty", label: "Entity Type" } %>- <%= form.select :name_col_label, import.csv_headers, { include_blank: "Leave empty", label: "Name" }, required: true %>- <%= form.select :amount_col_label, import.csv_headers, { include_blank: "Leave empty", label: "Balance" }, required: true %>- <%= form.select :currency_col_label, import.csv_headers, { include_blank: "Default", label: "Currency" } %>+ <%= form.select :entity_type_col_label, import.csv_headers, { include_blank: t(".leave_empty"), label: t(".entity_type") } %>+ <%= form.select :name_col_label, import.csv_headers, { include_blank: t(".leave_empty"), label: t(".name") }, required: true %>+ <%= form.select :amount_col_label, import.csv_headers, { include_blank: t(".leave_empty"), label: t(".balance") }, required: true %>+ <%= form.select :currency_col_label, import.csv_headers, { include_blank: t(".default"), label: t(".currency") } %><div class="flex items-center gap-4">- <%= form.select :date_col_label, import.csv_headers, { include_blank: "Leave empty", label: "Balance Date" } %>+ <%= form.select :date_col_label, import.csv_headers, { include_blank: t(".leave_empty"), label: t(".balance_date") } %><%= form.select :date_format,Family::DATE_FORMATS,- { label: "Date Format", prompt: "Select format" },+ { label: t(".date_format"), prompt: t(".select_format") },required: @import.date_col_label.present? %></div>- <%= form.submit "Apply configuration", disabled: import.complete? %>+ <%= form.submit t(".apply_configuration"), disabled: import.complete? %><% end %>diff --git a/app/views/import/configurations/_trade_import.html.erb b/app/views/import/configurations/_trade_import.html.erbindex b9ac4685c9..4ac5594876 100644--- a/app/views/import/configurations/_trade_import.html.erb+++ b/app/views/import/configurations/_trade_import.html.erb@@ -3,38 +3,38 @@<%= styled_form_with model: @import, url: import_configuration_path(@import), scope: :import, method: :patch, class: "space-y-4" do |form| %><div class="space-y-4"><div class="flex items-center gap-4">- <%= form.select :date_col_label, import.csv_headers, { include_blank: "Select column", label: "Date" }, required: true %>+ <%= form.select :date_col_label, import.csv_headers, { include_blank: t(".select_column"), label: t(".date_label") }, required: true %><%= form.select :date_format, Family::DATE_FORMATS, { label: t(".date_format_label")}, label: true, required: true %></div><div class="flex items-center gap-4">- <%= form.select :qty_col_label, import.csv_headers, { include_blank: "Select column", label: "Quantity" }, required: true %>- <%= form.select :signage_convention, [["Buys are positive qty", "inflows_positive"], ["Buys are negative qty", "inflows_negative"]], label: true, required: true %>+ <%= form.select :qty_col_label, import.csv_headers, { include_blank: t(".select_column"), label: t(".quantity_label") }, required: true %>+ <%= form.select :signage_convention, [[t(".buys_are_positive"), "inflows_positive"], [t(".buys_are_negative"), "inflows_negative"]], label: true, required: true %></div><div class="flex items-center gap-4">- <%= form.select :currency_col_label, import.csv_headers, { include_blank: "Default", label: "Currency" } %>- <%= form.select :number_format, Import::NUMBER_FORMATS.keys, { label: "Format", prompt: "Select format" }, required: true %>+ <%= form.select :currency_col_label, import.csv_headers, { include_blank: t(".default"), label: t(".currency_label") } %>+ <%= form.select :number_format, Import::NUMBER_FORMATS.keys, { label: t(".format_label"), prompt: t(".select_format") }, required: true %></div>- <%= form.select :ticker_col_label, import.csv_headers, { include_blank: "Select column", label: "Ticker" }, required: true %>- <%= form.select :exchange_operating_mic_col_label, import.csv_headers, { include_blank: "Leave empty", label: "Stock exchange code" } %>- <%= form.select :price_col_label, import.csv_headers, { include_blank: "Select column", label: "Price" }, required: true %>+ <%= form.select :ticker_col_label, import.csv_headers, { include_blank: t(".select_column"), label: t(".ticker_label") }, required: true %>+ <%= form.select :exchange_operating_mic_col_label, import.csv_headers, { include_blank: t(".leave_empty"), label: t(".stock_exchange_code_label") } %>+ <%= form.select :price_col_label, import.csv_headers, { include_blank: t(".select_column"), label: t(".price_label") }, required: true %><% unless import.account.present? %>- <%= form.select :account_col_label, import.csv_headers, { include_blank: "Leave empty", label: "Account" } %>+ <%= form.select :account_col_label, import.csv_headers, { include_blank: t(".leave_empty"), label: t(".account_label") } %><% end %>- <%= form.select :name_col_label, import.csv_headers, { include_blank: "Leave empty", label: "Name" } %>+ <%= form.select :name_col_label, import.csv_headers, { include_blank: t(".leave_empty"), label: t(".name_label") } %><% unless Security.providers.any? %><div class="alert alert-warning"><p>- <strong>Note:</strong> The security prices provider is not configured. Your trade imports will work, but Sure will not backfill price history. Please go to your settings to configure this.+ <strong><%= t(".note_label") %>:</strong> <%= t(".no_security_provider_warning") %></p></div><% end %></div>- <%= form.submit "Apply configuration", disabled: import.complete? %>+ <%= form.submit t(".apply_configuration"), disabled: import.complete? %><% end %>diff --git a/app/views/import/configurations/_transaction_import.html.erb b/app/views/import/configurations/_transaction_import.html.erbindex e0466d5506..e6b9271010 100644--- a/app/views/import/configurations/_transaction_import.html.erb+++ b/app/views/import/configurations/_transaction_import.html.erb@@ -19,11 +19,11 @@<div class="flex items-center gap-4"><%= form.select :date_col_label,import.csv_headers,- { label: "Date", prompt: "Select column" },+ { label: t(".date_label"), prompt: t(".select_column") },required: true %><%= form.select :date_format,Family::DATE_FORMATS,- { label: t(".date_format_label"), prompt: "Select format" },+ { label: t(".date_format_label"), prompt: t(".select_format") },required: true %></div>@@ -31,21 +31,21 @@<div class="flex items-center gap-4"><%= form.select :amount_col_label,import.csv_headers,- { label: "Amount", container_class: "w-2/5", prompt: "Select column" },+ { label: t(".amount_label"), container_class: "w-2/5", prompt: t(".select_column") },required: true %><%= form.select :currency_col_label,import.csv_headers,- { include_blank: "Default", label: "Currency", container_class: "w-1/5" } %>+ { include_blank: t(".default"), label: t(".currency_label"), container_class: "w-1/5" } %><%= form.select :number_format,Import::NUMBER_FORMATS.keys,- { label: "Format", prompt: "Select format", container_class: "w-2/5" },+ { label: t(".format_label"), prompt: t(".select_format"), container_class: "w-2/5" },required: true %></div><%# Amount Type Strategy %><%= form.select :amount_type_strategy,Import::AMOUNT_TYPE_STRATEGIES.map { |strategy| [strategy.humanize, strategy] },- { label: "Amount type strategy", prompt: "Select strategy" },+ { label: t(".amount_type_strategy_label"), prompt: t(".select_strategy") },required: true,data: {action: "import#handleAmountTypeStrategyChange",@@ -58,8 +58,8 @@<div class="flex items-center gap-2"><span class="text-sm shrink-0 text-secondary">↪</span><%= form.select :signage_convention,- [["Incomes are positive", "inflows_positive"], ["Incomes are negative", "inflows_negative"]],- { label: "Amount type", prompt: "Select convention" },+ [[t(".incomes_are_positive"), "inflows_positive"], [t(".incomes_are_negative"), "inflows_negative"]],+ { label: t(".amount_type_label"), prompt: t(".select_convention") },required: @import.amount_type_strategy == "signed_amount" %></div><% end %>@@ -70,32 +70,32 @@<div class="space-y-2"><div class="flex items-center gap-2 text-sm"><span class="shrink-0 text-secondary">↪</span>- <span class="text-secondary">Set</span>+ <span class="text-secondary"><%= t(".set") %></span><%= form.select :entity_type_col_label,import.csv_headers,- { prompt: "Select column", container_class: "w-48 px-3 py-1.5 border border-secondary rounded-md" },+ { prompt: t(".select_column"), container_class: "w-48 px-3 py-1.5 border border-secondary rounded-md" },required: @import.amount_type_strategy == "custom_column",data: { action: "import#handleAmountTypeChange" } %>- <span class="text-secondary">as amount type column</span>+ <span class="text-secondary"><%= t(".as_amount_type_column") %></span></div><div class="items-center gap-2 text-sm <%= @import.entity_type_col_label.nil? ? "hidden" : "flex" %>" data-import-target="amountTypeValue"><span class="shrink-0 text-secondary">↪</span>- <span class="text-secondary">Set</span>+ <span class="text-secondary"><%= t(".set") %></span><%= form.select :amount_type_identifier_value,@import.selectable_amount_type_values,- { prompt: "Select value", container_class: "w-48 px-3 py-1.5 border border-secondary rounded-md" },+ { prompt: t(".select_value"), container_class: "w-48 px-3 py-1.5 border border-secondary rounded-md" },required: @import.amount_type_strategy == "custom_column",data: { action: "import#handleAmountTypeIdentifierChange" } %>- <span class="text-secondary">as identifier value</span>+ <span class="text-secondary"><%= t(".as_identifier_value") %></span></div><div class="items-center gap-2 text-sm <%= @import.amount_type_identifier_value.nil? ? "hidden" : "flex" %>" data-import-target="amountTypeInflowValue"><span class="shrink-0 text-secondary">↪</span>- <span class="text-secondary">Treat "<span class="font-medium"><%= @import.amount_type_identifier_value %></span>" as</span>+ <span class="text-secondary"><%= t(".treat_as_html", value: @import.amount_type_identifier_value) %></span><%= form.select :amount_type_inflow_value,- [["Income (inflow)", "inflows_positive"], ["Expense (outflow)", "inflows_negative"]],- { prompt: "Select type", container_class: "w-48 px-3 py-1.5 border border-secondary rounded-md" },+ [[t(".income_inflow"), "inflows_positive"], [t(".expense_outflow"), "inflows_negative"]],+ { prompt: t(".select_type"), container_class: "w-48 px-3 py-1.5 border border-secondary rounded-md" },required: @import.amount_type_strategy == "custom_column" %></div></div>@@ -105,21 +105,21 @@<% unless import.account.present? %><%= form.select :account_col_label,import.csv_headers,- { include_blank: "Leave empty", label: "Account" } %>+ { include_blank: t(".leave_empty"), label: t(".account_label") } %><% end %><%= form.select :name_col_label,import.csv_headers,- { include_blank: "Leave empty", label: "Name" } %>+ { include_blank: t(".leave_empty"), label: t(".name_label") } %><%= form.select :category_col_label,import.csv_headers,- { include_blank: "Leave empty", label: "Category" } %>+ { include_blank: t(".leave_empty"), label: t(".category_label") } %><%= form.select :tags_col_label,import.csv_headers,- { include_blank: "Leave empty", label: "Tags" } %>+ { include_blank: t(".leave_empty"), label: t(".tags_label") } %><%= form.select :notes_col_label,import.csv_headers,- { include_blank: "Leave empty", label: "Notes" } %>+ { include_blank: t(".leave_empty"), label: t(".notes_label") } %>- <%= form.submit "Apply configuration", disabled: import.complete? %>+ <%= form.submit t(".apply_configuration"), disabled: import.complete? %><% end %>diff --git a/app/views/import/confirms/_mappings.html.erb b/app/views/import/confirms/_mappings.html.erbindex 2bb31ee8fa..2cfb6ab460 100644--- a/app/views/import/confirms/_mappings.html.erb+++ b/app/views/import/confirms/_mappings.html.erb@@ -12,7 +12,7 @@<%= tag.p t(".no_accounts"), class: "text-sm" %><%= render DS::Link.new(- text: "Create account",+ text: t(".create_account"),variant: "primary",href: new_account_path(return_to: import_confirm_path(import)),frame: :modal@@ -60,7 +60,7 @@<div class="flex justify-center w-full"><%= render DS::Link.new(- text: "Next",+ text: t(".next"),variant: "primary",href: is_last_step ? import_path(import) : url_for(step: step_idx + 2),icon: "arrow-right",diff --git a/app/views/import/uploads/show.html.erb b/app/views/import/uploads/show.html.erbindex cc9a94136f..56a5e320b4 100644--- a/app/views/import/uploads/show.html.erb+++ b/app/views/import/uploads/show.html.erb@@ -93,7 +93,7 @@<%# ── Standard CSV upload ── %><div class="space-y-4" data-controller="drag-and-drop-import"><!-- Overlay -->- <%= render "imports/drag_drop_overlay", title: "Drop CSV to upload", subtitle: "Your file will be uploaded automatically" %>+ <%= render "imports/drag_drop_overlay", title: t(".drop_csv_title"), subtitle: t(".drop_csv_subtitle") %><div class="space-y-4 mx-auto max-w-md"><div class="text-center space-y-2">@@ -103,8 +103,8 @@<%= render DS::Tabs.new(active_tab: params[:tab] || "csv-upload", url_param_key: "tab", testid: "import-tabs") do |tabs| %><% tabs.with_nav do |nav| %>- <% nav.with_btn(id: "csv-upload", label: "Upload CSV") %>- <% nav.with_btn(id: "csv-paste", label: "Copy & Paste") %>+ <% nav.with_btn(id: "csv-upload", label: t(".upload_csv_tab")) %>+ <% nav.with_btn(id: "csv-paste", label: t(".copy_paste_tab")) %><% end %><% tabs.with_panel(tab_id: "csv-upload") do %>@@ -112,7 +112,7 @@<%= form.select :col_sep, Import::SEPARATORS, label: true %><% if @import.type == "TransactionImport" || @import.type == "TradeImport" %>- <%= form.select :account_id, @import.family.accounts.visible.alphabetically.pluck(:name, :id), { label: "Account (optional)", include_blank: "Multi-account import", selected: @import.account_id } %>+ <%= form.select :account_id, @import.family.accounts.visible.alphabetically.pluck(:name, :id), { label: t(".account_optional_label"), include_blank: t(".multi_account_import"), selected: @import.account_id } %><% end %><label for="import_import_file_csv" class="flex flex-col items-center justify-center w-full h-64 border border-secondary border-dashed rounded-xl cursor-pointer" data-controller="file-upload" data-file-upload-target="uploadArea">@@ -135,7 +135,7 @@</div></label>- <%= form.submit "Upload CSV", disabled: @import.complete? %>+ <%= form.submit t(".upload_csv_button"), disabled: @import.complete? %><% end %><% end %>@@ -144,16 +144,16 @@<%= form.select :col_sep, Import::SEPARATORS, label: true %><% if @import.type == "TransactionImport" || @import.type == "TradeImport" %>- <%= form.select :account_id, @import.family.accounts.visible.alphabetically.pluck(:name, :id), { label: "Account (optional)", include_blank: "Multi-account import", selected: @import.account_id } %>+ <%= form.select :account_id, @import.family.accounts.visible.alphabetically.pluck(:name, :id), { label: t(".account_optional_label"), include_blank: t(".multi_account_import"), selected: @import.account_id } %><% end %><%= form.text_area :raw_file_str,rows: 10,required: true,- placeholder: "Paste your CSV file contents here",+ placeholder: t(".paste_csv_placeholder"),"data-auto-submit-form-target": "auto" %>- <%= form.submit "Upload CSV", disabled: @import.complete? %>+ <%= form.submit t(".upload_csv_button"), disabled: @import.complete? %><% end %><% end %><% end %>@@ -161,7 +161,7 @@<div class="flex justify-center"><span class="text-secondary text-sm">- <%= link_to "Download a sample CSV", "/imports/#{@import.id}/upload/sample_csv", class: "text-primary underline", data: { turbo: false } %> to see the required CSV format+ <%= link_to t(".download_sample_csv"), "/imports/#{@import.id}/upload/sample_csv", class: "text-primary underline", data: { turbo: false } %> <%= t(".to_see_format") %></span></div></div>diff --git a/app/views/imports/_failure.html.erb b/app/views/imports/_failure.html.erbindex ee9e8b9fc2..3cdc4008ff 100644--- a/app/views/imports/_failure.html.erb+++ b/app/views/imports/_failure.html.erb@@ -7,10 +7,10 @@</div><div class="text-center space-y-2">- <h1 class="font-medium text-primary text-center text-3xl">Import failed</h1>- <p class="text-sm text-secondary">Please check that your file format, for any errors and that all required fields are filled, then come back and try again.</p>+ <h1 class="font-medium text-primary text-center text-3xl"><%= t(".title") %></h1>+ <p class="text-sm text-secondary"><%= t(".description") %></p></div>- <%= render DS::Button.new(text: "Try again", href: publish_import_path(import), full_width: true) %>+ <%= render DS::Button.new(text: t(".try_again"), href: publish_import_path(import), full_width: true) %></div></div>diff --git a/app/views/imports/_importing.html.erb b/app/views/imports/_importing.html.erbindex 5467017057..7fb8ed1000 100644--- a/app/views/imports/_importing.html.erb+++ b/app/views/imports/_importing.html.erb@@ -7,13 +7,13 @@</div><div class="text-center space-y-2">- <h1 class="font-medium text-primary text-center text-3xl">Import in progress</h1>- <p class="text-sm text-secondary">Your import is in progress. Check the imports menu for status updates or click 'Check Status' to refresh the page for updates. Feel free to continue using the app.</p>+ <h1 class="font-medium text-primary text-center text-3xl"><%= t(".title") %></h1>+ <p class="text-sm text-secondary"><%= t(".description") %></p></div><div class="space-y-2 flex flex-col">- <%= render DS::Link.new(text: "Check status", href: import_path(import), variant: "primary", full_width: true) %>- <%= render DS::Link.new(text: "Back to dashboard", href: root_path, variant: "secondary", full_width: true) %>+ <%= render DS::Link.new(text: t(".check_status"), href: import_path(import), variant: "primary", full_width: true) %>+ <%= render DS::Link.new(text: t(".back_to_dashboard"), href: root_path, variant: "secondary", full_width: true) %></div></div></div>diff --git a/app/views/imports/_revert_failure.html.erb b/app/views/imports/_revert_failure.html.erbindex 9d64e7a76e..6c4872d069 100644--- a/app/views/imports/_revert_failure.html.erb+++ b/app/views/imports/_revert_failure.html.erb@@ -7,12 +7,12 @@</div><div class="text-center space-y-2">- <h1 class="font-medium text-primary text-center text-3xl">Reverting import failed</h1>- <p class="text-sm text-secondary">Please try again</p>+ <h1 class="font-medium text-primary text-center text-3xl"><%= t(".title") %></h1>+ <p class="text-sm text-secondary"><%= t(".description") %></p></div><%= render DS::Button.new(- text: "Try again",+ text: t(".try_again"),full_width: true,href: revert_import_path(import)) %>diff --git a/app/views/imports/_success.html.erb b/app/views/imports/_success.html.erbindex c0849e94b3..c3bc2d1eba 100644--- a/app/views/imports/_success.html.erb+++ b/app/views/imports/_success.html.erb@@ -7,12 +7,12 @@</div><div class="text-center space-y-2">- <h1 class="font-medium text-primary text-center text-3xl">Import successful</h1>- <p class="text-sm text-secondary">Your imported data has been successfully added to the app and is now ready for use.</p>+ <h1 class="font-medium text-primary text-center text-3xl"><%= t(".title") %></h1>+ <p class="text-sm text-secondary"><%= t(".description") %></p></div><%= render DS::Link.new(- text: "Back to dashboard",+ text: t(".back_to_dashboard"),variant: "primary",full_width: true,href: root_pathdiff --git a/app/views/layouts/shared/_confirm_dialog.html.erb b/app/views/layouts/shared/_confirm_dialog.html.erbindex 03e9238186..a25c36f725 100644--- a/app/views/layouts/shared/_confirm_dialog.html.erb+++ b/app/views/layouts/shared/_confirm_dialog.html.erb@@ -5,17 +5,17 @@<form method="dialog" class="space-y-4"><div class="space-y-2"><div class="flex items-center justify-between gap-2">- <h3 class="font-medium text-primary" data-confirm-dialog-target="title">Are you sure?</h3>+ <h3 class="font-medium text-primary" data-confirm-dialog-target="title"><%= t(".are_you_sure") %></h3><%= icon("x", as_button: true, type: "submit", value: "cancel") %></div>- <p class="text-sm text-secondary" data-confirm-dialog-target="subtitle">This action cannot be undone.</p>+ <p class="text-sm text-secondary" data-confirm-dialog-target="subtitle"><%= t(".cannot_be_undone") %></p></div><div><% ["primary", "outline-destructive", "destructive"].each do |variant| %><%= render DS::Button.new(- text: "Confirm",+ text: t(".confirm"),variant: variant,autofocus: true,full_width: true,diff --git a/app/views/loans/tabs/_overview.html.erb b/app/views/loans/tabs/_overview.html.erbindex 41167e6fb9..2c6d3810a6 100644--- a/app/views/loans/tabs/_overview.html.erb+++ b/app/views/loans/tabs/_overview.html.erb@@ -46,7 +46,7 @@<div class="flex justify-center py-8"><%= render DS::Link.new(- text: "Edit loan details",+ text: t(".edit_loan_details"),variant: "ghost",href: edit_loan_path(account),frame: :modaldiff --git a/app/views/lunchflow_items/_api_error.html.erb b/app/views/lunchflow_items/_api_error.html.erbindex b1d6cee135..50050e35a7 100644--- a/app/views/lunchflow_items/_api_error.html.erb+++ b/app/views/lunchflow_items/_api_error.html.erb@@ -1,22 +1,22 @@<%# locals: (error_message:, return_path:) %><%= turbo_frame_tag "modal" do %><%= render DS::Dialog.new do |dialog| %>- <% dialog.with_header(title: "Lunch Flow Connection Error") %>+ <% dialog.with_header(title: t(".title")) %><% dialog.with_body do %><div class="space-y-4"><%= render DS::Alert.new(- title: "Unable to connect to Lunch Flow",+ title: t(".unable_to_connect"),message: error_message,variant: :error) %><div class="bg-surface rounded-lg p-4 space-y-2 text-sm">- <p class="font-medium text-primary">Common Issues:</p>+ <p class="font-medium text-primary"><%= t(".common_issues") %></p><ul class="list-disc list-inside space-y-1 text-secondary">- <li><strong>Invalid API Key:</strong> Check your API key in Provider Settings</li>- <li><strong>Expired Credentials:</strong> Generate a new API key from Lunch Flow</li>- <li><strong>Network Issue:</strong> Check your internet connection</li>- <li><strong>Service Down:</strong> Lunch Flow API may be temporarily unavailable</li>+ <li><strong><%= t(".invalid_api_key_label") %>:</strong> <%= t(".invalid_api_key_desc") %></li>+ <li><strong><%= t(".expired_credentials_label") %>:</strong> <%= t(".expired_credentials_desc") %></li>+ <li><strong><%= t(".network_issue_label") %>:</strong> <%= t(".network_issue_desc") %></li>+ <li><strong><%= t(".service_down_label") %>:</strong> <%= t(".service_down_desc") %></li></ul></div>@@ -24,7 +24,7 @@<%= link_to settings_providers_path,class: "inline-flex items-center justify-center rounded-lg px-4 py-2 text-sm font-medium text-inverse button-bg-primary hover:button-bg-primary-hover focus:outline-none focus:ring-2 focus:ring-gray-900 theme-dark:focus:ring-white focus:ring-offset-2 transition-colors",data: { turbo: false } do %>- Check Provider Settings+ <%= t(".check_provider_settings") %><% end %></div></div>diff --git a/app/views/lunchflow_items/_setup_required.html.erb b/app/views/lunchflow_items/_setup_required.html.erbindex afd03df415..1773e81efb 100644--- a/app/views/lunchflow_items/_setup_required.html.erb+++ b/app/views/lunchflow_items/_setup_required.html.erb@@ -1,21 +1,21 @@<%= turbo_frame_tag "modal" do %><%= render DS::Dialog.new do |dialog| %>- <% dialog.with_header(title: "Lunch Flow Setup Required") %>+ <% dialog.with_header(title: t(".title")) %><% dialog.with_body do %><div class="space-y-4"><%= render DS::Alert.new(- title: "API Key Not Configured",- message: "Before you can link Lunch Flow accounts, you need to configure your Lunch Flow API key.",+ title: t(".api_key_not_configured"),+ message: t(".api_key_description"),variant: :warning) %><div class="bg-surface rounded-lg p-4 space-y-2 text-sm">- <p class="font-medium text-primary">Setup Steps:</p>+ <p class="font-medium text-primary"><%= t(".setup_steps_title") %></p><ol class="list-decimal list-inside space-y-1 text-secondary">- <li>Go to <strong>Settings → Providers</strong></li>- <li>Find the <strong>Lunch Flow</strong> section</li>- <li>Enter your Lunch Flow API key</li>- <li>Return here to link your accounts</li>+ <li><%= t(".setup_step_1_html") %></li>+ <li><%= t(".setup_step_2_html") %></li>+ <li><%= t(".setup_step_3") %></li>+ <li><%= t(".setup_step_4") %></li></ol></div>@@ -23,7 +23,7 @@<%= link_to settings_providers_path,class: "inline-flex items-center justify-center rounded-lg px-4 py-2 text-sm font-medium text-inverse button-bg-primary hover:button-bg-primary-hover focus:outline-none focus:ring-2 focus:ring-gray-900 theme-dark:focus:ring-white focus:ring-offset-2 transition-colors",data: { turbo: false } do %>- Go to Provider Settings+ <%= t(".go_to_provider_settings") %><% end %></div></div>diff --git a/app/views/mercury_items/_api_error.html.erb b/app/views/mercury_items/_api_error.html.erbindex 4e41246354..0f5696b14c 100644--- a/app/views/mercury_items/_api_error.html.erb+++ b/app/views/mercury_items/_api_error.html.erb@@ -1,25 +1,25 @@<%# locals: (error_message:, return_path:) %><%= turbo_frame_tag "modal" do %><%= render DS::Dialog.new do |dialog| %>- <% dialog.with_header(title: "Mercury Connection Error") %>+ <% dialog.with_header(title: t(".title")) %><% dialog.with_body do %><div class="space-y-4"><div class="flex items-start gap-3"><%= icon("alert-circle", class: "text-destructive w-5 h-5 shrink-0 mt-0.5") %><div class="text-sm">- <p class="font-medium text-primary mb-2">Unable to connect to Mercury</p>+ <p class="font-medium text-primary mb-2"><%= t(".unable_to_connect") %></p><p class="text-secondary"><%= error_message %></p></div></div><div class="bg-surface rounded-lg p-4 space-y-2 text-sm">- <p class="font-medium text-primary">Common Issues:</p>+ <p class="font-medium text-primary"><%= t(".common_issues") %></p><ul class="list-disc list-inside space-y-1 text-secondary">- <li><strong>Invalid API Token:</strong> Check your API token in Provider Settings</li>- <li><strong>Expired Credentials:</strong> Generate a new API token from Mercury</li>- <li><strong>Insufficient Permissions:</strong> Ensure your token has read-only access</li>- <li><strong>Network Issue:</strong> Check your internet connection</li>- <li><strong>Service Down:</strong> Mercury API may be temporarily unavailable</li>+ <li><strong><%= t(".invalid_api_token_label") %>:</strong> <%= t(".invalid_api_token_desc") %></li>+ <li><strong><%= t(".expired_credentials_label") %>:</strong> <%= t(".expired_credentials_desc") %></li>+ <li><strong><%= t(".insufficient_permissions_label") %>:</strong> <%= t(".insufficient_permissions_desc") %></li>+ <li><strong><%= t(".network_issue_label") %>:</strong> <%= t(".network_issue_desc") %></li>+ <li><strong><%= t(".service_down_label") %>:</strong> <%= t(".service_down_desc") %></li></ul></div>@@ -27,7 +27,7 @@<%= link_to settings_providers_path,class: "inline-flex items-center justify-center rounded-lg px-4 py-2 text-sm font-medium text-inverse button-bg-primary hover:button-bg-primary-hover focus:outline-none focus:ring-2 focus:ring-gray-900 theme-dark:focus:ring-white focus:ring-offset-2 transition-colors",data: { turbo: false } do %>- Check Provider Settings+ <%= t(".check_provider_settings") %><% end %></div></div>diff --git a/app/views/mercury_items/_setup_required.html.erb b/app/views/mercury_items/_setup_required.html.erbindex 0698477296..5711d968db 100644--- a/app/views/mercury_items/_setup_required.html.erb+++ b/app/views/mercury_items/_setup_required.html.erb@@ -1,23 +1,23 @@<%= turbo_frame_tag "modal" do %><%= render DS::Dialog.new do |dialog| %>- <% dialog.with_header(title: "Mercury Setup Required") %>+ <% dialog.with_header(title: t(".title")) %><% dialog.with_body do %><div class="space-y-4"><div class="flex items-start gap-3"><%= icon("alert-circle", class: "text-warning w-5 h-5 shrink-0 mt-0.5") %><div class="text-sm text-secondary">- <p class="font-medium text-primary mb-2">API Token Not Configured</p>- <p>Before you can link Mercury accounts, you need to configure your Mercury API token.</p>+ <p class="font-medium text-primary mb-2"><%= t(".api_token_not_configured") %></p>+ <p><%= t(".api_token_description") %></p></div></div><div class="bg-surface rounded-lg p-4 space-y-2 text-sm">- <p class="font-medium text-primary">Setup Steps:</p>+ <p class="font-medium text-primary"><%= t(".setup_steps_title") %></p><ol class="list-decimal list-inside space-y-1 text-secondary">- <li>Go to <strong>Settings > Providers</strong></li>- <li>Find the <strong>Mercury</strong> section</li>- <li>Enter your Mercury API token</li>- <li>Return here to link your accounts</li>+ <li><%= t(".setup_step_1_html") %></li>+ <li><%= t(".setup_step_2_html") %></li>+ <li><%= t(".setup_step_3") %></li>+ <li><%= t(".setup_step_4") %></li></ol></div>@@ -25,7 +25,7 @@<%= link_to settings_providers_path,class: "inline-flex items-center justify-center rounded-lg px-4 py-2 text-sm font-medium text-inverse button-bg-primary hover:button-bg-primary-hover focus:outline-none focus:ring-2 focus:ring-gray-900 theme-dark:focus:ring-white focus:ring-offset-2 transition-colors",data: { turbo: false } do %>- Go to Provider Settings+ <%= t(".go_to_provider_settings") %><% end %></div></div>diff --git a/app/views/messages/_chat_form.html.erb b/app/views/messages/_chat_form.html.erbindex 85f686f57b..1fbc57c820 100644--- a/app/views/messages/_chat_form.html.erb+++ b/app/views/messages/_chat_form.html.erb@@ -10,7 +10,7 @@<%# In the future, this will be a dropdown with different AI models %><%= f.hidden_field :ai_model, value: default_ai_model %>- <%= f.text_area :content, placeholder: "Ask anything ...", value: message_hint,+ <%= f.text_area :content, placeholder: t(".placeholder"), value: message_hint,class: "w-full border-0 focus:ring-0 text-sm resize-none px-1 bg-transparent",data: { chat_target: "input", action: "input->chat#autoResize keydown->chat#handleInputKeyDown" },rows: 1 %>@@ -27,5 +27,5 @@</div><% end %>- <p class="text-xs text-secondary">AI responses are informational only. Not financial advice!</p>+ <p class="text-xs text-secondary"><%= t(".disclaimer") %></p></div>diff --git a/app/views/pages/dashboard/_balance_sheet.html.erb b/app/views/pages/dashboard/_balance_sheet.html.erbindex fafc75e2f6..b2ff7d6320 100644--- a/app/views/pages/dashboard/_balance_sheet.html.erb+++ b/app/views/pages/dashboard/_balance_sheet.html.erb@@ -37,13 +37,13 @@<div class="bg-container-inset rounded-xl p-1 space-y-1 overflow-x-auto"><div class="px-4 py-2 flex items-center uppercase text-xs font-medium text-secondary">- <div class="w-40 shrink-0">Name</div>+ <div class="w-40 shrink-0"><%= t(".name") %></div><div class="ml-auto text-right flex items-center gap-2"><div class="w-20 shrink-0">- <p>Weight</p>+ <p><%= t(".weight") %></p></div><div class="w-24 shrink-0">- <p>Value</p>+ <p><%= t(".value") %></p></div></div></div>diff --git a/app/views/pages/feedback.html.erb b/app/views/pages/feedback.html.erbindex 71739e2c8a..29031ce014 100644--- a/app/views/pages/feedback.html.erb+++ b/app/views/pages/feedback.html.erb@@ -1,22 +1,22 @@-<%= content_for :page_title, "Feedback" %>+<%= content_for :page_title, t(".title") %><div class="bg-container shadow-border-xs rounded-xl p-4">- <h2 class="text-lg font-medium text-primary mb-1">Leave feedback</h2>- <p class="text-sm text-secondary mb-4">Let us know if you have any specific feedback. Feel free to include links to videos or screenshots.</p>+ <h2 class="text-lg font-medium text-primary mb-1"><%= t(".heading") %></h2>+ <p class="text-sm text-secondary mb-4"><%= t(".description") %></p><div class="flex flex-col md:flex-row gap-4"><%= link_to "https://github.com/we-promise/sure/discussions/categories/feature-requests", target: "_blank", rel: "noopener noreferrer", class: "w-full md:w-1/3 flex flex-col items-center p-4 border border-alpha-black-25 rounded-xl hover:bg-container-hover" do %><%= image_tag "github-icon.svg", class: "w-8 h-8 mb-2" %>- <span class="text-sm font-medium text-primary text-center">Write a feature request</span>+ <span class="text-sm font-medium text-primary text-center"><%= t(".feature_request") %></span><% end %><%= link_to "https://github.com/we-promise/sure/issues/new?assignees=&labels=bug&template=bug_report.md&title=", target: "_blank", rel: "noopener noreferrer", class: "w-full md:w-1/3 flex flex-col items-center p-4 border border-alpha-black-25 rounded-xl hover:bg-container-hover" do %><%= image_tag "github-icon.svg", class: "w-8 h-8 mb-2" %>- <span class="text-sm font-medium text-primary text-center">File a bug report</span>+ <span class="text-sm font-medium text-primary text-center"><%= t(".bug_report") %></span><% end %><%= link_to "https://discord.gg/36ZGBsxYEK", target: "_blank", rel: "noopener noreferrer", class: "w-full md:w-1/3 flex flex-col items-center p-4 border border-alpha-black-25 rounded-xl hover:bg-container-hover" do %><%= image_tag "discord-icon.svg", class: "w-8 h-8 mb-2" %>- <span class="text-sm font-medium text-primary text-center">Discuss <%= product_name %> with others</span>+ <span class="text-sm font-medium text-primary text-center"><%= t(".discuss", product: product_name) %></span><% end %></div></div>diff --git a/app/views/pages/intro.html.erb b/app/views/pages/intro.html.erbindex 6ebceb3159..7378ccdebb 100644--- a/app/views/pages/intro.html.erb+++ b/app/views/pages/intro.html.erb@@ -1,6 +1,6 @@<% content_for :page_header do %><div class="space-y-2">- <h1 class="text-2xl font-semibold text-primary">Welcome!</h1>+ <h1 class="text-2xl font-semibold text-primary"><%= t(".welcome") %></h1><br></div><% end %>@@ -10,12 +10,12 @@<div class="flex justify-center"><%= image_tag "logomark-color.svg", class: "w-16 h-16" %></div>- <h2 class="text-xl font-semibold text-primary">Intro experience coming soon</h2>+ <h2 class="text-xl font-semibold text-primary"><%= t(".coming_soon") %></h2><p class="text-secondary">- We're building a richer onboarding journey to learn about your goals, milestones, and day-to-day needs. For now, head over to the chat sidebar to start a conversation with Sure and let us know where you are in your financial journey.+ <%= t(".description") %></p><div>- <%= link_to "Start chatting", chats_path, class: "inline-flex items-center gap-2 px-4 py-2 rounded-lg button-bg-primary text-inverse font-medium" %>+ <%= link_to t(".start_chatting"), chats_path, class: "inline-flex items-center gap-2 px-4 py-2 rounded-lg button-bg-primary text-inverse font-medium" %></div></div></div>diff --git a/app/views/pages/redis_configuration_error.html.erb b/app/views/pages/redis_configuration_error.html.erbindex a95e00862b..8a1a6411f4 100644--- a/app/views/pages/redis_configuration_error.html.erb+++ b/app/views/pages/redis_configuration_error.html.erb@@ -1,4 +1,4 @@-<% content_for :title, "Redis Configuration Required - Sure" %>+<% content_for :title, t(".page_title") %><div class="flex items-center justify-center h-full p-4 sm:p-6 lg:p-8"><div class="w-full max-w-md sm:max-w-lg lg:max-w-2xl">@@ -8,8 +8,8 @@<div class="mx-auto w-16 h-16 bg-red-100 rounded-full flex items-center justify-center mb-4"><%= icon "alert-triangle", class: "w-8 h-8 text-red-600" %></div>- <h1 class="text-xl sm:text-2xl font-bold text-primary mb-2">Redis Configuration Required</h1>- <p class="text-sm sm:text-base text-subdued">Your self-hosted Sure installation needs Redis to be properly configured.</p>+ <h1 class="text-xl sm:text-2xl font-bold text-primary mb-2"><%= t(".heading") %></h1>+ <p class="text-sm sm:text-base text-subdued"><%= t(".subheading") %></p></div><!-- Explanation -->@@ -18,8 +18,8 @@<div class="flex items-start"><%= icon "info", class: "w-5 h-5 text-amber-600 mt-0.5 mr-3 flex-shrink-0" %><div class="text-sm text-amber-800">- <p><strong>Why is Redis required?</strong></p>- <p class="mt-1">Sure uses Redis to power Sidekiq background jobs for tasks like syncing account data, processing imports, and other background operations that keep your financial data up to date.</p>+ <p><strong><%= t(".why_required_title") %></strong></p>+ <p class="mt-1"><%= t(".why_required_body") %></p></div></div></div>@@ -27,7 +27,7 @@<!-- Primary CTA --><div class="text-center space-y-4"><%= render DS::Link.new(- text: "View Setup Guide",+ text: t(".view_setup_guide"),href: "https://github.com/we-promise/sure/blob/main/docs/hosting/docker.md",variant: "primary",size: "lg",@@ -36,16 +36,16 @@target: "_blank",rel: "noopener noreferrer") %>- <p class="text-sm text-subdued">Follow our complete Docker setup guide to configure Redis</p>+ <p class="text-sm text-subdued"><%= t(".setup_guide_hint") %></p></div></div><!-- Secondary CTA --><div class="pt-6 border-t border-primary"><div class="text-center space-y-3">- <p class="text-sm text-subdued">Once you've configured Redis, refresh this page to continue.</p>+ <p class="text-sm text-subdued"><%= t(".refresh_hint") %></p><%= render DS::Button.new(- text: "Refresh Page",+ text: t(".refresh_page"),variant: "secondary",icon: "refresh-cw",type: "button",diff --git a/app/views/properties/_overview_fields.html.erb b/app/views/properties/_overview_fields.html.erbindex 0fe59023d1..d641c7bdfd 100644--- a/app/views/properties/_overview_fields.html.erb+++ b/app/views/properties/_overview_fields.html.erb@@ -2,8 +2,8 @@<div class="flex flex-col gap-2"><%= form.text_field :name,- label: "Name",- placeholder: "Vacation home",+ label: t(".name_label"),+ placeholder: t(".name_placeholder"),required: true %><%= form.hidden_field :accountable_type, value: "Property" %>@@ -11,24 +11,24 @@<%= form.fields_for :accountable do |property_form| %><%= property_form.select :subtype,Property::SUBTYPES.map { |k, v| [v[:long], k] },- { prompt: "Select type", label: "Property type" }, required: true %>+ { prompt: t(".subtype_prompt"), label: t(".property_type_label") }, required: true %><div class="flex items-center gap-2"><%= property_form.number_field :year_built,- label: "Year Built (optional)",- placeholder: "1990",+ label: t(".year_built_label"),+ placeholder: t(".year_built_placeholder"),min: 1500,max: Time.current.year %></div><div class="flex items-center gap-2"><%= property_form.number_field :area_value,- label: "Area (optional)",- placeholder: "1200",+ label: t(".area_label"),+ placeholder: t(".area_placeholder"),min: 0 %><%= property_form.select :area_unit,- [["Square Feet", "sqft"], ["Square Meters", "sqm"]],- { label: "Area Unit" } %>+ [[t(".square_feet"), "sqft"], [t(".square_meters"), "sqm"]],+ { label: t(".area_unit_label") } %></div><% end %>diff --git a/app/views/properties/address.html.erb b/app/views/properties/address.html.erbindex 834f7c95c3..489ab62b10 100644--- a/app/views/properties/address.html.erb+++ b/app/views/properties/address.html.erb@@ -1,5 +1,5 @@<%= render DS::Dialog.new do |dialog| %>- <% dialog.with_header(title: "Enter property manually") %>+ <% dialog.with_header(title: t(".title")) %><% dialog.with_body do %><div class="flex gap-4"><!-- Left sidebar with tabs -->@@ -13,25 +13,25 @@<%= form.fields_for :address do |address_form| %><%= address_form.text_field :line1,- label: "Address Line 1",- placeholder: "123 Main Street" %>+ label: t(".address_line1_label"),+ placeholder: t(".address_line1_placeholder") %><div class="flex items-center gap-2"><%= address_form.text_field :locality,- label: "City",- placeholder: "San Francisco" %>+ label: t(".city_label"),+ placeholder: t(".city_placeholder") %><%= address_form.text_field :region,- label: "State/Region",- placeholder: "CA" %>+ label: t(".state_region_label"),+ placeholder: t(".state_region_placeholder") %></div><div class="flex items-center gap-2"><%= address_form.text_field :postal_code,- label: "Postal Code",- placeholder: "12345" %>+ label: t(".postal_code_label"),+ placeholder: t(".postal_code_placeholder") %><%= address_form.text_field :country,- label: "Country",- placeholder: "USA" %>+ label: t(".country_label"),+ placeholder: t(".country_placeholder") %></div><% end %></div>@@ -39,7 +39,7 @@<!-- Save button --><div class="flex justify-end mt-4"><%= render DS::Button.new(- text: "Save",+ text: t(".save"),variant: "primary",) %></div>diff --git a/app/views/properties/balances.html.erb b/app/views/properties/balances.html.erbindex a25f77936a..3cd96041d3 100644--- a/app/views/properties/balances.html.erb+++ b/app/views/properties/balances.html.erb@@ -1,5 +1,5 @@<%= render DS::Dialog.new do |dialog| %>- <% dialog.with_header(title: "Enter property manually") %>+ <% dialog.with_header(title: t(".title")) %><% dialog.with_body do %><div class="flex gap-4"><%= render "properties/form_tabs", account: @account, active_tab: "value" %>@@ -11,15 +11,15 @@<%= render "properties/form_alert", notice: @success_message, error: @error_message %><%= form.money_field :balance,- label: "Estimated market value",- label_tooltip: "The estimated market value of your property. This number can often be found on sites like Zillow or Redfin, and is never an exact number.",+ label: t(".market_value_label"),+ label_tooltip: t(".market_value_tooltip"),placeholder: "0" %></div><!-- Next button --><div class="flex justify-end mt-4"><%= render DS::Button.new(- text: @account.active? ? "Save" : "Next",+ text: @account.active? ? t(".save") : t(".next"),variant: "primary",) %></div>diff --git a/app/views/properties/new.html.erb b/app/views/properties/new.html.erbindex 03feb04a0e..32ab6d9606 100644--- a/app/views/properties/new.html.erb+++ b/app/views/properties/new.html.erb@@ -1,5 +1,5 @@<%= render DS::Dialog.new do |dialog| %>- <% dialog.with_header(title: "Enter property manually") %>+ <% dialog.with_header(title: t(".title")) %><% dialog.with_body do %><div class="flex gap-4"><!-- Left sidebar with tabs -->@@ -16,7 +16,7 @@<!-- Create button --><div class="flex justify-end mt-4"><%= render DS::Button.new(- text: "Next",+ text: t(".next"),variant: "primary",) %></div>diff --git a/app/views/properties/tabs/_overview.html.erb b/app/views/properties/tabs/_overview.html.erbindex 3a33e092fb..df34174436 100644--- a/app/views/properties/tabs/_overview.html.erb+++ b/app/views/properties/tabs/_overview.html.erb@@ -30,7 +30,7 @@<div class="flex justify-center py-8"><%= render DS::Link.new(- text: "Edit account details",+ text: t(".edit_account_details"),href: edit_property_path(account),variant: "ghost",frame: :modaldiff --git a/app/views/reports/_investment_flows.html.erb b/app/views/reports/_investment_flows.html.erbindex 83db092e22..ee773b994a 100644--- a/app/views/reports/_investment_flows.html.erb+++ b/app/views/reports/_investment_flows.html.erb@@ -1,7 +1,7 @@<%# locals: (investment_flows:) %><div class="space-y-4"><p class="text-sm text-secondary">- Track money flowing into and out of your investment accounts through contributions and withdrawals.+ <%= t(".description") %></p><div class="grid grid-cols-1 md:grid-cols-3 gap-4">@@ -9,36 +9,36 @@<div class="bg-container border border-primary rounded-lg p-4"><div class="flex items-center gap-2 mb-2"><%= icon("trending-up", size: "sm", class: "text-green-600") %>- <h3 class="text-sm font-medium text-secondary">Contributions</h3>+ <h3 class="text-sm font-medium text-secondary"><%= t(".contributions") %></h3></div><div class="text-2xl font-semibold privacy-sensitive" style="color: rgb(34 197 94);"><%= format_money(investment_flows.contributions) %></div>- <p class="text-xs text-secondary mt-1">Money added to investments</p>+ <p class="text-xs text-secondary mt-1"><%= t(".contributions_description") %></p></div><!-- Withdrawals --><div class="bg-container border border-primary rounded-lg p-4"><div class="flex items-center gap-2 mb-2"><%= icon("trending-down", size: "sm", class: "text-orange-600") %>- <h3 class="text-sm font-medium text-secondary">Withdrawals</h3>+ <h3 class="text-sm font-medium text-secondary"><%= t(".withdrawals") %></h3></div><div class="text-2xl font-semibold privacy-sensitive" style="color: rgb(249 115 22);"><%= format_money(investment_flows.withdrawals) %></div>- <p class="text-xs text-secondary mt-1">Money withdrawn from investments</p>+ <p class="text-xs text-secondary mt-1"><%= t(".withdrawals_description") %></p></div><!-- Net Flow --><div class="bg-container border border-primary rounded-lg p-4"><div class="flex items-center gap-2 mb-2"><%= icon("arrow-right-left", size: "sm", class: "text-primary") %>- <h3 class="text-sm font-medium text-secondary">Net Flow</h3>+ <h3 class="text-sm font-medium text-secondary"><%= t(".net_flow") %></h3></div><div class="text-2xl font-semibold text-primary privacy-sensitive"><%= format_money(investment_flows.net_flow) %></div>- <p class="text-xs text-secondary mt-1">Total net change</p>+ <p class="text-xs text-secondary mt-1"><%= t(".net_flow_description") %></p></div></div></div>diff --git a/app/views/rule/conditions/_condition_group.html.erb b/app/views/rule/conditions/_condition_group.html.erbindex 54f056baee..09161462f7 100644--- a/app/views/rule/conditions/_condition_group.html.erb+++ b/app/views/rule/conditions/_condition_group.html.erb@@ -11,11 +11,11 @@<div class="flex items-center gap-2"><%# Show prefix on condition groups, except the first one %><div class="pl-2" data-condition-prefix>- <span class="font-medium uppercase text-xs">and</span>+ <span class="font-medium uppercase text-xs"><%= t(".and_prefix") %></span></div>- <p class="text-sm text-secondary">match</p>- <%= form.select :operator, [["all", "and"], ["any", "or"]], { container_class: "w-fit" }, data: { rules_target: "operatorField" } %>- <p class="text-sm text-secondary">of the following conditions</p>+ <p class="text-sm text-secondary"><%= t(".match") %></p>+ <%= form.select :operator, [[t(".all"), "and"], [t(".any"), "or"]], { container_class: "w-fit" }, data: { rules_target: "operatorField" } %>+ <p class="text-sm text-secondary"><%= t(".of_the_following_conditions") %></p></div><%= icon(@@ -40,7 +40,7 @@</ul><%= render DS::Button.new(- text: "Add condition",+ text: t(".add_condition"),leading_icon: "plus",variant: "ghost",type: "button",diff --git a/app/views/rules/_form.html.erb b/app/views/rules/_form.html.erbindex 2f4f1fe183..7c942a35f9 100644--- a/app/views/rules/_form.html.erb+++ b/app/views/rules/_form.html.erb@@ -12,10 +12,10 @@<section class="space-y-4"><div class="flex items-center gap-1 text-secondary"><%= icon "tag", size: "sm" %>- <h3 class="text-sm font-medium text-primary">Rule name (optional)</h3>+ <h3 class="text-sm font-medium text-primary"><%= t(".rule_name_label") %></h3></div><div class="ml-6">- <%= f.text_field :name, placeholder: "Enter a name for this rule", class: "form-field__input" %>+ <%= f.text_field :name, placeholder: t(".rule_name_placeholder"), class: "form-field__input" %></div></section>@@ -50,15 +50,15 @@</ul><div class="flex items-center gap-2">- <%= render DS::Button.new(text: "Add condition", icon: "plus", variant: "ghost", type: "button", data: { action: "rules#addCondition" }) %>- <%= render DS::Button.new(text: "Add condition group", icon: "copy-plus", variant: "ghost", type: "button", data: { action: "rules#addConditionGroup" }) %>+ <%= render DS::Button.new(text: t(".add_condition"), icon: "plus", variant: "ghost", type: "button", data: { action: "rules#addCondition" }) %>+ <%= render DS::Button.new(text: t(".add_condition_group"), icon: "copy-plus", variant: "ghost", type: "button", data: { action: "rules#addConditionGroup" }) %></div></div></section><section class="space-y-4"><div class="flex items-center gap-1 text-secondary">- <h3 class="text-sm font-medium text-primary">THEN</h3>+ <h3 class="text-sm font-medium text-primary"><%= t(".then") %></h3></div><%# Action template, used by Stimulus controller to add new actions dynamically %>@@ -75,7 +75,7 @@<% end %></ul>- <%= render DS::Button.new(text: "Add action", icon: "plus", variant: "ghost", type: "button", data: { action: "rules#addAction" }) %>+ <%= render DS::Button.new(text: t(".add_action"), icon: "plus", variant: "ghost", type: "button", data: { action: "rules#addAction" }) %></div></section>@@ -87,13 +87,13 @@<div class="ml-6 space-y-3"><div class="flex items-center gap-2"><%= f.radio_button :effective_date_enabled, false, checked: rule.effective_date.nil?, data: { action: "rules#clearEffectiveDate" } %>- <%= f.label :effective_date_enabled_false, "All past and future #{rule.resource_type}s", class: "text-sm text-primary" %>+ <%= f.label :effective_date_enabled_false, t(".all_past_and_future", resource: rule.resource_type.pluralize), class: "text-sm text-primary" %></div><div class="flex items-center gap-2"><div class="flex items-center gap-2"><%= f.radio_button :effective_date_enabled, true, checked: rule.effective_date.present? %>- <%= f.label :effective_date_enabled_true, "Starting from", class: "text-sm text-primary" %>+ <%= f.label :effective_date_enabled_true, t(".starting_from"), class: "text-sm text-primary" %></div><%= f.date_field :effective_date, container_class: "w-fit", data: { rules_target: "effectiveDateInput" } %>diff --git a/app/views/rules/_rule.html.erb b/app/views/rules/_rule.html.erbindex 2e882e4ba7..3106e8b4fb 100644--- a/app/views/rules/_rule.html.erb+++ b/app/views/rules/_rule.html.erb@@ -21,14 +21,14 @@<% end %></span><% if additional_condition_count.positive? %>- and <%= additional_condition_count %> more <%= additional_condition_count == 1 ? "condition" : "conditions" %>+ <%= t(".and_more_conditions", count: additional_condition_count) %><% end %></p></div><% end %><div class="flex items-center gap-2 mt-1"><div class="flex items-center gap-1 text-secondary w-16 shrink-0">- <span class="font-mono text-xs">THEN</span>+ <span class="font-mono text-xs"><%= t(".then") %></span></div><p class="flex items-center flex-wrap gap-1.5 m-0"><span class="px-2 py-1 border border-secondary rounded-full">@@ -36,14 +36,14 @@<%= t("rules.no_action") %><% else %><% if rule.actions.first.value && rule.actions.first.options %>- <%= rule.actions.first.executor.label %> to <%= rule.actions.first.value_display %>+ <%= t(".action_label_to", label: rule.actions.first.executor.label, value: rule.actions.first.value_display) %><% else %><%= rule.actions.first.executor.label %><% end %><% end %></span><% if rule.actions.count > 1 %>- and <%= rule.actions.count - 1 %> more <%= rule.actions.count - 1 == 1 ? "action" : "actions" %>+ <%= t(".and_more_actions", count: rule.actions.count - 1) %><% end %></p></div>@@ -54,9 +54,9 @@<p class="flex items-center flex-wrap gap-1.5 m-0"><span class="px-2 py-1 border border-secondary rounded-full"><% if rule.effective_date.nil? %>- All past and future <%= rule.resource_type.pluralize %>+ <%= t(".all_past_and_future", resource: rule.resource_type.pluralize) %><% else %>- <%= rule.resource_type.pluralize %> on or after <%= rule.effective_date.strftime("%b %-d, %Y") %>+ <%= t(".on_or_after", resource: rule.resource_type.pluralize, date: rule.effective_date.strftime("%b %-d, %Y")) %><% end %></span></p>@@ -67,11 +67,11 @@<%= f.toggle :active, { data: { auto_submit_form_target: "auto" } } %><% end %><%= render DS::Menu.new do |menu| %>- <% menu.with_item(variant: "link", text: "Edit", href: edit_rule_path(rule), icon: "pencil", data: { turbo_frame: "modal" }) %>- <% menu.with_item(variant: "link", text: "Re-apply rule", href: confirm_rule_path(rule), icon: "refresh-cw", data: { turbo_frame: "modal" }) %>+ <% menu.with_item(variant: "link", text: t(".edit"), href: edit_rule_path(rule), icon: "pencil", data: { turbo_frame: "modal" }) %>+ <% menu.with_item(variant: "link", text: t(".re_apply_rule"), href: confirm_rule_path(rule), icon: "refresh-cw", data: { turbo_frame: "modal" }) %><% menu.with_item(variant: "button",- text: "Delete",+ text: t(".delete"),href: rule_path(rule),icon: "trash-2",method: :delete,diff --git a/app/views/rules/confirm.html.erb b/app/views/rules/confirm.html.erbindex cf505c8f94..13947e59fd 100644--- a/app/views/rules/confirm.html.erb+++ b/app/views/rules/confirm.html.erb@@ -1,18 +1,16 @@<%= render DS::Dialog.new(reload_on_close: params[:reload_on_close].present?) do |dialog| %><%title = if @rule.name.present?- "Confirm changes to \"#{@rule.name}\""+ t(".title_with_name", name: @rule.name)else- "Confirm changes"+ t(".title")end%><% dialog.with_header(title: title) %><% dialog.with_body do %><p class="text-secondary text-sm mb-4">- You are about to apply this rule to- <span class="text-primary font-medium"><%= @rule.affected_resource_count %> <%= @rule.resource_type.pluralize %></span>- that meet the specified rule criteria. Please confirm if you wish to proceed with this change.+ <%= t(".apply_notice_html", count: @rule.affected_resource_count, resource: @rule.resource_type.pluralize) %></p><% if @rule.actions.any? { |a| a.action_type == "auto_categorize" } %>@@ -21,25 +19,24 @@<div class="flex items-start gap-2"><%= icon "info", class: "w-4 h-4 text-blue-600 mt-0.5 flex-shrink-0" %><div class="text-xs">- <p class="font-medium text-blue-900 mb-1">AI Cost Estimation</p>+ <p class="font-medium text-blue-900 mb-1"><%= t(".ai_cost_title") %></p><% if @estimated_cost.present? %><p class="text-blue-700">- This will use AI to categorize <%= affected_count %> transaction<%= "s" if affected_count != 1 %>.- Estimated cost: <span class="font-semibold">~$<%= sprintf("%.4f", @estimated_cost) %></span>+ <%= t(".ai_cost_with_estimate_html", count: affected_count, cost: sprintf("%.4f", @estimated_cost)) %></p><% else %><p class="text-blue-700">- This will use AI to categorize <%= affected_count %> transaction<%= "s" if affected_count != 1 %>.+ <%= t(".ai_cost_no_estimate_html", count: affected_count) %><% if @selected_model.present? %>- <span class="font-semibold">Cost estimation unavailable for model "<%= @selected_model %>".</span>+ <span class="font-semibold"><%= t(".cost_unavailable_model", model: @selected_model) %></span><% else %>- <span class="font-semibold">Cost estimation unavailable (no LLM provider configured).</span>+ <span class="font-semibold"><%= t(".cost_unavailable_no_provider") %></span><% end %>- You may incur costs, please check with the model provider for the most up-to-date prices.+ <%= t(".cost_warning") %></p><% end %><p class="text-blue-600 mt-1">- <%= link_to "View usage history", settings_llm_usage_path, class: "underline hover:text-blue-800" %>+ <%= link_to t(".view_usage_history"), settings_llm_usage_path, class: "underline hover:text-blue-800" %></p></div></div>@@ -47,7 +44,7 @@<% end %><%= render DS::Button.new(- text: "Confirm changes",+ text: t(".confirm_changes"),href: apply_rule_path(@rule),method: :post,full_width: true,diff --git a/app/views/rules/index.html.erb b/app/views/rules/index.html.erbindex 00d0dfb94f..05c5361dd1 100644--- a/app/views/rules/index.html.erb+++ b/app/views/rules/index.html.erb@@ -1,4 +1,4 @@-<%= content_for :page_title, "Rules" %>+<%= content_for :page_title, t(".page_title") %><%= content_for :page_actions do %><% if @rules.any? %><%= render DS::Menu.new do |menu| %>@@ -15,7 +15,7 @@)) %><% menu.with_item(variant: "button",- text: "Delete all rules",+ text: t(".delete_all_rules"),href: destroy_all_rules_path,icon: "trash-2",method: :delete,@@ -30,7 +30,7 @@) %><% end %><%= render DS::Link.new(- text: "New rule",+ text: t(".new_rule"),variant: "primary",href: new_rule_path(resource_type: "transaction"),icon: "plus",@@ -42,7 +42,7 @@<div class="flex items-center gap-2 mb-2 py-4"><%= icon("circle-alert", size: "sm") %><p class="text-sm text-secondary">- AI-enabled rule actions will cost money. Be sure to filter as narrowly as possible to avoid unnecessary costs.+ <%= t(".ai_cost_warning") %></p></div><% end %>@@ -51,15 +51,15 @@<div class="bg-container-inset rounded-xl"><div class="flex justify-between px-4 py-2 text-xs uppercase"><div class="flex items-center gap-1.5 font-medium text-secondary">- <p>Rules</p>+ <p><%= t(".rules_heading") %></p><span class="text-subdued">·</span><p><%= @rules.count %></p></div><div class="flex items-center gap-1">- <span class="text-secondary">Sort by:</span>+ <span class="text-secondary"><%= t(".sort_by") %></span><%= form_with url: rules_path, method: :get, local: true, class: "flex items-center", data: { controller: "auto-submit-form" } do |form| %><%= form.select :sort_by,- options_for_select([["Name", "name"], ["Updated At", "updated_at"]], @sort_by),+ options_for_select([[t(".sort_name"), "name"], [t(".sort_updated_at"), "updated_at"]], @sort_by),{},class: "min-w-[120px] bg-transparent rounded border-none cursor-pointer text-primary uppercase text-xs w-auto",data: { auto_submit_form_target: "auto", autosubmit_trigger_event: "change" } %>@@ -70,7 +70,7 @@variant: "icon",icon: "arrow-up-down",size: :sm,- title: "Toggle sort direction"+ title: t(".toggle_sort_direction")) %></div></div>@@ -83,11 +83,11 @@<% else %><div class="flex justify-center items-center py-20"><div class="text-center flex flex-col items-center max-w-[500px]">- <p class="text-sm text-primary font-medium mb-1">No rules yet</p>- <p class="text-sm text-secondary mb-4">Set up rules to perform actions to your transactions and other data on every account sync.</p>+ <p class="text-sm text-primary font-medium mb-1"><%= t(".no_rules_title") %></p>+ <p class="text-sm text-secondary mb-4"><%= t(".no_rules_description") %></p><div class="flex items-center gap-2"><%= render DS::Link.new(- text: "New rule",+ text: t(".new_rule"),variant: "primary",href: new_rule_path(resource_type: "transaction"),icon: "plus",diff --git a/app/views/sessions/mobile_sso_start.html.erb b/app/views/sessions/mobile_sso_start.html.erbindex 74fa9ebfda..123aca3a74 100644--- a/app/views/sessions/mobile_sso_start.html.erb+++ b/app/views/sessions/mobile_sso_start.html.erb@@ -4,5 +4,5 @@<input type="hidden" name="authenticity_token" value="<%= form_authenticity_token %>"></form><script>document.getElementById('sso_form').submit();</script>- <noscript><p>Redirecting to sign in... <a href="/auth/<%= ERB::Util.html_escape(@provider) %>">Click here</a> if not redirected.</p></noscript>+ <noscript><p><%= t("sessions.mobile_sso_start.redirecting_html", url: "/auth/#{ERB::Util.html_escape(@provider)}") %></p></noscript></body></html>diff --git a/app/views/settings/_settings_nav.html.erb b/app/views/settings/_settings_nav.html.erbindex 19bd4a241a..f72cbc1961 100644--- a/app/views/settings/_settings_nav.html.erb+++ b/app/views/settings/_settings_nav.html.erb@@ -28,13 +28,13 @@ nav_sections = [header: t(".advanced_section_title"),items: [{ label: t(".ai_prompts_label"), path: settings_ai_prompts_path, icon: "bot" },- { label: "LLM Usage", path: settings_llm_usage_path, icon: "activity" },+ { label: t(".llm_usage_label"), path: settings_llm_usage_path, icon: "activity" },{ label: t(".api_keys_label"), path: settings_api_key_path, icon: "key" },{ label: t(".self_hosting_label"), path: settings_hosting_path, icon: "database", if: self_hosted? },{ label: t(".imports_label"), path: imports_path, icon: "download" },{ label: t(".exports_label"), path: family_exports_path, icon: "upload" },- { label: "SSO Providers", path: admin_sso_providers_path, icon: "key-round", if: Current.user&.super_admin? },- { label: "Users", path: admin_users_path, icon: "users", if: Current.user&.super_admin? }+ { label: t(".sso_providers_label"), path: admin_sso_providers_path, icon: "key-round", if: Current.user&.super_admin? },+ { label: t(".users_label"), path: admin_users_path, icon: "users", if: Current.user&.super_admin? }]} : nil),diff --git a/app/views/settings/api_keys/created.html.erb b/app/views/settings/api_keys/created.html.erbindex d371890003..d0c4e7bcab 100644--- a/app/views/settings/api_keys/created.html.erb+++ b/app/views/settings/api_keys/created.html.erb@@ -1,6 +1,6 @@-<%= content_for :page_title, "API Key Created" %>+<%= content_for :page_title, t(".page_title") %>-<%= settings_section title: "API Key Created Successfully", subtitle: "Your new API key has been generated successfully." do %>+<%= settings_section title: t(".success_title"), subtitle: t(".success_description") do %><div class="space-y-4"><div class="p-3 shadow-border-xs bg-container rounded-lg"><div class="flex items-start gap-3">@@ -11,21 +11,21 @@variant: :success) %><div class="flex-1">- <h3 class="font-medium text-primary">API Key Created Successfully!</h3>- <p class="text-secondary text-sm mt-1">Your new API key "<%= @api_key.name %>" has been created and is ready to use.</p>+ <h3 class="font-medium text-primary"><%= t(".success_title") %></h3>+ <p class="text-secondary text-sm mt-1"><%= t(".key_ready", name: @api_key.name) %></p></div></div></div><div class="bg-surface-inset rounded-xl p-4">- <h4 class="font-medium text-primary mb-3">Your API Key</h4>- <p class="text-secondary text-sm mb-3">Copy and store this key securely. You'll need it to authenticate your API requests.</p>+ <h4 class="font-medium text-primary mb-3"><%= t(".your_api_key") %></h4>+ <p class="text-secondary text-sm mb-3"><%= t(".copy_store_securely") %></p><div class="bg-container rounded-lg p-3 border border-primary" data-controller="clipboard"><div class="flex items-center justify-between gap-3"><code id="api-key-display" class="font-mono text-sm text-primary break-all" data-clipboard-target="source"><%= @api_key.plain_key %></code><%= render DS::Button.new(- text: "Copy API Key",+ text: t(".copy_key"),variant: "ghost",icon: "copy",data: { action: "clipboard#copy" }@@ -35,42 +35,41 @@</div><div class="bg-surface-inset rounded-xl p-4">- <h4 class="font-medium text-primary mb-3">Key Details</h4>+ <h4 class="font-medium text-primary mb-3"><%= t(".key_details_title") %></h4><div class="space-y-2 text-sm"><div class="flex justify-between">- <span class="text-secondary">Name:</span>+ <span class="text-secondary"><%= t(".key_name_label") %></span><span class="text-primary font-medium"><%= @api_key.name %></span></div><div class="flex justify-between">- <span class="text-secondary">Permissions:</span>+ <span class="text-secondary"><%= t(".permissions_label") %></span><span class="text-primary"><%= @api_key.scopes.map { |scope|case scope- when "read_accounts" then "View Accounts"- when "read_transactions" then "View Transactions"- when "read_balances" then "View Balances"- when "write_transactions" then "Create Transactions"+ when "read_accounts" then t("settings.api_keys_controller.scope_descriptions.read_accounts")+ when "read_transactions" then t("settings.api_keys_controller.scope_descriptions.read_transactions")+ when "read_balances" then t("settings.api_keys_controller.scope_descriptions.read_balances")+ when "write_transactions" then t("settings.api_keys_controller.scope_descriptions.write_transactions")else scope.humanizeend}.join(", ") %></span></div><div class="flex justify-between">- <span class="text-secondary">Created:</span>+ <span class="text-secondary"><%= t(".created_label") %></span><span class="text-primary"><%= @api_key.created_at.strftime("%B %d, %Y at %I:%M %p") %></span></div></div></div>- <%= render DS::Alert.new(title: "Important Security Note", variant: :warning) do %>+ <%= render DS::Alert.new(title: t(".security_note_title"), variant: :warning) do %><p>- This is the only time your API key will be displayed. Make sure to copy it now and store it securely.- If you lose this key, you'll need to generate a new one.+ <%= t(".security_note_body") %></p><% end %><div class="bg-surface-inset rounded-xl p-4">- <h4 class="font-medium text-primary mb-3">How to use your API key</h4>+ <h4 class="font-medium text-primary mb-3"><%= t(".usage_instructions_title") %></h4><p class="text-secondary text-sm mb-3"><%= t("settings.api_keys.show.current_api_key.usage_instructions", product_name: product_name) %></p><div class="bg-container rounded-lg p-3 font-mono text-sm text-primary border border-primary">curl -H "X-Api-Key: <%= @api_key.plain_key %>" <%= request.base_url %>/api/v1/accounts@@ -79,7 +78,7 @@<div class="flex justify-end pt-4 border-t border-primary"><%= render DS::Link.new(- text: "Continue to API Key Settings",+ text: t(".continue"),href: settings_api_key_path,variant: "primary") %>diff --git a/app/views/settings/api_keys/created.turbo_stream.erb b/app/views/settings/api_keys/created.turbo_stream.erbindex dec5baeb95..f187a6d310 100644--- a/app/views/settings/api_keys/created.turbo_stream.erb+++ b/app/views/settings/api_keys/created.turbo_stream.erb@@ -2,10 +2,10 @@<div class="relative max-w-4xl mx-auto flex flex-col w-full h-full"><div class="grow space-y-4 overflow-y-auto -mx-1 px-1 pb-12"><h1 class="text-primary text-3xl md:text-xl font-medium">- API Key Created+ <%= t("settings.api_keys.created.page_title") %></h1>- <%= settings_section title: "API Key Created Successfully", subtitle: "Your new API key has been generated successfully." do %>+ <%= settings_section title: t("settings.api_keys.created.success_title"), subtitle: t("settings.api_keys.created.success_description") do %><div class="space-y-4"><div class="p-3 shadow-border-xs bg-container rounded-lg"><div class="flex items-start gap-3">@@ -16,21 +16,21 @@variant: :success) %><div class="flex-1">- <h3 class="font-medium text-primary">API Key Created Successfully!</h3>- <p class="text-secondary text-sm mt-1">Your new API key "<%= @api_key.name %>" has been created and is ready to use.</p>+ <h3 class="font-medium text-primary"><%= t("settings.api_keys.created.success_title") %></h3>+ <p class="text-secondary text-sm mt-1"><%= t("settings.api_keys.created.key_ready", name: @api_key.name) %></p></div></div></div><div class="bg-surface-inset rounded-xl p-4">- <h4 class="font-medium text-primary mb-3">Your API Key</h4>- <p class="text-secondary text-sm mb-3">Copy and store this key securely. You'll need it to authenticate your API requests.</p>+ <h4 class="font-medium text-primary mb-3"><%= t("settings.api_keys.created.your_api_key") %></h4>+ <p class="text-secondary text-sm mb-3"><%= t("settings.api_keys.created.copy_store_securely") %></p><div class="bg-container rounded-lg p-3 border border-primary" data-controller="clipboard"><div class="flex items-center justify-between gap-3"><code id="api-key-display" class="font-mono text-sm text-primary break-all" data-clipboard-target="source"><%= @api_key.plain_key %></code><%= render DS::Button.new(- text: "Copy API Key",+ text: t("settings.api_keys.created.copy_key"),variant: "ghost",icon: "copy",data: { action: "clipboard#copy" }@@ -40,43 +40,42 @@</div><div class="bg-surface-inset rounded-xl p-4">- <h4 class="font-medium text-primary mb-3">Key Details</h4>+ <h4 class="font-medium text-primary mb-3"><%= t("settings.api_keys.created.key_details_title") %></h4><div class="space-y-2 text-sm"><div class="flex justify-between">- <span class="text-secondary">Name:</span>+ <span class="text-secondary"><%= t("settings.api_keys.created.key_name_label") %></span><span class="text-primary font-medium"><%= @api_key.name %></span></div><div class="flex justify-between">- <span class="text-secondary">Permissions:</span>+ <span class="text-secondary"><%= t("settings.api_keys.created.permissions_label") %></span><span class="text-primary"><%= @api_key.scopes.map { |scope|case scope- when "read_accounts" then "View Accounts"- when "read_transactions" then "View Transactions"- when "read_balances" then "View Balances"- when "write_transactions" then "Create Transactions"+ when "read_accounts" then t("settings.api_keys_controller.scope_descriptions.read_accounts")+ when "read_transactions" then t("settings.api_keys_controller.scope_descriptions.read_transactions")+ when "read_balances" then t("settings.api_keys_controller.scope_descriptions.read_balances")+ when "write_transactions" then t("settings.api_keys_controller.scope_descriptions.write_transactions")else scope.humanizeend}.join(", ") %></span></div><div class="flex justify-between">- <span class="text-secondary">Created:</span>+ <span class="text-secondary"><%= t("settings.api_keys.created.created_label") %></span><span class="text-primary"><%= @api_key.created_at.strftime("%B %d, %Y at %I:%M %p") %></span></div></div></div>- <%= render DS::Alert.new(title: "Important Security Note", variant: :warning) do %>+ <%= render DS::Alert.new(title: t("settings.api_keys.created.security_note_title"), variant: :warning) do %><p>- This is the only time your API key will be displayed. Make sure to copy it now and store it securely.- If you lose this key, you'll need to generate a new one.+ <%= t("settings.api_keys.created.security_note_body") %></p><% end %><div class="bg-surface-inset rounded-xl p-4">- <h4 class="font-medium text-primary mb-3">How to use your API key</h4>- <p class="text-secondary text-sm mb-3">Include your API key in the X-Api-Key header when making requests:</p>+ <h4 class="font-medium text-primary mb-3"><%= t("settings.api_keys.created.usage_instructions_title") %></h4>+ <p class="text-secondary text-sm mb-3"><%= t("settings.api_keys.show.current_api_key.usage_instructions", product_name: product_name) %></p><div class="bg-container rounded-lg p-3 font-mono text-sm text-primary border border-primary">curl -H "X-Api-Key: <%= @api_key.plain_key %>" <%= request.base_url %>/api/v1/accounts</div>@@ -84,7 +83,7 @@<div class="flex justify-end pt-4 border-t border-primary"><%= render DS::Link.new(- text: "Continue to API Key Settings",+ text: t("settings.api_keys.created.continue"),href: settings_api_key_path,variant: "primary") %>diff --git a/app/views/settings/api_keys/new.html.erb b/app/views/settings/api_keys/new.html.erbindex 34def86b06..d37a24f701 100644--- a/app/views/settings/api_keys/new.html.erb+++ b/app/views/settings/api_keys/new.html.erb@@ -1,20 +1,20 @@-<%= content_for :page_title, "Create New API Key" %>+<%= content_for :page_title, t(".create_new_api_key") %>-<%= settings_section title: nil, subtitle: "Generate a new API key to access your Sure data programmatically." do %>+<%= settings_section title: nil, subtitle: t(".subtitle") do %><%= styled_form_with model: @api_key, url: settings_api_key_path, class: "space-y-4" do |form| %><%= form.text_field :name,- placeholder: "e.g., My Budget App, Portfolio Tracker",- label: "API Key Name",- help_text: "Choose a descriptive name to help you identify this key later." %>+ placeholder: t(".name_placeholder"),+ label: t(".name_label"),+ help_text: t(".name_help_text") %><div>- <%= form.label :scopes, "Permissions", class: "block text-sm font-medium text-primary mb-2" %>- <p class="text-sm text-secondary mb-3">Select the permissions this API key should have:</p>+ <%= form.label :scopes, t(".permissions_label"), class: "block text-sm font-medium text-primary mb-2" %>+ <p class="text-sm text-secondary mb-3"><%= t(".permissions_help") %></p><div class="space-y-2"><% [- ["read", "Read Only", "View your accounts, transactions, and balances"],- ["read_write", "Read/Write", "View your data and create new transactions"]+ ["read", t(".scope_read_only"), t(".scope_read_only_description")],+ ["read_write", t(".scope_read_write"), t(".scope_read_write_description")]].each do |value, label, description| %><div class="bg-surface-inset rounded-lg p-3 border border-primary"><label class="flex items-start gap-3 cursor-pointer">@@ -30,22 +30,21 @@</div></div>- <%= render DS::Alert.new(title: "Security Warning", variant: :warning) do %>+ <%= render DS::Alert.new(title: t(".security_warning_title"), variant: :warning) do %><p>- Your API key will be displayed only once after creation. Make sure to copy and store it securely.- Anyone with access to this key can access your data according to the permissions you select.+ <%= t(".security_warning_body") %></p><% end %><div class="flex justify-end gap-3 pt-4 border-t border-primary"><%= render DS::Link.new(- text: "Cancel",+ text: t(".cancel"),href: settings_api_key_path,variant: "ghost") %><%= render DS::Button.new(- text: "Save API Key",+ text: t(".save_api_key"),variant: "primary",type: "submit") %>diff --git a/app/views/settings/api_keys/show.html.erb b/app/views/settings/api_keys/show.html.erbindex b398aaca11..c32e87349b 100644--- a/app/views/settings/api_keys/show.html.erb+++ b/app/views/settings/api_keys/show.html.erb@@ -1,5 +1,5 @@<% if @newly_created && @plain_key %>- <%= content_for :page_title, "API Key Created Successfully" %>+ <%= content_for :page_title, t(".newly_created.page_title") %><div class="bg-container rounded-xl shadow-border-xs p-4"><div class="space-y-4">@@ -12,21 +12,21 @@variant: :success) %><div class="flex-1">- <h3 class="font-medium text-primary">API Key Created Successfully!</h3>- <p class="text-secondary text-sm mt-1">Your new API key "<%= @current_api_key.name %>" has been created and is ready to use.</p>+ <h3 class="font-medium text-primary"><%= t(".newly_created.heading") %></h3>+ <p class="text-secondary text-sm mt-1"><%= t(".newly_created.key_ready", name: @current_api_key.name) %></p></div></div></div><div class="bg-surface-inset rounded-xl p-4">- <h4 class="font-medium text-primary mb-3">Your API Key</h4>- <p class="text-secondary text-sm mb-3">Copy and store this key securely. You'll need it to authenticate your API requests.</p>+ <h4 class="font-medium text-primary mb-3"><%= t(".newly_created.your_api_key") %></h4>+ <p class="text-secondary text-sm mb-3"><%= t(".newly_created.copy_store_securely") %></p><div class="bg-container rounded-lg p-3 border border-primary" data-controller="clipboard"><div class="flex items-center justify-between gap-3"><code id="api-key-display" class="font-mono text-sm text-primary break-all" data-clipboard-target="source"><%= @current_api_key.plain_key %></code><%= render DS::Button.new(- text: "Copy API Key",+ text: t(".newly_created.copy_api_key"),variant: "ghost",icon: "copy",data: { action: "clipboard#copy" }@@ -36,7 +36,7 @@</div><div class="bg-surface-inset rounded-xl p-4">- <h4 class="font-medium text-primary mb-3">How to use your API key</h4>+ <h4 class="font-medium text-primary mb-3"><%= t(".newly_created.how_to_use") %></h4><p class="text-secondary text-sm mb-3"><%= t(".current_api_key.usage_instructions", product_name: product_name) %></p><div class="bg-container rounded-lg p-3 font-mono text-sm text-primary border border-primary">curl -H "X-Api-Key: <%= @current_api_key.plain_key %>" <%= request.base_url %>/api/v1/accounts@@ -45,7 +45,7 @@<div class="flex justify-end pt-4 border-t border-primary"><%= render DS::Link.new(- text: "Continue to API Key Settings",+ text: t(".newly_created.continue"),href: settings_api_key_path,variant: "primary") %>@@ -53,10 +53,10 @@</div></div><% elsif @current_api_key %>- <%= content_for :page_title, "Your API Key" %>+ <%= content_for :page_title, t(".current_api_key.title") %><%= content_for :page_actions do %><%= render DS::Link.new(- text: "Create New Key",+ text: t(".current_api_key.regenerate_key"),href: new_settings_api_key_path(regenerate: true),variant: "secondary") %>@@ -75,30 +75,30 @@<div class="text-sm space-y-1"><p class="text-primary font-medium"><%= @current_api_key.name %></p><p class="text-secondary">- Created <%= time_ago_in_words(@current_api_key.created_at) %> ago+ <%= t(".current_api_key.created_ago", time: time_ago_in_words(@current_api_key.created_at)) %><% if @current_api_key.last_used_at %>- • Last used <%= time_ago_in_words(@current_api_key.last_used_at) %> ago+ • <%= t(".current_api_key.last_used_ago", time: time_ago_in_words(@current_api_key.last_used_at)) %><% else %>- • Never used+ • <%= t(".current_api_key.never_used") %><% end %></p></div></div><div class="rounded-md bg-success px-2 py-1">- <p class="text-success-foreground font-medium text-xs">Active</p>+ <p class="text-success-foreground font-medium text-xs"><%= t(".current_api_key.active") %></p></div></div><div class="bg-surface-inset rounded-xl p-4">- <h4 class="font-medium text-primary mb-3">Permissions</h4>+ <h4 class="font-medium text-primary mb-3"><%= t(".current_api_key.permissions") %></h4><div class="flex flex-wrap gap-2"><% @current_api_key.scopes.each do |scope| %><span class="inline-flex items-center gap-1 px-2 py-1 button-bg-primary text-inverse rounded-full text-xs font-medium"><%= icon("shield-check", class: "w-3 h-3") %><%= case scope- when "read" then "Read Only"- when "read_write" then "Read/Write"+ when "read" then t(".current_api_key.scope_read_only")+ when "read_write" then t(".current_api_key.scope_read_write")else scope.humanizeend %></span>@@ -107,14 +107,14 @@</div><div class="bg-surface-inset rounded-xl p-4">- <h4 class="font-medium text-primary mb-3">Your API Key</h4>- <p class="text-secondary text-sm mb-3">Copy and store this key securely. You'll need it to authenticate your API requests.</p>+ <h4 class="font-medium text-primary mb-3"><%= t(".current_api_key.title") %></h4>+ <p class="text-secondary text-sm mb-3"><%= t(".current_api_key.copy_store_securely") %></p><div class="bg-container rounded-lg p-3 border border-primary" data-controller="clipboard"><div class="flex items-center justify-between gap-3"><code id="api-key-display" class="font-mono text-sm text-primary break-all" data-clipboard-target="source"><%= @current_api_key.plain_key %></code><%= render DS::Button.new(- text: "Copy API Key",+ text: t(".current_api_key.copy_api_key"),variant: "ghost",icon: "copy",data: { action: "clipboard#copy" }@@ -124,7 +124,7 @@</div><div class="bg-surface-inset rounded-xl p-4">- <h4 class="font-medium text-primary mb-3">How to use your API key</h4>+ <h4 class="font-medium text-primary mb-3"><%= t(".current_api_key.usage_instructions_title") %></h4><p class="text-secondary text-sm mb-3"><%= t(".current_api_key.usage_instructions", product_name: product_name) %></p><div class="bg-container rounded-lg p-3 font-mono text-sm text-primary border border-primary">curl -H "X-Api-Key: <%= @current_api_key.plain_key %>" <%= request.base_url %>/api/v1/accounts@@ -133,12 +133,12 @@<div class="flex justify-end pt-4 border-t border-primary"><%= render DS::Button.new(- text: "Revoke Key",+ text: t(".current_api_key.revoke_key"),href: settings_api_key_path,method: :delete,variant: "destructive",data: {- turbo_confirm: "Are you sure you want to revoke this API key?"+ turbo_confirm: t(".current_api_key.revoke_confirmation")}) %></div>diff --git a/app/views/settings/hostings/_brand_fetch_settings.html.erb b/app/views/settings/hostings/_brand_fetch_settings.html.erbindex ea83248e48..03c52701f2 100644--- a/app/views/settings/hostings/_brand_fetch_settings.html.erb+++ b/app/views/settings/hostings/_brand_fetch_settings.html.erb@@ -2,21 +2,21 @@<div><h2 class="font-medium mb-1"><%= t(".title") %></h2><% if ENV["BRAND_FETCH_CLIENT_ID"].present? %>- <p class="text-sm text-secondary">You have successfully configured your Brand Fetch Client ID through the BRAND_FETCH_CLIENT_ID environment variable.</p>+ <p class="text-sm text-secondary"><%= t(".env_configured_message") %></p><% else %><div class="text-secondary text-sm mb-4"><span><%= t(".description") %></span><details class="inline">- <summary class="cursor-pointer font-medium text-secondary underline inline"> (show details)</summary>+ <summary class="cursor-pointer font-medium text-secondary underline inline"> <%= t(".show_details") %></summary><ol class="text-sm text-secondary mt-2 list-decimal ml-6 space-y-2"><li>- Visit <a href="https://brandfetch.com/developers" target="_blank" rel="noopener noreferrer" class="underline">brandfetch.com</a> and create a free Brand Fetch Developer account.+ <%= t(".setup_step_1_html") %></li><li>- Go to the <a href="https://developers.brandfetch.com/dashboard/logo-api" target="_blank" rel="noopener noreferrer" class="underline">Logo API</a> page.+ <%= t(".setup_step_2_html") %></li><li>- Tap the eye icon under the "Your Client ID" section to reveal your <strong>Client ID</strong> and paste it below.+ <%= t(".setup_step_3") %></li></ol></details>diff --git a/app/views/settings/llm_usages/show.html.erb b/app/views/settings/llm_usages/show.html.erbindex 7abcd4f5e6..dfb11ead11 100644--- a/app/views/settings/llm_usages/show.html.erb+++ b/app/views/settings/llm_usages/show.html.erb@@ -1,22 +1,22 @@-<%= content_for :page_title, "LLM Usage & Costs" %>+<%= content_for :page_title, t(".page_title") %><div class="bg-container rounded-xl shadow-border-xs p-4"><div class="mb-6">- <p class="text-sm text-secondary">Track your AI usage and estimated costs</p>+ <p class="text-sm text-secondary"><%= t(".subtitle") %></p></div><!-- Date Range Filter --><div class="mb-6"><%= form_with url: settings_llm_usage_path, method: :get, class: "flex gap-4 items-end flex-wrap" do |f| %><div class="w-full md:w-auto">- <%= f.label :start_date, "Start Date", class: "block text-sm font-medium text-primary mb-1" %>+ <%= f.label :start_date, t(".start_date"), class: "block text-sm font-medium text-primary mb-1" %><%= f.date_field :start_date, value: @start_date, class: "rounded-lg border border-primary px-3 py-2 text-sm bg-container-inset text-primary w-full" %></div><div class="w-full md:w-auto">- <%= f.label :end_date, "End Date", class: "block text-sm font-medium text-primary mb-1" %>+ <%= f.label :end_date, t(".end_date"), class: "block text-sm font-medium text-primary mb-1" %><%= f.date_field :end_date, value: @end_date, class: "rounded-lg border border-primary px-3 py-2 text-sm bg-container-inset text-primary w-full" %></div>- <%= render DS::Button.new(variant: :primary, size: :md, type: "submit", text: "Filter", class: "md:w-auto w-full justify-center") %>+ <%= render DS::Button.new(variant: :primary, size: :md, type: "submit", text: t(".filter"), class: "md:w-auto w-full justify-center") %><% end %></div>@@ -25,7 +25,7 @@<div class="bg-container-inset rounded-lg p-4"><div class="flex items-center gap-2 mb-2"><%= icon "activity", class: "w-5 h-5 text-secondary" %>- <p class="text-xs font-medium text-secondary uppercase">Total Requests</p>+ <p class="text-xs font-medium text-secondary uppercase"><%= t(".total_requests") %></p></div><p class="text-2xl font-semibold text-primary"><%= number_with_delimiter(@statistics[:total_requests]) %></p></div>@@ -33,19 +33,19 @@<div class="bg-container-inset rounded-lg p-4"><div class="flex items-center gap-2 mb-2"><%= icon "hash", class: "w-5 h-5 text-secondary" %>- <p class="text-xs font-medium text-secondary uppercase">Total Tokens</p>+ <p class="text-xs font-medium text-secondary uppercase"><%= t(".total_tokens") %></p></div><p class="text-2xl font-semibold text-primary"><%= number_with_delimiter(@statistics[:total_tokens]) %></p><p class="text-xs text-secondary mt-1">- <%= number_with_delimiter(@statistics[:total_prompt_tokens]) %> prompt /- <%= number_with_delimiter(@statistics[:total_completion_tokens]) %> completion+ <%= number_with_delimiter(@statistics[:total_prompt_tokens]) %> <%= t(".prompt") %> /+ <%= number_with_delimiter(@statistics[:total_completion_tokens]) %> <%= t(".completion") %></p></div><div class="bg-container-inset rounded-lg p-4"><div class="flex items-center gap-2 mb-2"><%= icon "dollar-sign", class: "w-5 h-5 text-secondary" %>- <p class="text-xs font-medium text-secondary uppercase">Total Cost</p>+ <p class="text-xs font-medium text-secondary uppercase"><%= t(".total_cost") %></p></div><p class="text-2xl font-semibold text-primary">$<%= sprintf("%.2f", @statistics[:total_cost]) %></p></div>@@ -53,15 +53,14 @@<div class="bg-container-inset rounded-lg p-4"><div class="flex items-center gap-2 mb-2"><%= icon "trending-up", class: "w-5 h-5 text-secondary" %>- <p class="text-xs font-medium text-secondary uppercase">Avg Cost/Request</p>+ <p class="text-xs font-medium text-secondary uppercase"><%= t(".avg_cost_per_request") %></p></div><p class="text-2xl font-semibold text-primary">$<%= sprintf("%.4f", @statistics[:avg_cost]) %></p><% if @statistics[:requests_with_cost] < @statistics[:total_requests] %><p class="text-xs text-secondary mt-1">- Based on <%= number_with_delimiter(@statistics[:requests_with_cost]) %> of- <%= number_with_delimiter(@statistics[:total_requests]) %> requests with cost data+ <%= t(".based_on_requests", with_cost: number_with_delimiter(@statistics[:requests_with_cost]), total: number_with_delimiter(@statistics[:total_requests])) %></p><% end %></div>@@ -70,7 +69,7 @@<!-- Cost by Operation --><% if @statistics[:by_operation].any? %><div class="mb-6">- <h2 class="text-lg font-semibold text-primary mb-3">Cost by Operation</h2>+ <h2 class="text-lg font-semibold text-primary mb-3"><%= t(".cost_by_operation") %></h2><div class="bg-container-inset rounded-lg p-4"><div class="space-y-2"><% @statistics[:by_operation].each do |operation, cost| %>@@ -87,7 +86,7 @@<!-- Cost by Model --><% if @statistics[:by_model].any? %><div class="mb-6">- <h2 class="text-lg font-semibold text-primary mb-3">Cost by Model</h2>+ <h2 class="text-lg font-semibold text-primary mb-3"><%= t(".cost_by_model") %></h2><div class="bg-container-inset rounded-lg p-4"><div class="space-y-2"><% @statistics[:by_model].each do |model, cost| %>@@ -103,17 +102,17 @@<!-- Recent Usage Table --><div>- <h2 class="text-lg font-semibold text-primary mb-3">Recent Usage</h2>+ <h2 class="text-lg font-semibold text-primary mb-3"><%= t(".recent_usage") %></h2><div class="bg-container-inset rounded-lg overflow-hidden"><% if @llm_usages.any? %><table class="w-full"><thead class="bg-surface-default border-b border-primary"><tr>- <th class="px-4 py-3 text-left text-xs font-medium text-secondary uppercase">Date</th>- <th class="px-4 py-3 text-left text-xs font-medium text-secondary uppercase">Operation</th>- <th class="px-4 py-3 text-left text-xs font-medium text-secondary uppercase">Model</th>- <th class="px-4 py-3 text-right text-xs font-medium text-secondary uppercase">Tokens</th>- <th class="px-4 py-3 text-right text-xs font-medium text-secondary uppercase">Cost</th>+ <th class="px-4 py-3 text-left text-xs font-medium text-secondary uppercase"><%= t(".col_date") %></th>+ <th class="px-4 py-3 text-left text-xs font-medium text-secondary uppercase"><%= t(".col_operation") %></th>+ <th class="px-4 py-3 text-left text-xs font-medium text-secondary uppercase"><%= t(".col_model") %></th>+ <th class="px-4 py-3 text-right text-xs font-medium text-secondary uppercase"><%= t(".col_tokens") %></th>+ <th class="px-4 py-3 text-right text-xs font-medium text-secondary uppercase"><%= t(".col_cost") %></th></tr></thead><tbody class="divide-y divide-gray-100">@@ -133,7 +132,7 @@<div data-controller="tooltip" class="inline-flex justify-end"><div class="inline-flex items-center gap-1 cursor-help"><%= icon "alert-circle", class: "w-4 h-4 text-red-600 theme-dark:text-red-400" %>- <span class="text-red-600 theme-dark:text-red-400 font-medium">Failed</span>+ <span class="text-red-600 theme-dark:text-red-400 font-medium"><%= t(".failed") %></span></div><div role="tooltip" data-tooltip-target="tooltip" class="tooltip bg-inverse text-sm p-3 rounded w-72 text-left break-words whitespace-normal shadow-lg hidden"><div class="text-inverse">@@ -160,7 +159,7 @@</table><% else %><div class="p-8 text-center">- <p class="text-secondary">No usage data found for the selected period</p>+ <p class="text-secondary"><%= t(".no_usage_data") %></p></div><% end %></div>@@ -171,11 +170,9 @@<div class="flex items-start gap-2"><%= icon "info", class: "w-5 h-5 text-blue-600 mt-0.5" %><div>- <p class="text-sm font-medium text-blue-900">About Cost Estimates</p>+ <p class="text-sm font-medium text-blue-900"><%= t(".cost_estimates_title") %></p><p class="text-xs text-blue-700 mt-1">- Costs are estimated based on OpenAI's pricing as of 2025. Actual costs may vary.- Pricing is per 1 million tokens and varies by model.- Custom or self-hosted models will show "N/A" and are not included in cost totals.+ <%= t(".cost_estimates_description") %></p></div></div>diff --git a/app/views/settings/payments/show.html.erb b/app/views/settings/payments/show.html.erbindex ac0184cea9..0768440cd7 100644--- a/app/views/settings/payments/show.html.erb+++ b/app/views/settings/payments/show.html.erb@@ -13,7 +13,7 @@<div class="text-sm space-y-1"><% if @family.has_active_subscription? %><p class="text-primary">- <span>Currently on the <span class="font-medium"><%= @family.subscription.name %></span>.</span> <br>+ <span><%= t(".currently_on_plan") %> <span class="font-medium"><%= @family.subscription.name %></span>.</span> <br><% if @family.next_payment_date %><% if @family.subscription_pending_cancellation? %>@@ -25,21 +25,21 @@</p><% elsif @family.trialing? %><p class="text-primary">- Currently using the open demo of <%= product_name %> <br>+ <%= t(".trialing", product_name: product_name) %> <br><span class="text-secondary">- (Data will be deleted in <%= @family.days_left_in_trial %> days)+ (<%= t(".trial_days_left", count: @family.days_left_in_trial) %>)</span></p><% else %>- <p class="text-primary">You are currently <span class="font-medium">not contributing</span></p>- <p class="text-secondary">Contributions to <%= product_name %> will show here.</p>+ <p class="text-primary"><%= t(".not_contributing_prefix") %> <span class="font-medium"><%= t(".not_contributing_emphasis") %></span></p>+ <p class="text-secondary"><%= t(".contributions_note", product_name: product_name) %></p><% end %></div></div><% if @family.has_active_subscription? %><%= render DS::Link.new(- text: "Manage",+ text: t(".manage"),icon: "external-link",variant: "primary",icon_position: "right",@@ -48,7 +48,7 @@) %><% else %><%= render DS::Link.new(- text: "Choose level",+ text: t(".choose_level"),variant: "primary",icon: "plus",icon_position: "right",@@ -59,7 +59,7 @@<div class="flex items-center gap-2"><%= image_tag "stripe-logo.svg", class: "w-5 h-5 shrink-0" %>- <p class="text-secondary text-sm">Payment via Stripe</p>+ <p class="text-secondary text-sm"><%= t(".payment_via_stripe") %></p></div></div><% end %>diff --git a/app/views/settings/providers/_enable_banking_panel.html.erb b/app/views/settings/providers/_enable_banking_panel.html.erbindex 45344ea557..b73009f966 100644--- a/app/views/settings/providers/_enable_banking_panel.html.erb+++ b/app/views/settings/providers/_enable_banking_panel.html.erb@@ -65,32 +65,32 @@["Sweden (SE)", "SE"],["United Kingdom (GB)", "GB"]], enable_banking_item.country_code),- { label: true, include_blank: "Select country..." },- { label: "Country", class: "form-field__input" } %>+ { label: true, include_blank: t("settings.providers.enable_banking_panel.select_country") },+ { label: t("settings.providers.enable_banking_panel.country_label"), class: "form-field__input" } %><% if has_authenticated_connections && !is_new_record %><%= render DS::Alert.new(variant: :warning,- title: "Configuration locked",- message: "Disconnect all linked banks before changing these credentials."+ title: t("settings.providers.enable_banking_panel.config_locked_title"),+ message: t("settings.providers.enable_banking_panel.config_locked_message")) %><% end %><%= form.text_field :application_id,- label: "Application ID",- placeholder: is_new_record ? "Enter application ID" : "Enter new ID to update",+ label: t("settings.providers.enable_banking_panel.application_id_label"),+ placeholder: is_new_record ? t("settings.providers.enable_banking_panel.application_id_placeholder_new") : t("settings.providers.enable_banking_panel.application_id_placeholder_update"),value: enable_banking_item.application_id,disabled: has_authenticated_connections && !is_new_record %><%= form.text_area :client_certificate,- label: "Client Certificate (with Private Key)",+ label: t("settings.providers.enable_banking_panel.client_certificate_label"),placeholder: "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----",rows: 6,class: "form-field__input font-mono text-xs",disabled: has_authenticated_connections && !is_new_record %><div class="flex justify-end">- <%= form.submit is_new_record ? "Save and connect" : "Update connection",+ <%= form.submit is_new_record ? t("settings.providers.enable_banking_panel.save_and_connect") : t("settings.providers.enable_banking_panel.update_connection"),class: "inline-flex items-center justify-center rounded-lg px-4 py-2 text-sm font-medium text-inverse button-bg-primary hover:button-bg-primary-hover focus:outline-none focus:ring-2 focus:ring-gray-900 theme-dark:focus:ring-white focus:ring-offset-2 transition-colors" %></div><% end %>@@ -122,22 +122,22 @@<% elsif item.session_valid? %><div class="w-2 h-2 bg-success rounded-full"></div><div>- <p class="text-sm font-medium text-primary"><%= item.aspsp_name || "Connected Bank" %></p>+ <p class="text-sm font-medium text-primary"><%= item.aspsp_name || t("settings.providers.enable_banking_panel.connected_bank") %></p><p class="text-xs text-secondary">- Session expires: <%= item.session_expires_at&.strftime("%b %d, %Y") || "Unknown" %>+ <%= t("settings.providers.enable_banking_panel.session_expires", date: item.session_expires_at&.strftime("%b %d, %Y") || t("settings.providers.enable_banking_panel.unknown")) %></p></div><% elsif item.session_expired? %><div class="w-2 h-2 bg-warning rounded-full"></div><div>- <p class="text-sm font-medium text-primary"><%= item.aspsp_name || "Connection" %></p>- <p class="text-xs text-destructive">Session expired - reconnect</p>+ <p class="text-sm font-medium text-primary"><%= item.aspsp_name || t("settings.providers.enable_banking_panel.connection") %></p>+ <p class="text-xs text-destructive"><%= t("settings.providers.enable_banking_panel.session_expired_reconnect") %></p></div><% else %><div class="w-2 h-2 bg-secondary rounded-full"></div><div>- <p class="text-sm font-medium text-primary">Configured</p>- <p class="text-xs text-secondary">Ready to link accounts</p>+ <p class="text-sm font-medium text-primary"><%= t("settings.providers.enable_banking_panel.configured") %></p>+ <p class="text-xs text-secondary"><%= t("settings.providers.enable_banking_panel.ready_to_link") %></p></div><% end %></div>@@ -148,28 +148,28 @@method: :post,class: "inline-flex items-center justify-center rounded-lg px-3 py-1.5 text-xs font-medium text-primary bg-container border border-primary hover:bg-surface-inset transition-colors",data: { turbo: false } do %>- Sync+ <%= t("settings.providers.enable_banking_panel.sync") %><% end %><% elsif item.session_expired? %><%= button_to reauthorize_enable_banking_item_path(item),method: :post,class: "inline-flex items-center justify-center rounded-lg px-3 py-1.5 text-xs font-medium text-white bg-warning hover:opacity-90 transition-colors",data: { turbo: false } do %>- Reconnect+ <%= t("settings.providers.enable_banking_panel.reconnect") %><% end %><% else %><%= link_to select_bank_enable_banking_item_path(item),class: "inline-flex items-center justify-center rounded-lg px-3 py-1.5 text-xs font-medium text-inverse button-bg-primary hover:button-bg-primary-hover transition-colors",data: { turbo_frame: "modal" } do %>- Connect bank+ <%= t("settings.providers.enable_banking_panel.connect_bank") %><% end %><% end %><%= button_to enable_banking_item_path(item),method: :delete,class: "inline-flex items-center justify-center rounded-lg px-3 py-1.5 text-xs font-medium text-destructive hover:bg-destructive/10 transition-colors",- data: { turbo_confirm: "Are you sure you want to remove this connection?" } do %>- Remove+ data: { turbo_confirm: t("settings.providers.enable_banking_panel.remove_confirm") } do %>+ <%= t("settings.providers.enable_banking_panel.remove") %><% end %></div></div>@@ -183,7 +183,7 @@class: "inline-flex items-center gap-2 justify-center rounded-lg px-4 py-2 text-sm font-medium text-inverse button-bg-primary hover:button-bg-primary-hover transition-colors",data: { turbo_frame: "modal" } do %><%= icon "plus", size: "sm" %>- Add Connection+ <%= t("settings.providers.enable_banking_panel.add_connection") %><% end %></div><% end %>diff --git a/app/views/settings/providers/_lunchflow_panel.html.erb b/app/views/settings/providers/_lunchflow_panel.html.erbindex e4bccf2ba0..9b128f8dd9 100644--- a/app/views/settings/providers/_lunchflow_panel.html.erb+++ b/app/views/settings/providers/_lunchflow_panel.html.erb@@ -27,17 +27,17 @@data: { turbo: true },class: "space-y-3" do |form| %><%= form.text_field :api_key,- label: "API Key",- placeholder: is_new_record ? "Paste API key here" : "Enter new API key to update",+ label: t("settings.providers.lunchflow_panel.api_key_label"),+ placeholder: is_new_record ? t("settings.providers.lunchflow_panel.api_key_placeholder_new") : t("settings.providers.lunchflow_panel.api_key_placeholder_update"),type: :password %><%= form.text_field :base_url,- label: "Base URL (Optional)",- placeholder: "https://lunchflow.app/api/v1 (default)",+ label: t("settings.providers.lunchflow_panel.base_url_label"),+ placeholder: t("settings.providers.lunchflow_panel.base_url_placeholder"),value: lunchflow_item.base_url %><div class="flex justify-end">- <%= form.submit is_new_record ? "Save and connect" : "Update connection",+ <%= form.submit is_new_record ? t("settings.providers.lunchflow_panel.save_and_connect") : t("settings.providers.lunchflow_panel.update_connection"),class: "inline-flex items-center justify-center rounded-lg px-4 py-2 text-sm font-medium text-inverse button-bg-primary hover:button-bg-primary-hover focus:outline-none focus:ring-2 focus:ring-gray-900 theme-dark:focus:ring-white focus:ring-offset-2 transition-colors" %></div><% end %>diff --git a/app/views/settings/providers/_simplefin_panel.html.erb b/app/views/settings/providers/_simplefin_panel.html.erbindex a20b6ac4b4..b169c5cd92 100644--- a/app/views/settings/providers/_simplefin_panel.html.erb+++ b/app/views/settings/providers/_simplefin_panel.html.erb@@ -20,12 +20,12 @@data: { turbo: true },class: "space-y-3" do |form| %><%= form.text_field :setup_token,- label: "Setup Token",- placeholder: "Paste SimpleFIN setup token",+ label: t("settings.providers.simplefin_panel.setup_token_label"),+ placeholder: t("settings.providers.simplefin_panel.setup_token_placeholder"),type: :password %><div class="flex justify-end">- <%= form.submit "Save and connect",+ <%= form.submit t("settings.providers.simplefin_panel.save_and_connect"),class: "inline-flex items-center justify-center rounded-lg px-4 py-2 text-sm font-medium text-inverse button-bg-primary hover:button-bg-primary-hover focus:outline-none focus:ring-2 focus:ring-gray-900 theme-dark:focus:ring-white focus:ring-offset-2 transition-colors" %></div><% end %>diff --git a/app/views/simplefin_items/edit.html.erb b/app/views/simplefin_items/edit.html.erbindex f0d3e0811a..51f26f39d1 100644--- a/app/views/simplefin_items/edit.html.erb+++ b/app/views/simplefin_items/edit.html.erb@@ -1,11 +1,11 @@-<% content_for :title, "Update SimpleFin Connection" %>+<% content_for :title, t(".title") %><%= turbo_frame_tag "modal" do %><%= render DS::Dialog.new do |dialog| %>- <% dialog.with_header(title: "Update SimpleFin Connection") do %>+ <% dialog.with_header(title: t(".title")) do %><div class="flex items-center gap-2"><%= icon "building-2", class: "text-primary" %>- <span class="text-primary">Get a new setup token to reconnect your SimpleFin account</span>+ <span class="text-primary"><%= t(".header_subtitle") %></span></div><% end %>@@ -16,12 +16,12 @@<%= icon "info", size: "sm", class: "text-primary mt-0.5 flex-shrink-0" %><div><p class="text-sm text-primary mb-2">- <strong>Your SimpleFIN connection needs to be updated:</strong>+ <strong><%= t(".connection_needs_update") %></strong></p><ol class="text-xs text-secondary space-y-1 list-decimal list-inside">- <li>Visit <a href="https://bridge.simplefin.org/simplefin/create" target="_blank" rel="noopener noreferrer" class="text-link hover:text-link underline">SimpleFIN Bridge</a> to create a new setup token</li>- <li>Copy the token and paste it below</li>- <li>Click "Update" to restore access</li>+ <li><%= t(".step_1_html") %></li>+ <li><%= t(".step_2") %></li>+ <li><%= t(".step_3") %></li></ol></div></div>@@ -46,14 +46,14 @@<div class="flex gap-3"><%= render DS::Button.new(- text: "Update",+ text: t(".update"),variant: "primary",icon: "refresh-cw",type: "submit",class: "flex-1") %><%= render DS::Link.new(- text: "Cancel",+ text: t(".cancel"),variant: "secondary",href: accounts_path) %>diff --git a/app/views/simplefin_items/setup_accounts.html.erb b/app/views/simplefin_items/setup_accounts.html.erbindex 81070c2e1c..cf8441da3f 100644--- a/app/views/simplefin_items/setup_accounts.html.erb+++ b/app/views/simplefin_items/setup_accounts.html.erb@@ -1,10 +1,10 @@-<% content_for :title, "Set Up SimpleFin Accounts" %>+<% content_for :title, t(".title") %><%= render DS::Dialog.new do |dialog| %>- <% dialog.with_header(title: "Set Up Your SimpleFin Accounts") do %>+ <% dialog.with_header(title: t(".title")) do %><div class="flex items-center gap-2"><%= icon "building-2", class: "text-primary" %>- <span class="text-primary">Choose the correct account types for your imported accounts</span>+ <span class="text-primary"><%= t(".header_subtitle") %></span></div><% end %>@@ -15,7 +15,7 @@data: {controller: "loading-button",action: "submit->loading-button#showLoading",- loading_button_loading_text_value: "Creating Accounts...",+ loading_button_loading_text_value: t(".creating_accounts"),turbo_frame: "_top"},class: "space-y-6" do |form| %>@@ -26,14 +26,14 @@<%= icon "info", size: "sm", class: "text-primary mt-0.5 flex-shrink-0" %><div><p class="text-sm text-primary mb-2">- <strong>Choose the correct account type for each SimpleFin account:</strong>+ <strong><%= t(".choose_account_type") %></strong></p><ul class="text-xs text-secondary space-y-1 list-disc list-inside">- <li><strong>Checking or Savings</strong> - Regular bank accounts</li>- <li><strong>Credit Card</strong> - Credit card accounts</li>- <li><strong>Investment</strong> - Brokerage, 401(k), IRA accounts</li>- <li><strong>Loan or Mortgage</strong> - Debt accounts</li>- <li><strong>Other Asset</strong> - Everything else</li>+ <li><strong><%= t(".account_type_checking_savings") %></strong> - <%= t(".account_type_checking_savings_desc") %></li>+ <li><strong><%= t(".account_type_credit_card") %></strong> - <%= t(".account_type_credit_card_desc") %></li>+ <li><strong><%= t(".account_type_investment") %></strong> - <%= t(".account_type_investment_desc") %></li>+ <li><strong><%= t(".account_type_loan") %></strong> - <%= t(".account_type_loan_desc") %></li>+ <li><strong><%= t(".account_type_other_asset") %></strong> - <%= t(".account_type_other_asset_desc") %></li></ul></div></div>@@ -45,12 +45,10 @@<%= icon "clock", size: "sm", class: "text-primary mt-0.5 flex-shrink-0" %><div class="flex-1"><p class="text-sm text-primary mb-2">- <strong>Transaction History:</strong>+ <strong><%= t(".transaction_history_title") %></strong></p><p class="text-xs text-secondary">- SimpleFin typically provides <strong>60-90 days</strong> of transaction history, depending on your bank.- After initial setup, new transactions will sync automatically going forward.- Historical data availability varies by institution and account type.+ <%= t(".transaction_history_description_html") %></p></div></div>@@ -100,7 +98,7 @@<div class="space-y-3" data-controller="account-type-selector" data-account-type-selector-account-id-value="<%= simplefin_account.id %>"><div>- <%= label_tag "account_types[#{simplefin_account.id}]", "Account Type:",+ <%= label_tag "account_types[#{simplefin_account.id}]", t(".account_type_label"),class: "block text-sm font-medium text-primary mb-2" %><%= select_tag "account_types[#{simplefin_account.id}]",options_for_select(@account_type_options, selected_type),@@ -146,7 +144,7 @@<div class="flex gap-3"><%= render DS::Button.new(- text: "Create Accounts",+ text: t(".create_accounts"),variant: "primary",icon: "plus",type: "submit",@@ -154,7 +152,7 @@data: { loading_button_target: "button" }) %><%= render DS::Link.new(- text: "Cancel",+ text: t(".cancel"),variant: "secondary",href: accounts_path) %>diff --git a/app/views/subscriptions/upgrade.html.erb b/app/views/subscriptions/upgrade.html.erbindex 0c600cf994..fd7d499360 100644--- a/app/views/subscriptions/upgrade.html.erb+++ b/app/views/subscriptions/upgrade.html.erb@@ -1,17 +1,17 @@<div class="flex flex-col h-full justify-between bg-surface"><nav class="p-4">- <h1 class="sr-only">Upgrade</h1>+ <h1 class="sr-only"><%= t(".page_title") %></h1><div class="flex justify-end gap-2"><%= render DS::Link.new(- text: "Account Settings",+ text: t(".account_settings"),icon: "settings",variant: "ghost",href: settings_profile_path,) %><%= render DS::Button.new(- text: "Sign out",+ text: t(".sign_out"),icon: "log-out",icon_position: :right,variant: "ghost",diff --git a/app/views/tag/deletions/new.html.erb b/app/views/tag/deletions/new.html.erbindex 4370d3da85..c069518ec6 100644--- a/app/views/tag/deletions/new.html.erb+++ b/app/views/tag/deletions/new.html.erb@@ -22,7 +22,7 @@) %><%= render DS::Button.new(- text: "Delete and reassign",+ text: t(".delete_and_reassign"),data: { deletion_target: "safeSubmitButton" },hidden: true,full_width: truediff --git a/app/views/tags/index.html.erb b/app/views/tags/index.html.erbindex ade2df3920..e2067dba75 100644--- a/app/views/tags/index.html.erb+++ b/app/views/tags/index.html.erb@@ -3,7 +3,7 @@<%= render DS::Menu.new do |menu| %><% menu.with_item(variant: "button",- text: "Delete all",+ text: t(".delete_all"),href: destroy_all_tags_path,method: :delete,icon: "trash-2",diff --git a/app/views/transactions/index.html.erb b/app/views/transactions/index.html.erbindex c56aec7a46..c00cbef9f9 100644--- a/app/views/transactions/index.html.erb+++ b/app/views/transactions/index.html.erb@@ -1,16 +1,16 @@<div class="space-y-4 pb-6 lg:pb-12 flex flex-col"><header class="flex justify-between items-center text-primary font-medium">- <h1 class="text-xl">Transactions</h1>+ <h1 class="text-xl"><%= t(".title") %></h1><div class="flex items-center gap-5"><div class="flex items-center gap-2"><%= render DS::Menu.new do |menu| %>- <% menu.with_item(variant: "link", text: "New rule", href: new_rule_path(resource_type: "transaction"), icon: "plus", data: { turbo_frame: :modal }) %>- <% menu.with_item(variant: "link", text: "Edit rules", href: rules_path, icon: "git-branch", data: { turbo_frame: :_top }) %>- <% menu.with_item(variant: "link", text: "Edit categories", href: categories_path, icon: "shapes", data: { turbo_frame: :_top }) %>- <% menu.with_item(variant: "link", text: "Edit tags", href: tags_path, icon: "tags", data: { turbo_frame: :_top }) %>- <% menu.with_item(variant: "link", text: "Edit merchants", href: family_merchants_path, icon: "store", data: { turbo_frame: :_top }) %>- <% menu.with_item(variant: "link", text: "Edit imports", href: imports_path, icon: "hard-drive-upload", data: { turbo_frame: :_top }) %>- <% menu.with_item(variant: "link", text: "Import", href: new_import_path, icon: "download", data: { turbo_frame: "modal", class_name: "md:!hidden" }) %>+ <% menu.with_item(variant: "link", text: t(".new_rule"), href: new_rule_path(resource_type: "transaction"), icon: "plus", data: { turbo_frame: :modal }) %>+ <% menu.with_item(variant: "link", text: t(".edit_rules"), href: rules_path, icon: "git-branch", data: { turbo_frame: :_top }) %>+ <% menu.with_item(variant: "link", text: t(".edit_categories"), href: categories_path, icon: "shapes", data: { turbo_frame: :_top }) %>+ <% menu.with_item(variant: "link", text: t(".edit_tags"), href: tags_path, icon: "tags", data: { turbo_frame: :_top }) %>+ <% menu.with_item(variant: "link", text: t(".edit_merchants"), href: family_merchants_path, icon: "store", data: { turbo_frame: :_top }) %>+ <% menu.with_item(variant: "link", text: t(".edit_imports"), href: imports_path, icon: "hard-drive-upload", data: { turbo_frame: :_top }) %>+ <% menu.with_item(variant: "link", text: t(".import"), href: new_import_path, icon: "download", data: { turbo_frame: "modal", class_name: "md:!hidden" }) %><% if @uncategorized_count > 0 %><% menu.with_item(variant: "link", text: t(".categorize_button", count: @uncategorized_count), href: transactions_categorize_path, icon: "tag", data: { turbo_frame: :_top }) %><% end %>@@ -27,7 +27,7 @@</div><%= render DS::Link.new(- text: "New transaction",+ text: t(".new_transaction"),icon: "plus",variant: "primary",href: new_transaction_path,diff --git a/app/views/transactions/searches/_form.html.erb b/app/views/transactions/searches/_form.html.erbindex c86d0a5397..c32b1f1666 100644--- a/app/views/transactions/searches/_form.html.erb+++ b/app/views/transactions/searches/_form.html.erb@@ -10,7 +10,7 @@<div class="flex items-center px-3 py-2 gap-2 border border-secondary rounded-lg focus-within:ring-secondary focus-within:border-secondary"><%= icon("search") %><%= form.text_field :search,- placeholder: "Search transactions ...",+ placeholder: t(".search_placeholder"),value: @q[:search],class: "form-field__input placeholder:text-sm placeholder:text-secondary","data-auto-submit-form-target": "auto" %>@@ -21,7 +21,7 @@<% menu.with_button(id: "transaction-filters-button",type: "button",- text: "Filter",+ text: t(".filter"),variant: "outline",icon: "list-filter") %>diff --git a/app/views/transactions/searches/filters/_date_filter.html.erb b/app/views/transactions/searches/filters/_date_filter.html.erbindex 63449f9bac..32ce60452c 100644--- a/app/views/transactions/searches/filters/_date_filter.html.erb+++ b/app/views/transactions/searches/filters/_date_filter.html.erb@@ -1,11 +1,11 @@<%# locals: (form:) %><div class="p-3"><%= form.date_field :start_date,- placeholder: "Start date",+ placeholder: t(".start_date"),value: @q[:start_date],class: "block w-full border border-secondary rounded-md bg-container py-2 pl-3 pr-3 focus:ring-gray-500 sm:text-sm" %><%= form.date_field :end_date,- placeholder: "End date",+ placeholder: t(".end_date"),value: @q[:end_date],class: "block w-full border border-secondary rounded-md bg-container py-2 pl-3 pr-3 focus:ring-gray-500 sm:text-sm mt-2" %></div>diff --git a/app/views/transactions/show.html.erb b/app/views/transactions/show.html.erbindex ce50ed4d78..701844a9ca 100644--- a/app/views/transactions/show.html.erb+++ b/app/views/transactions/show.html.erb@@ -133,7 +133,7 @@<% end %><% if (details = build_transaction_extra_details(@entry)) %>- <% dialog.with_section(title: "Additional details", open: false) do %>+ <% dialog.with_section(title: t(".additional_details"), open: false) do %><div class="px-3 py-2 space-y-3"><% if details[:kind] == :simplefin %><% sf = details[:simplefin] %>@@ -141,19 +141,19 @@<dl class="space-y-2"><% if sf[:payee].present? %><div class="flex items-center justify-between gap-2">- <dt class="text-secondary text-sm">Payee</dt>+ <dt class="text-secondary text-sm"><%= t(".payee") %></dt><dd class="text-sm text-primary"><%= sf[:payee] %></dd></div><% end %><% if sf[:description].present? %><div class="flex items-center justify-between gap-2">- <dt class="text-secondary text-sm">Description</dt>+ <dt class="text-secondary text-sm"><%= t(".description") %></dt><dd class="text-sm text-primary"><%= sf[:description] %></dd></div><% end %><% if sf[:memo].present? %><div class="flex items-center justify-between gap-2">- <dt class="text-secondary text-sm">Memo</dt>+ <dt class="text-secondary text-sm"><%= t(".memo") %></dt><dd class="text-sm text-primary"><%= sf[:memo] %></dd></div><% end %>@@ -161,7 +161,7 @@<% end %><% if details[:provider_extras].present? %><div class="pt-2">- <h4 class="text-sm text-secondary mb-1">Provider extras</h4>+ <h4 class="text-sm text-secondary mb-1"><%= t(".provider_extras") %></h4><dl class="space-y-2"><% details[:provider_extras].each do |ex| %><div class="flex items-center justify-between gap-2">@@ -348,11 +348,11 @@<% unless @entry.split_child? %><div class="flex items-center justify-between gap-4 p-3"><div class="text-sm space-y-1">- <h4 class="text-primary">Transfer or Debt Payment?</h4>+ <h4 class="text-primary"><%= t(".transfer_or_debt_payment") %></h4><p class="text-secondary"><%= t(".transfer_matcher_description") %></p></div><%= render DS::Link.new(- text: "Open matcher",+ text: t(".open_matcher"),icon: "arrow-left-right",variant: "outline",href: new_transaction_transfer_match_path(@entry),@@ -379,11 +379,11 @@<% if @entry.account.investment? && @entry.entryable.is_a?(Transaction) && [email protected]? %><div class="flex items-center justify-between gap-2 p-3"><div class="text-sm space-y-1">- <h4 class="text-primary">Convert to Security Trade</h4>- <p class="text-secondary">Convert this transaction into a security trade (buy/sell) by providing ticker, shares, and price.</p>+ <h4 class="text-primary"><%= t(".convert_to_trade_title") %></h4>+ <p class="text-secondary"><%= t(".convert_to_trade_description") %></p></div><%= render DS::Button.new(- text: "Convert",+ text: t(".convert"),variant: "outline",icon: "arrow-right-left",href: convert_to_trade_transaction_path(@entry.transaction),diff --git a/app/views/transfer_matches/_matching_fields.html.erb b/app/views/transfer_matches/_matching_fields.html.erbindex 0c5583bd2a..46c6e1bd45 100644--- a/app/views/transfer_matches/_matching_fields.html.erb+++ b/app/views/transfer_matches/_matching_fields.html.erb@@ -3,15 +3,15 @@<% if candidates.any? %><div data-controller="transfer-match" class="space-y-2"><p class="text-sm text-secondary">- Select a method for matching your transactions.+ <%= t(".select_method") %></p><%= form.select :method,[- ["Match existing transaction (recommended)", "existing"],- ["Create new transaction", "new"]+ [t(".match_existing_recommended"), "existing"],+ [t(".create_new_transaction"), "new"]],- { selected: "existing", label: "Matching method" },+ { selected: "existing", label: t(".matching_method") },data: { action: "change->transfer-match#update" } %><div data-transfer-match-target="existingSelect">@@ -19,19 +19,18 @@candidates.map { |entry|[entry_name_detailed(entry), entry.id]},- { label: "Matching transaction" } %>+ { label: t(".matching_transaction") } %></div><div data-transfer-match-target="newSelect" class="hidden"><%= form.select :target_account_id,accounts.map { |account| [account.name, account.id] },- { label: "Target account" } %>+ { label: t(".target_account") } %></div></div><% else %><p class="text-sm text-secondary">- We couldn't find any transactions to match from your other accounts.- Please select an account and we will create a new inflow transaction for you.+ <%= t(".no_matching_transactions") %></p><%= form.hidden_field :method, value: "new" %>@@ -39,6 +38,6 @@<div><%= form.select :target_account_id,accounts.map { |account| [account.name, account.id] },- { label: "Target account" } %>+ { label: t(".target_account") } %></div><% end %>diff --git a/app/views/transfer_matches/new.html.erb b/app/views/transfer_matches/new.html.erbindex d6f8a765be..e85f3dc4e0 100644--- a/app/views/transfer_matches/new.html.erb+++ b/app/views/transfer_matches/new.html.erb@@ -10,7 +10,7 @@<section class="space-y-4"><div class="space-y-2"><h2 class="text-sm font-medium text-secondary">- <%= @entry.amount.positive? ? "From account: #{@entry.account.name}" : "From account" %>+ <%= @entry.amount.positive? ? t(".from_account_named", name: @entry.account.name) : t(".from_account") %></h2><% if @entry.amount.positive? %>@@ -18,7 +18,7 @@:entry_id,[[entry_name_detailed(@entry), @entry.id]],{- label: "Outflow transaction",+ label: t(".outflow_transaction"),selected: @entry.id,},disabled: true@@ -37,7 +37,7 @@<section class="space-y-4"><div class="space-y-2"><h2 class="text-sm font-medium text-secondary">- <%= @entry.amount.negative? ? "To account: #{@entry.account.name}" : "To account" %>+ <%= @entry.amount.negative? ? t(".to_account_named", name: @entry.account.name) : t(".to_account") %></h2><% if @entry.amount.negative? %>@@ -45,7 +45,7 @@:entry_id,[[entry_name_detailed(@entry), @entry.id]],{- label: "Inflow transaction",+ label: t(".inflow_transaction"),selected: @entry.id,},disabled: true@@ -57,7 +57,7 @@</div></section>- <%= f.submit "Create transfer match" %>+ <%= f.submit t(".create_transfer_match") %><% end %><% end %><% end %>diff --git a/app/views/transfers/show.html.erb b/app/views/transfers/show.html.erbindex 54705661fb..3512fe5929 100644--- a/app/views/transfers/show.html.erb+++ b/app/views/transfers/show.html.erb@@ -23,36 +23,36 @@<div class="pb-4 px-3 pt-2 text-sm space-y-3 text-primary"><div class="space-y-3"><dl class="flex items-center gap-2 justify-between">- <dt class="text-secondary">From</dt>+ <dt class="text-secondary"><%= t(".from") %></dt><dd class="flex items-center gap-2 font-medium"><%= render "accounts/logo", account: @transfer.from_account, size: "sm" %><%= link_to @transfer.from_account.name, account_path(@transfer.from_account), data: { turbo_frame: "_top" } %></dd></dl><dl class="flex items-center gap-2 justify-between">- <dt class="text-secondary">Date</dt>+ <dt class="text-secondary"><%= t(".date") %></dt><dd class="font-medium"><%= l(@transfer.outflow_transaction.entry.date, format: :long) %></dd></dl><dl class="flex items-center gap-2 justify-between">- <dt class="text-secondary">Amount</dt>+ <dt class="text-secondary"><%= t(".amount") %></dt><dd class="font-medium text-red-500 privacy-sensitive"><%= format_money @transfer.outflow_transaction.entry.amount_money * -1 %></dd></dl></div><%= render "shared/ruler", classes: "my-2" %><div class="space-y-3"><dl class="flex items-center gap-2 justify-between">- <dt class="text-secondary">To</dt>+ <dt class="text-secondary"><%= t(".to") %></dt><dd class="flex items-center gap-2 font-medium"><%= render "accounts/logo", account: @transfer.to_account, size: "sm" %><%= link_to @transfer.to_account.name, account_path(@transfer.to_account), data: { turbo_frame: "_top" } %></dd></dl><dl class="flex items-center gap-2 justify-between">- <dt class="text-secondary">Date</dt>+ <dt class="text-secondary"><%= t(".date") %></dt><dd class="font-medium"><%= l(@transfer.inflow_transaction.entry.date, format: :long) %></dd></dl><dl class="flex items-center gap-2 justify-between">- <dt class="text-secondary">Amount</dt>+ <dt class="text-secondary"><%= t(".amount") %></dt><dd class="font-medium text-green-500 privacy-sensitive">+<%= format_money @transfer.inflow_transaction.entry.amount_money * -1 %></dd></dl></div>@@ -62,7 +62,7 @@<%= styled_form_with model: @transfer,data: { controller: "auto-submit-form" }, class: "space-y-2" do |f| %><% if @transfer.categorizable? %>- <%= f.collection_select :category_id, @categories.alphabetically, :id, :name, { label: "Category", include_blank: "Uncategorized", selected: @transfer.outflow_transaction.category&.id }, "data-auto-submit-form-target": "auto" %>+ <%= f.collection_select :category_id, @categories.alphabetically, :id, :name, { label: t(".category"), include_blank: t(".uncategorized"), selected: @transfer.outflow_transaction.category&.id }, "data-auto-submit-form-target": "auto" %><% end %><%= f.text_area :notes,label: t(".note_label"),diff --git a/app/views/users/_user_menu.html.erb b/app/views/users/_user_menu.html.erbindex ab74808e79..ddb2bc5618 100644--- a/app/views/users/_user_menu.html.erb+++ b/app/views/users/_user_menu.html.erb@@ -32,7 +32,7 @@<% if self_hosted? %><div class="px-4 py-3 border-t border-tertiary"><p class="text-sm">- <span class="font-medium text-primary">Version:</span>+ <span class="font-medium text-primary"><%= t(".version") %>:</span><%= link_to Sure.version.to_release_tag, "https://github.com/we-promise/sure/releases/tag/#{Sure.version.to_release_tag}", target: "_blank", class: "hover:underline" %><% if Sure.commit_sha.present? %>@@ -45,19 +45,19 @@<% menu.with_item(variant: "link",- text: "Settings",+ text: t(".settings"),icon: "settings",href: intro_mode ? settings_profile_path : accounts_path(return_to: request.fullpath)) %>- <% menu.with_item(variant: "link", text: "Changelog", icon: "box", href: changelog_path) %>+ <% menu.with_item(variant: "link", text: t(".changelog"), icon: "box", href: changelog_path) %><% if self_hosted? && !intro_mode %>- <% menu.with_item(variant: "link", text: "Feedback", icon: "megaphone", href: feedback_path) %>+ <% menu.with_item(variant: "link", text: t(".feedback"), icon: "megaphone", href: feedback_path) %><% end %>- <% menu.with_item(variant: "link", text: "Contact", icon: "message-square-more", href: "https://discord.gg/36ZGBsxYEK", target: "_blank", rel: "noopener noreferrer") %>+ <% menu.with_item(variant: "link", text: t(".contact"), icon: "message-square-more", href: "https://discord.gg/36ZGBsxYEK", target: "_blank", rel: "noopener noreferrer") %><% menu.with_item(variant: "divider") %>- <% menu.with_item(variant: "button", text: "Log out", icon: "log-out", href: session_path(Current.session), method: :delete) %>+ <% menu.with_item(variant: "button", text: t(".log_out"), icon: "log-out", href: session_path(Current.session), method: :delete) %><% end %></div>diff --git a/app/views/valuations/_confirmation_contents.html.erb b/app/views/valuations/_confirmation_contents.html.erbindex d8fdf03280..32adf8a49f 100644--- a/app/views/valuations/_confirmation_contents.html.erb+++ b/app/views/valuations/_confirmation_contents.html.erb@@ -5,47 +5,47 @@<% brokerage_cash = reconciliation_dry_run.new_cash_balance || 0 %><% holdings_value = reconciliation_dry_run.new_balance - brokerage_cash %>- <p>This will <%= action_verb %> the account value on <span class="font-medium text-primary"><%= entry.date.strftime("%B %d, %Y") %></span> to:</p>+ <p><%= t(".this_will", action_verb: action_verb) %> <span class="font-medium text-primary"><%= entry.date.strftime("%B %d, %Y") %></span> <%= t(".to_colon") %></p><div class="bg-container rounded-lg p-4 space-y-2 border border-primary"><div class="flex justify-between">- <span>Total account value</span>+ <span><%= t(".total_account_value") %></span><span class="font-medium text-primary"><%= Money.new(reconciliation_dry_run.new_balance, account.currency).format %></span></div><div class="flex justify-between text-xs">- <span>Holdings value</span>+ <span><%= t(".holdings_value") %></span><span><%= Money.new(holdings_value, account.currency).format %></span></div><div class="flex justify-between text-xs">- <span>Brokerage cash</span>+ <span><%= t(".brokerage_cash") %></span><span class="<%= brokerage_cash.negative? ? "text-red-500" : "text-green-500" %>"><%= Money.new(brokerage_cash, account.currency).format %></span></div></div><% else %><p><%= action_verb.capitalize %><% if account.depository? %>- account balance+ <%= t(".account_balance") %><% elsif account.credit_card? %>- credit card balance+ <%= t(".credit_card_balance") %><% elsif account.loan? %>- loan balance+ <%= t(".loan_balance") %><% elsif account.property? %>- property value+ <%= t(".property_value") %><% elsif account.vehicle? %>- vehicle value+ <%= t(".vehicle_value") %><% elsif account.crypto? %>- crypto balance+ <%= t(".crypto_balance") %><% elsif account.other_asset? %>- asset value+ <%= t(".asset_value") %><% elsif account.other_liability? %>- liability balance+ <%= t(".liability_balance") %><% else %>- balance+ <%= t(".balance") %><% end %>- on <span class="font-medium text-primary"><%= entry.date.strftime("%B %d, %Y") %></span> to+ <%= t(".on") %> <span class="font-medium text-primary"><%= entry.date.strftime("%B %d, %Y") %></span> <%= t(".to") %><span class="font-medium text-primary"><%= entry.amount_money.format %></span>.</p><% end %>- <p>All future transactions and balances will be recalculated based on this <%= is_update ? "change" : "update" %>.</p>+ <p><%= t(".recalculate_notice", change_or_update: is_update ? t(".change") : t(".update")) %></p></div>diff --git a/app/views/valuations/show.html.erb b/app/views/valuations/show.html.erbindex 1cfaa09f9d..c580ae2026 100644--- a/app/views/valuations/show.html.erb+++ b/app/views/valuations/show.html.erb@@ -23,11 +23,11 @@label: t(".date_label"),max: Date.current %><%= f.money_field :amount,- label: "Account value on date",+ label: t(".amount_label"),disable_currency: true %><div class="flex justify-end"><%= render DS::Button.new(- text: "Update value",+ text: t(".update_value"),variant: :primary,type: "submit") %>diff --git a/app/views/vehicles/tabs/_overview.html.erb b/app/views/vehicles/tabs/_overview.html.erbindex b71793bbcb..ddd9cbe506 100644--- a/app/views/vehicles/tabs/_overview.html.erb+++ b/app/views/vehicles/tabs/_overview.html.erb@@ -34,7 +34,7 @@<div class="flex justify-center py-8"><%= render DS::Link.new(- text: "Edit account details",+ text: t(".edit_account_details"),variant: "ghost",href: edit_vehicle_path(account),frame: :modaldiff --git a/config/locales/doorkeeper.en.yml b/config/locales/doorkeeper.en.ymlindex c9190526fd..d37e0aea4a 100644--- a/config/locales/doorkeeper.en.yml+++ b/config/locales/doorkeeper.en.yml@@ -66,12 +66,15 @@ en:deny: 'Deny'error:title: 'An error has occurred'+ go_back: 'Go back'new:title: 'Authorization required'prompt: 'Authorize %{client_name} to use your account?'able_to: 'This application will be able to'show:title: 'Authorization code'+ authorization_code_label: 'Authorization Code:'+ copy_instructions: 'Copy this code and paste it into the application.'form_post:title: 'Submit this form'diff --git a/config/locales/models/api_key/en.yml b/config/locales/models/api_key/en.ymlnew file mode 100644index 0000000000..88edff14ee--- /dev/null+++ b/config/locales/models/api_key/en.yml@@ -0,0 +1,7 @@+---+en:+ activerecord:+ errors:+ models:+ api_key:+ cannot_destroy_demo_key: "Cannot destroy demo monitoring API key"diff --git a/config/locales/models/category_import/en.yml b/config/locales/models/category_import/en.ymlnew file mode 100644index 0000000000..46877bc477--- /dev/null+++ b/config/locales/models/category_import/en.yml@@ -0,0 +1,8 @@+---+en:+ activerecord:+ errors:+ models:+ category_import:+ own_parent: "Category '%{name}' cannot be its own parent"+ missing_columns: "Missing required columns: %{columns}"diff --git a/config/locales/models/import/en.yml b/config/locales/models/import/en.ymlindex 36a901518a..0c24706dd2 100644--- a/config/locales/models/import/en.yml+++ b/config/locales/models/import/en.yml@@ -8,6 +8,7 @@ en:errors:models:import:+ duplicate_headers: "CSV headers normalize to duplicate columns: %{columns}"attributes:raw_file_str:invalid_csv_format: is not a valid CSV formatdiff --git a/config/locales/models/indexa_capital_item/en.yml b/config/locales/models/indexa_capital_item/en.ymlnew file mode 100644index 0000000000..66cbcc3c37--- /dev/null+++ b/config/locales/models/indexa_capital_item/en.yml@@ -0,0 +1,7 @@+---+en:+ activerecord:+ errors:+ models:+ indexa_capital_item:+ credentials_required: "Either INDEXA_API_TOKEN env var or username/document/password credentials are required"diff --git a/config/locales/models/plaid_account/en.yml b/config/locales/models/plaid_account/en.ymlnew file mode 100644index 0000000000..afd10f40d3--- /dev/null+++ b/config/locales/models/plaid_account/en.yml@@ -0,0 +1,7 @@+---+en:+ activerecord:+ errors:+ models:+ plaid_account:+ no_balance: "Plaid account must have either current or available balance"diff --git a/config/locales/models/recurring_transaction/en.yml b/config/locales/models/recurring_transaction/en.ymlnew file mode 100644index 0000000000..6d30296283--- /dev/null+++ b/config/locales/models/recurring_transaction/en.yml@@ -0,0 +1,7 @@+---+en:+ activerecord:+ errors:+ models:+ recurring_transaction:+ merchant_or_name_required: "Either merchant or name must be present"diff --git a/config/locales/models/rule/en.yml b/config/locales/models/rule/en.ymlnew file mode 100644index 0000000000..adcc09b184--- /dev/null+++ b/config/locales/models/rule/en.yml@@ -0,0 +1,9 @@+---+en:+ activerecord:+ errors:+ models:+ rule:+ min_actions: "must have at least one action"+ duplicate_actions: "Rule cannot have duplicate actions %{types}"+ nested_conditions: "Compound conditions cannot be nested"diff --git a/config/locales/models/rule_import/en.yml b/config/locales/models/rule_import/en.ymlnew file mode 100644index 0000000000..4a34fc7cdb--- /dev/null+++ b/config/locales/models/rule_import/en.yml@@ -0,0 +1,9 @@+---+en:+ activerecord:+ errors:+ models:+ rule_import:+ unsupported_resource_type: "Unsupported resource type: %{resource_type}"+ invalid_json: "Invalid JSON in conditions or actions: %{message}"+ min_actions: "Rule must have at least one action"diff --git a/config/locales/models/simplefin_account/en.yml b/config/locales/models/simplefin_account/en.ymlnew file mode 100644index 0000000000..83e910210e--- /dev/null+++ b/config/locales/models/simplefin_account/en.yml@@ -0,0 +1,7 @@+---+en:+ activerecord:+ errors:+ models:+ simplefin_account:+ no_balance: "SimpleFin account must have either current or available balance"diff --git a/config/locales/models/sophtron_account/en.yml b/config/locales/models/sophtron_account/en.ymlnew file mode 100644index 0000000000..581656f13d--- /dev/null+++ b/config/locales/models/sophtron_account/en.yml@@ -0,0 +1,7 @@+---+en:+ activerecord:+ errors:+ models:+ sophtron_account:+ no_balance: "Sophtron account must have either current or available balance"diff --git a/config/locales/models/sso_provider/en.yml b/config/locales/models/sso_provider/en.ymlnew file mode 100644index 0000000000..87097447cf--- /dev/null+++ b/config/locales/models/sso_provider/en.yml@@ -0,0 +1,12 @@+---+en:+ activerecord:+ errors:+ models:+ sso_provider:+ attributes:+ settings:+ saml_url_required: "Either IdP Metadata URL or IdP SSO URL is required for SAML providers"+ saml_cert_required: "Either IdP Certificate or Certificate Fingerprint is required when not using metadata URL"+ metadata_url_invalid: "IdP Metadata URL must be a valid URL"+ sso_url_invalid: "IdP SSO URL must be a valid URL"diff --git a/config/locales/models/transfer/en.yml b/config/locales/models/transfer/en.ymlindex 094194f275..fddf744313 100644--- a/config/locales/models/transfer/en.yml+++ b/config/locales/models/transfer/en.yml@@ -17,6 +17,10 @@ en:must_have_single_currency: Transfer must have a single currencyoutflow_cannot_be_in_multiple_transfers: Outflow transaction cannotbe part of multiple transfers+ different_accounts: "Must be from different accounts"+ same_family: "Must be from same family"+ opposite_amounts: "Must have opposite amounts"+ within_days: "Must be within %{count} days"transfer:name: Transfer to %{to_account}payment_name: Payment to %{to_account}diff --git a/config/locales/views/accounts/en.yml b/config/locales/views/accounts/en.ymlindex 70ba87ec02..f927e34247 100644--- a/config/locales/views/accounts/en.yml+++ b/config/locales/views/accounts/en.yml@@ -1,8 +1,13 @@---en:+ account:+ entries:+ destroy:+ success: "Entry deleted successfully."accounts:not_authorized: "You don't have permission to manage this account"account:+ complete_setup: Complete setupedit: Editlink_lunchflow: Link with Lunch Flowlink_provider: Link with provider@@ -52,6 +57,10 @@ en:syncing: "Syncing accounts..."new:import_accounts: Import accounts+ container:+ select: Select+ navigate: Navigate+ close: Closemethod_selector:connected_entry: Link accountconnected_entry_eu: Link EU account@@ -85,11 +94,14 @@ en:pending: Pendingsearch:placeholder: Search entries by name+ search_placeholder: Search entries by namestatus: Statustitle: Activitychart:balance: Balanceowed: Amount owed+ header:+ complete_setup: Complete setupmenu:confirm_accept: Delete "%{name}"confirm_body_html: "<p>By deleting this account, you will erase its value@@ -98,11 +110,13 @@ en:graphs.</p><br /> <p>After deletion, there is no way you'll be able to restorethe account information because you'll need to add it as a new account.</p>"confirm_title: Delete account?+ delete_account: Delete accountedit: Editimport: Import transactionsimport_trades: Import tradesimport_transactions: Import transactionsmanage: Manage accounts+ sharing: Sharingstatements: Statementsupdate:success: "%{type} account updated"diff --git a/config/locales/views/admin/sso_providers/en.yml b/config/locales/views/admin/sso_providers/en.ymlindex 9957e56b80..f563c38a7e 100644--- a/config/locales/views/admin/sso_providers/en.yml+++ b/config/locales/views/admin/sso_providers/en.yml@@ -4,12 +4,25 @@ en:unauthorized: "You are not authorized to access this area."sso_providers:index:+ page_title: "SSO Providers"title: "SSO Providers"- description: "Manage single sign-on authentication providers for your instance"+ description: "Manage single sign-on authentication providers for your instance."+ restart_required: "Changes require a server restart to take effect."+ configured_providers: "Configured Providers"add_provider: "Add Provider"no_providers_title: "No SSO Providers"- no_providers_message: "Get started by adding your first SSO provider."+ no_providers_message: "No SSO providers configured yet."note: "Changes to SSO providers require a server restart to take effect. Alternatively, enable the AUTH_PROVIDERS_SOURCE=db feature flag to load providers from the database dynamically."+ enabled: "Enabled"+ disabled: "Disabled"+ edit: "Edit"+ enable: "Enable"+ disable: "Disable"+ delete: "Delete"+ configuration_mode: "Configuration Mode"+ db_backed_providers: "Database-backed providers"+ db_backed_providers_description: "Load providers from database instead of YAML config"+ db_backed_providers_help_html: "Set <code class=\"bg-surface px-1 py-0.5 rounded text-xs\">AUTH_PROVIDERS_SOURCE=db</code> to enable database-backed providers. This allows changes without server restarts."table:name: "Name"strategy: "Strategy"@@ -44,34 +57,42 @@ en:oauth_configuration: "OAuth/OIDC Configuration"strategy_label: "Strategy"strategy_help: "The authentication strategy to use"+ strategy_openid_connect: "OpenID Connect"+ strategy_saml: "SAML 2.0"+ strategy_google_oauth2: "Google OAuth2"+ strategy_github: "GitHub"name_label: "Name"- name_placeholder: "e.g., openid_connect, keycloak, authentik"+ name_placeholder: "e.g., keycloak, authentik"name_help: "Unique identifier (lowercase, numbers, underscores only)"- label_label: "Label"+ label_label: "Button Label"label_placeholder: "e.g., Sign in with Keycloak"label_help: "Button text shown to users"- icon_label: "Icon"- icon_placeholder: "e.g., key, google, github"- icon_help: "Lucide icon name (optional)"+ icon_label: "Icon (optional)"+ icon_placeholder: "e.g., key, shield"+ icon_help: "Lucide icon name for the login button"enabled_label: "Enable this provider"enabled_help: "Users can sign in with this provider when enabled"- issuer_label: "Issuer"- issuer_placeholder: "https://accounts.google.com"- issuer_help: "OIDC issuer URL (will validate .well-known/openid-configuration endpoint)"+ issuer_label: "Issuer URL"+ issuer_placeholder: "https://your-idp.example.com/realms/your-realm"+ issuer_help: "OIDC issuer URL (validates .well-known/openid-configuration)"client_id_label: "Client ID"client_id_placeholder: "your-client-id"client_id_help: "OAuth client ID from your identity provider"client_secret_label: "Client Secret"client_secret_placeholder_new: "your-client-secret"- client_secret_placeholder_existing: "••••••••••••••••"+ client_secret_placeholder_existing: "••••••••"client_secret_help: "OAuth client secret (encrypted in database)"- client_secret_help_existing: " - leave blank to keep existing"- redirect_uri_label: "Redirect URI"+ client_secret_help_existing: "Leave blank to keep existing secret"+ redirect_uri_label: "Callback URL"redirect_uri_placeholder: "https://yourdomain.com/auth/openid_connect/callback"- redirect_uri_help: "Callback URL to configure in your identity provider"+ redirect_uri_help: "Configure this URL in your identity provider"+ saml_sp_callback_url_label: "SP Callback URL (ACS URL)"+ saml_sp_callback_url_help: "Configure this URL as the Assertion Consumer Service URL in your IdP"copy_button: "Copy"cancel: "Cancel"submit: "Save Provider"+ create_provider: "Create Provider"+ update_provider: "Update Provider"errors_title: "%{count} error prohibited this provider from being saved:"provisioning_title: "User Provisioning"default_role_label: "Default Role for New Users"diff --git a/config/locales/views/budgets/en.yml b/config/locales/views/budgets/en.ymlindex fb06af681f..af53f4f2fd 100644--- a/config/locales/views/budgets/en.yml+++ b/config/locales/views/budgets/en.yml@@ -1,6 +1,34 @@---en:budgets:+ budget_donut:+ spent: "Spent"+ new_budget: "New budget"+ of_budget: "of %{amount}"+ unused: "Unused"+ budget_header:+ today: "Today"+ over_allocation_warning:+ over_allocated_message: "You have over-allocated your budget. Please fix your allocations."+ fix_allocations: "Fix allocations"+ actuals_summary:+ income: "Income"+ expenses: "Expenses"+ budgeted_summary:+ expected_income: "Expected income"+ budgeted: "Budgeted"+ earned: "%{amount} earned"+ over: "%{amount} over"+ left: "%{amount} left"+ spent: "%{amount} spent"+ edit:+ setup_title: "Setup your budget"+ setup_description: "Enter your monthly earnings and planned spending below to setup your budget."+ budgeted_spending: "Budgeted spending"+ expected_income: "Expected income"+ autosuggest_title: "Autosuggest income & spending budget"+ autosuggest_description: "This will be based on transaction history. AI can make mistakes, verify before continuing."+ continue: "Continue"name:custom_range: "%{start} - %{end_date}"month_year: "%{month}"@@ -31,3 +59,27 @@ en:success: "Budget copied from %{source_name}"no_source: "No previous budget found to copy from"already_initialized: "This budget has already been set up"+ budget_categories:+ confirm_button:+ confirm: "Confirm"+ no_categories:+ oops: "Oops!"+ no_categories_message: "You have not created or assigned any expense categories to your transactions yet."+ use_defaults: "Use defaults (recommended)"+ new_category: "New category"+ index:+ title: "Edit your category budgets"+ description: "Adjust category budgets to set spending limits. Unallocated funds will be automatically assigned as uncategorized."+ show:+ category: "Category"+ overview: "Overview"+ spending: "%{date} spending"+ status: "Status"+ overspent: "overspent"+ left: "left"+ budgeted: "Budgeted"+ monthly_average_spending: "Monthly average spending"+ monthly_median_spending: "Monthly median spending"+ recent_transactions: "Recent Transactions"+ view_all_transactions: "View all category transactions"+ no_transactions: "No transactions found for this budget period."diff --git a/config/locales/views/categories/en.yml b/config/locales/views/categories/en.ymlindex 9f089fb738..37c8c2568f 100644--- a/config/locales/views/categories/en.yml+++ b/config/locales/views/categories/en.yml@@ -14,11 +14,20 @@ en:edit: Edit categoryform:placeholder: Category name+ name_label: Name+ unassigned: "(unassigned)"+ parent_category_label: "Parent category (optional)"+ color: Color+ icon: Icon+ poor_contrast: "Poor contrast, choose darker color or"+ destroy_all:+ success: All categories deletedindex:bootstrap: Use defaults (recommended)categories: Categoriescategories_expenses: Expense categoriescategories_incomes: Income categories+ delete_all: Delete allempty: No categories foundnew: New categorymenu:@@ -27,8 +36,16 @@ en:new_category: New categoryupdate:success: Category updated successfully+ virtual:+ transfer: Transfer+ payment: Payment+ trade: Tradecategory:dropdowns:show:bootstrap: Generate default categoriesempty: No categories found+ match_transfer: "Match transfer/payment"+ one_time: "One-time %{type}"+ income: "income"+ expense: "expense"diff --git a/config/locales/views/chats/en.yml b/config/locales/views/chats/en.ymlindex 2d2bede2eb..df4fe0fdef 100644--- a/config/locales/views/chats/en.yml+++ b/config/locales/views/chats/en.yml@@ -4,3 +4,41 @@ en:demo_banner_title: "Demo Mode Active"demo_banner_message: "You are using LLMs via credits provided by Cloudflare Workers AI. Results may vary since the codebase was tested on `gpt-4.1` but your tokens don't go anywhere else to be trained with! 🤖"thinking: "Thinking ..."+ ai_greeting:+ greeting: "Hey %{name}! I'm an AI/large-language-model that can help with your finances. I have access to the web and your account data."+ there: "there"+ commands_hint_html: "You can use <span class=\"bg-container border border-secondary px-1.5 py-0.5 rounded font-mono text-xs\">/</span> to access commands"+ questions_intro: "Here's a few questions you can ask:"+ evaluate_portfolio: "Evaluate investment portfolio"+ spending_insights: "Show spending insights"+ unusual_patterns: "Find unusual patterns"+ chat:+ edit_chat_title: "Edit chat title"+ delete_chat: "Delete chat"+ chat_nav:+ all_chats: "All chats"+ start_new_chat: "Start new chat"+ edit_chat_title: "Edit chat title"+ delete_chat: "Delete chat"+ error:+ retry: "Retry"+ destroy:+ notice: "Chat was successfully deleted"+ index:+ chats: "Chats"+ new_chat: "New chat"+ update:+ success: "Chat updated"+ ai_consent:+ title: "Enable AI Chats"+ available_description: "AI chat can answer financial questions and provide insights based on your data. To use this feature you'll need to explicitly enable it."+ unavailable_description_html: "To use the AI assistant, you need to set the <code class=\"bg-surface-inset px-1 py-0.5 rounded font-mono text-xs\">OPENAI_ACCESS_TOKEN</code> environment variable or configure it in the Self-Hosting settings of your instance."+ enable_button: "Enable AI Chats"+ disable_note: "Disable anytime. All data sent to our LLM providers is anonymized."+ assistant_messages:+ assistant_message:+ assistant_reasoning: "Assistant reasoning"+ tool_calls:+ tool_calls: "Tool Calls"+ function: "Function:"+ arguments: "Arguments:"diff --git a/config/locales/views/components/en.yml b/config/locales/views/components/en.ymlindex 785343aba6..1f3bff8291 100644--- a/config/locales/views/components/en.yml+++ b/config/locales/views/components/en.yml@@ -1,5 +1,14 @@---en:+ UI:+ account:+ activity_feed:+ toggle_selection_checkboxes: Toggle selection+ chart:+ no_data_available: "No data available"+ activity_date:+ balance_tooltip: "The end of day balance, after all transactions and adjustments"+ no_balance_data: "No balance data available for this date"ds:alert:variants:diff --git a/config/locales/views/credit_cards/en.yml b/config/locales/views/credit_cards/en.ymlindex f0131d2180..ac58719827 100644--- a/config/locales/views/credit_cards/en.yml+++ b/config/locales/views/credit_cards/en.yml@@ -20,6 +20,7 @@ en:annual_fee: Annual Feeapr: APRavailable_credit: Available Credit+ edit_account_details: Edit account detailsexpiration_date: Expiration Dateminimum_payment: Minimum Paymentunknown: Unknowndiff --git a/config/locales/views/enable_banking_items/en.yml b/config/locales/views/enable_banking_items/en.ymlindex 460e3a31e3..ab60614330 100644--- a/config/locales/views/enable_banking_items/en.yml+++ b/config/locales/views/enable_banking_items/en.yml@@ -39,8 +39,65 @@ en:errors:only_manual: Only manual accounts can be linkedinvalid_enable_banking_account: Invalid Enable Banking account selected+ enable_banking_item:+ deletion_in_progress: Deletion in progress+ provider_name: Enable Banking+ syncing: Syncing...+ reconnect: Reconnect+ last_synced: Last synced %{time} ago+ never_synced: Never synced+ update: Update+ delete: Delete+ setup_needed: Setup needed+ setup_needed_description:+ one: 1 account imported from Enable Banking needs to be set up+ other: "%{count} accounts imported from Enable Banking need to be set up"+ set_up_accounts: Set up accounts+ no_accounts_found: No accounts found+ no_accounts_found_description: No accounts were found from Enable Banking. Try syncing again.+ select_existing_account:+ title: Link Enable Banking account+ all_linked: All Enable Banking accounts appear to be linked already.+ try_after_sync: If you just connected or synced, try again after the sync completes.+ unlink_to_move: To link a different account, first unlink it from the account's actions menu.+ balance: Balance+ link: Link+ cancel: Cancel+ setup_accounts:+ title: Set Up Your Enable Banking Accounts+ header_subtitle: Choose the correct account types for your imported accounts+ choose_account_type: "Choose the correct account type for each Enable Banking account:"+ historical_data_range: "Historical Data Range:"+ sync_start_date_label: "Start syncing transactions from:"+ sync_start_date_help: Select how far back you want to sync transaction history. Maximum 2 years of history available.+ account_type_label: "Account Type:"+ balance: Balance+ create_accounts: Create Accounts+ creating_accounts: Creating Accounts...+ cancel: Cancelnew:link_enable_banking_title: Link Enable Banking+ session_expired: Session expired - re-authorization required+ connected_bank: Connected Bank+ session_expires: "Session expires"+ unknown: Unknown+ connection: Connection+ configured: Configured+ ready_to_connect: Ready to connect a bank+ sync: Sync+ reconnect: Reconnect+ connect_bank: Connect Bank+ remove_confirm: Are you sure you want to remove this connection?+ remove: Remove+ add_connection: Add Connection+ not_configured: Enable Banking connection not configured+ not_configured_description: Before you can link Enable Banking accounts, you need to configure your Enable Banking connection.+ setup_steps_title: "Setup Steps:"+ setup_step_1_html: "Go to <strong>Settings → Providers</strong>"+ setup_step_2_html: "Find the <strong>Enable Banking</strong> section"+ setup_step_3: Enter your Enable Banking credentials+ setup_step_4: Return here to link your accounts+ go_to_provider_settings: Go to Provider Settingsreauthorize:invalid_redirect: The authorization URL received is invalid. Please try again.reauthorization_failed: Reauthorization failed@@ -55,7 +112,5 @@ en:search_label: Search for your banksearch_placeholder: Search for your bank...title: Select Your Bank- setup_accounts:- psd2_savings_notice: "Note: Some regulated French savings accounts (Livret A, PEL, LEP, LDDS) may have limited or no access via Open Banking (PSD2). If a savings account is missing, you can add it manually."update:success: Enable Banking configuration updated.diff --git a/config/locales/views/family_exports/en.yml b/config/locales/views/family_exports/en.ymlindex 7b0d8b08d4..f81c29b49b 100644--- a/config/locales/views/family_exports/en.yml+++ b/config/locales/views/family_exports/en.yml@@ -10,6 +10,18 @@ en:success: Export deleted successfullyexport_not_ready: Export not ready for downloadexporting: Exporting...+ new:+ dialog_title: Export your data+ dialog_subtitle: Download all your financial data+ whats_included: "What's included:"+ accounts_and_balances: All accounts and balances+ transaction_history: Transaction history+ investment_trades: Investment trades+ categories_tags_rules: Categories, tags and rules+ note_label: Note+ note_description: This export includes all of your data, but only some of the data can be imported back via the CSV import feature. We support account, transaction (with category and tags), and trade imports. Other account data cannot be imported and is for your records only.+ cancel: Cancel+ export_data: Export dataindex:title: Exportsnew: New Exportdiff --git a/config/locales/views/holdings/en.yml b/config/locales/views/holdings/en.ymlindex c7f98b8230..824619c0a5 100644--- a/config/locales/views/holdings/en.yml+++ b/config/locales/views/holdings/en.yml@@ -5,6 +5,7 @@ en:brokerage_cash: Brokerage cashdestroy:success: Holding deleted+ cannot_delete: You cannot delete this holdingupdate:success: Cost basis saved.error: Invalid cost basis value.@@ -27,6 +28,7 @@ en:provider: From providercost_basis_cell:unknown: "--"+ set: Setset_cost_basis_header: "Set cost basis for %{ticker} (%{qty} shares)"total_cost_basis_label: Total cost basisor_per_share_label: "Or enter per share:"diff --git a/config/locales/views/ibkr_items/en.yml b/config/locales/views/ibkr_items/en.ymlindex a5d3bae449..45666b2e40 100644--- a/config/locales/views/ibkr_items/en.yml+++ b/config/locales/views/ibkr_items/en.yml@@ -62,6 +62,14 @@ en:one: 1 account linkedother: "%{count} accounts linked"partial: "%{linked} linked, %{unlinked} need setup"+ select_existing_account:+ title: Link Interactive Brokers account+ no_accounts_available: No unlinked Interactive Brokers accounts are available yet.+ run_sync_hint: "Run a sync from Settings > Providers after updating your Flex query."+ wait_for_sync: Wait for the account discovery sync to finish.+ balance: Balance+ link: Link+ cancel: Cancelcreate:success: Successfully configured Interactive Brokers.update:diff --git a/config/locales/views/impersonation_sessions/en.yml b/config/locales/views/impersonation_sessions/en.ymlindex 202822bfef..8c3a030d98 100644--- a/config/locales/views/impersonation_sessions/en.yml+++ b/config/locales/views/impersonation_sessions/en.yml@@ -13,3 +13,13 @@ en:success: Left sessionreject:success: Request rejected+ super_admin_bar:+ super_admin: Super Admin+ jobs: Jobs+ impersonating: Impersonating+ leave: Leave+ terminate: Terminate+ join_a_session: Join a session+ join: Join+ uuid_placeholder: UUID+ request_impersonation: Request Impersonationdiff --git a/config/locales/views/imports/en.yml b/config/locales/views/imports/en.ymlindex 9f41ab712b..a45792793e 100644--- a/config/locales/views/imports/en.yml+++ b/config/locales/views/imports/en.yml@@ -2,6 +2,8 @@en:import:qif_category_selections:+ update:+ success: "Categories and tags saved."show:title: "Configure & select"description: "Review the detected date format, then choose which categories and tags from your QIF file to bring into %{product_name}."@@ -27,15 +29,82 @@ en:submit: Continue to reviewcleans:show:+ not_configured: "Please configure your import before proceeding."description: Edit your data in the table below. Red cells are invalid.errors_notice: You have errors in your data. Hover over the error to seedetails.errors_notice_mobile: You have errors in your data. Tap over the error tooltip to seedetails.title: Clean your data+ data_cleaned: Your data has been cleaned+ next_step: Next step+ all_rows: All rows+ error_rows: Error rowsconfigurations:update:success: Import configured successfully.+ account_import:+ leave_empty: Leave empty+ default: Default+ entity_type: Entity Type+ name: Name+ balance: Balance+ currency: Currency+ balance_date: Balance Date+ date_format: Date Format+ select_format: Select format+ apply_configuration: Apply configuration+ transaction_import:+ date_label: Date+ select_column: Select column+ select_format: Select format+ amount_label: Amount+ default: Default+ currency_label: Currency+ format_label: Format+ amount_type_strategy_label: Amount type strategy+ select_strategy: Select strategy+ set: Set+ as_amount_type_column: as amount type column+ select_value: Select value+ as_identifier_value: as identifier value+ treat_as_html: "Treat \"<span class=\"font-medium\">%{value}</span>\" as"+ income_inflow: Income (inflow)+ expense_outflow: Expense (outflow)+ select_type: Select type+ leave_empty: Leave empty+ account_label: Account+ name_label: Name+ category_label: Category+ tags_label: Tags+ notes_label: Notes+ apply_configuration: Apply configuration+ incomes_are_positive: Incomes are positive+ incomes_are_negative: Incomes are negative+ amount_type_label: Amount type+ select_convention: Select convention+ date_format_label: Date format+ rows_to_skip_label: Skip first n rows+ trade_import:+ select_column: Select column+ date_label: Date+ quantity_label: Quantity+ buys_are_positive: Buys are positive qty+ buys_are_negative: Buys are negative qty+ default: Default+ currency_label: Currency+ format_label: Format+ select_format: Select format+ ticker_label: Ticker+ leave_empty: Leave empty+ stock_exchange_code_label: Stock exchange code+ price_label: Price+ account_label: Account+ name_label: Name+ note_label: Note+ no_security_provider_warning: The security prices provider is not configured. Your trade imports will work, but Sure will not backfill price history. Please go to your settings to configure this.+ date_format_label: Date format+ apply_configuration: Apply configurationcategory_import:button_label: Continuedescription: Upload a simple CSV file (like the one we generate when you@@ -51,11 +120,6 @@ en:show:description: Select the columns that correspond to each field in your CSV.title: Configure your import- trade_import:- date_format_label: Date format- transaction_import:- date_format_label: Date format- rows_to_skip_label: Skip first n rowsconfirms:sure_import:title: Confirm your import@@ -73,7 +137,9 @@ en:and provide an account name we can use.rows_label: Rowsunassigned_account: Need to create a new account for unassigned rows?+ next: Nextshow:+ invalid_data: "You have invalid data, please edit until all errors are resolved"account_mapping_description: Assign all of your imported file's accounts toMaybe's existing accounts. You can also add new accounts or leave themuncategorized.@@ -89,7 +155,20 @@ en:existing tags. You can also add new tags or leave them uncategorized.tag_mapping_title: Assign your tagsuploads:+ update:+ qif_uploaded: "QIF file uploaded successfully."show:+ csv_invalid: "Must be valid CSV with headers and at least one row of data"+ drop_csv_title: Drop CSV to upload+ drop_csv_subtitle: Your file will be uploaded automatically+ upload_csv_tab: Upload CSV+ copy_paste_tab: Copy & Paste+ account_optional_label: Account (optional)+ multi_account_import: Multi-account import+ upload_csv_button: Upload CSV+ paste_csv_placeholder: Paste your CSV file contents here+ download_sample_csv: Download a sample CSV+ to_see_format: to see the required CSV formatqif_title: Upload QIF fileqif_description: Select the account this QIF file belongs to, then upload your .qif export from Quicken.qif_account_label: Account@@ -119,6 +198,58 @@ en:hint_html: Upload the <strong>all.ndjson</strong> file from your data export ZIPndjson_invalid: Must be valid NDJSON with at least one recordimports:+ mapping_labels:+ account_type: "Account Type"+ account: "Account"+ category: "Category"+ tag: "Tag"+ column_labels:+ date: "Date"+ amount: "Amount"+ name: "Name"+ currency: "Currency"+ category: "Category"+ tags: "Tags"+ account: "Account"+ notes: "Notes"+ qty: "Quantity"+ ticker: "Ticker"+ exchange: "Exchange"+ price: "Price"+ entity_type: "Type"+ category_parent: "Parent category"+ category_color: "Color"+ category_icon: "Lucide icon"+ update:+ account_saved: "Account saved."+ invalid_account: "Account not found."+ publish:+ started: "Your import has started in the background."+ max_rows_exceeded: "Your import exceeds the maximum row count of %{max}."+ revert:+ started: "Import is reverting in the background."+ apply_template:+ template_applied: "Template applied."+ no_template_found: "No template found, please manually configure your import."+ destroy:+ deleted: "Your import has been deleted."+ failure:+ title: Import failed+ description: Please check that your file format, for any errors and that all required fields are filled, then come back and try again.+ try_again: Try again+ success:+ title: Import successful+ description: Your imported data has been successfully added to the app and is now ready for use.+ back_to_dashboard: Back to dashboard+ importing:+ title: Import in progress+ description: "Your import is in progress. Check the imports menu for status updates or click 'Check Status' to refresh the page for updates. Feel free to continue using the app."+ check_status: Check status+ back_to_dashboard: Back to dashboard+ revert_failure:+ title: Reverting import failed+ description: Please try again+ try_again: Try againdate_format:heading: Date formatdescription: "The date format was auto-detected from your file. Change it if dates look incorrect."@@ -143,6 +274,9 @@ en:map: Mapconfirm: Confirmselect: Select+ progress: "Step %{step} of %{total}"+ empty:+ message: No imports found.index:title: Importsnew: New Import@@ -255,3 +389,21 @@ en:unknown_state_description: This import is in an unexpected state. Please return to imports.processing_failed_with_message: "%{message}"processing_failed_generic: "Processing failed: %{error}"+ ready_for_review_title: Ready for Review+ ready_for_review_description: "We extracted %{count} transactions from your statement. Review and publish them to add to your account."+ transactions_extracted: Transactions Extracted+ transactions_extracted_count:+ one: "%{count} transaction"+ other: "%{count} transactions"+ select_account: Import to Account+ select_account_placeholder: Select an account...+ select_account_hint: Choose which account to import these transactions into.+ no_accounts: No accounts available. Please create an account first.+ create_account: Create Account+ save_account: Save+ publish_transactions:+ one: "Publish %{count} Transaction"+ other: "Publish %{count} Transactions"+ review_transactions: Review Transactions+ select_account_to_continue: Please select an account above to continue.+ unknown_document_type: Unknowndiff --git a/config/locales/views/invite_codes/en.yml b/config/locales/views/invite_codes/en.ymlindex 8517ae827a..a74e8e96f5 100644--- a/config/locales/views/invite_codes/en.yml+++ b/config/locales/views/invite_codes/en.yml@@ -1,6 +1,10 @@---en:invite_codes:+ create:+ success: "Code generated"+ destroy:+ success: "Code deleted"index:invite_code_description: Generate a new code to see it displayed here. Generatedcodes that have been used will no longer be shown.diff --git a/config/locales/views/layout/en.yml b/config/locales/views/layout/en.ymlindex 52b0cf65de..e5702c5e72 100644--- a/config/locales/views/layout/en.yml+++ b/config/locales/views/layout/en.yml@@ -19,6 +19,10 @@ en:footer:privacy_policy: Privacy Policyterms_of_service: Terms of Service+ confirm_dialog:+ are_you_sure: Are you sure?+ cannot_be_undone: This action cannot be undone.+ confirm: Confirmtrial:open_demo: Open demodata_deleted_in_days: Data deleted in %{days} daysdiff --git a/config/locales/views/loans/en.yml b/config/locales/views/loans/en.ymlindex 157c01cf2d..1c60d31d04 100644--- a/config/locales/views/loans/en.yml+++ b/config/locales/views/loans/en.yml@@ -10,6 +10,7 @@ en:rate_type: Rate typeterm_months: Term (months)term_months_placeholder: '360'+ none: Nonesubtype_prompt: Select loan typesubtype_none: Nonenew:@@ -23,3 +24,14 @@ en:term: Termtype: Typeunknown: Unknown+ tabs:+ overview:+ interest_rate: Interest Rate+ monthly_payment: Monthly Payment+ not_applicable: N/A+ original_principal: Original Principal+ remaining_principal: Remaining Principal+ term: Term+ type: Type+ unknown: Unknown+ edit_loan_details: "Edit loan details"diff --git a/config/locales/views/lunchflow_items/en.yml b/config/locales/views/lunchflow_items/en.ymlindex df75343951..50ebe2ced1 100644--- a/config/locales/views/lunchflow_items/en.yml+++ b/config/locales/views/lunchflow_items/en.yml@@ -1,6 +1,29 @@---en:lunchflow_items:+ api_error:+ title: Lunch Flow Connection Error+ unable_to_connect: Unable to connect to Lunch Flow+ common_issues: "Common Issues:"+ invalid_api_key_label: Invalid API Key+ invalid_api_key_desc: Check your API key in Provider Settings+ expired_credentials_label: Expired Credentials+ expired_credentials_desc: Generate a new API key from Lunch Flow+ network_issue_label: Network Issue+ network_issue_desc: Check your internet connection+ service_down_label: Service Down+ service_down_desc: Lunch Flow API may be temporarily unavailable+ check_provider_settings: Check Provider Settings+ setup_required:+ title: Lunch Flow Setup Required+ api_key_not_configured: API Key Not Configured+ api_key_description: Before you can link Lunch Flow accounts, you need to configure your Lunch Flow API key.+ setup_steps_title: "Setup Steps:"+ setup_step_1_html: "Go to <strong>Settings → Providers</strong>"+ setup_step_2_html: "Find the <strong>Lunch Flow</strong> section"+ setup_step_3: Enter your Lunch Flow API key+ setup_step_4: Return here to link your accounts+ go_to_provider_settings: Go to Provider Settingscreate:success: Lunch Flow connection created successfullydestroy:diff --git a/config/locales/views/merchants/en.yml b/config/locales/views/merchants/en.ymlindex d297fe049d..7c99f3e68c 100644--- a/config/locales/views/merchants/en.yml+++ b/config/locales/views/merchants/en.yml@@ -34,6 +34,9 @@ en:merchant: Merchantactions: Actionssource: Source+ family_merchant:+ edit: Edit+ delete: Deletemerchant:confirm_accept: Delete merchantconfirm_body: Are you sure you want to delete this merchant? Removing this merchantdiff --git a/config/locales/views/mercury_items/en.yml b/config/locales/views/mercury_items/en.ymlindex 2625bc40fe..dd423be17a 100644--- a/config/locales/views/mercury_items/en.yml+++ b/config/locales/views/mercury_items/en.yml@@ -1,6 +1,31 @@---en:mercury_items:+ api_error:+ title: Mercury Connection Error+ unable_to_connect: Unable to connect to Mercury+ common_issues: "Common Issues:"+ invalid_api_token_label: Invalid API Token+ invalid_api_token_desc: Check your API token in Provider Settings+ expired_credentials_label: Expired Credentials+ expired_credentials_desc: Generate a new API token from Mercury+ insufficient_permissions_label: Insufficient Permissions+ insufficient_permissions_desc: Ensure your token has read-only access+ network_issue_label: Network Issue+ network_issue_desc: Check your internet connection+ service_down_label: Service Down+ service_down_desc: Mercury API may be temporarily unavailable+ check_provider_settings: Check Provider Settings+ setup_required:+ title: Mercury Setup Required+ api_token_not_configured: API Token Not Configured+ api_token_description: Before you can link Mercury accounts, you need to configure your Mercury API token.+ setup_steps_title: "Setup Steps:"+ setup_step_1_html: "Go to <strong>Settings > Providers</strong>"+ setup_step_2_html: "Find the <strong>Mercury</strong> section"+ setup_step_3: Enter your Mercury API token+ setup_step_4: Return here to link your accounts+ go_to_provider_settings: Go to Provider Settingscreate:success: Mercury connection created successfullydestroy:@@ -176,3 +201,8 @@ en:success: Sync startedupdate:success: Mercury connection updated+ mercury_item_selection_error_payload:+ select_connection: Choose a Mercury connection before loading accounts.+ render_mercury_item_selection_failure:+ select_connection: Choose a Mercury connection in Provider Settings.+ no_credentials_configured: Please configure your Mercury API token first in Provider Settings.diff --git a/config/locales/views/messages/en.yml b/config/locales/views/messages/en.ymlnew file mode 100644index 0000000000..dee3765681--- /dev/null+++ b/config/locales/views/messages/en.yml@@ -0,0 +1,6 @@+---+en:+ messages:+ chat_form:+ placeholder: "Ask anything ..."+ disclaimer: "AI responses are informational only. Not financial advice!"diff --git a/config/locales/views/oidc_accounts/en.yml b/config/locales/views/oidc_accounts/en.ymlindex e047293072..2e01ea323d 100644--- a/config/locales/views/oidc_accounts/en.yml+++ b/config/locales/views/oidc_accounts/en.yml@@ -2,6 +2,7 @@en:oidc_accounts:link:+ no_pending_oidc: No pending OIDC authentication foundtitle_link: Link OIDC Accounttitle_create: Create Accountverify_heading: Verify Your Identity@@ -21,7 +22,10 @@ en:submit_accept_invitation: Accept Invitationaccount_creation_disabled: New account creation via single sign-on is disabled. Please contact an administrator to create your account.cancel: Cancel+ create_link:+ no_pending_oidc: No pending OIDC authentication foundnew_user:+ no_pending_oidc: No pending OIDC authentication foundtitle: Complete Your Accountheading: Create Your Accountdescription: Please confirm your details to complete account creation with your %{provider} identity.@@ -32,3 +36,7 @@ en:last_name_placeholder: Enter your last namesubmit: Create Accountcancel: Cancel+ create_user:+ no_pending_oidc: No pending OIDC authentication found+ account_creation_disabled: SSO account creation is disabled. Please contact an administrator.+ account_created: "Welcome! Your account has been created."diff --git a/config/locales/views/pages/en.yml b/config/locales/views/pages/en.ymlindex bded845ee2..bd96938e54 100644--- a/config/locales/views/pages/en.yml+++ b/config/locales/views/pages/en.yml@@ -1,6 +1,29 @@---en:pages:+ feedback:+ title: Feedback+ heading: Leave feedback+ description: Let us know if you have any specific feedback. Feel free to include links to videos or screenshots.+ feature_request: Write a feature request+ bug_report: File a bug report+ discuss: "Discuss %{product} with others"+ intro:+ not_authorized: "Intro is only available to guest users."+ welcome: "Welcome!"+ coming_soon: Intro experience coming soon+ description: "We're building a richer onboarding journey to learn about your goals, milestones, and day-to-day needs. For now, head over to the chat sidebar to start a conversation with Sure and let us know where you are in your financial journey."+ start_chatting: Start chatting+ redis_configuration_error:+ page_title: Redis Configuration Required - Sure+ heading: Redis Configuration Required+ subheading: Your self-hosted Sure installation needs Redis to be properly configured.+ why_required_title: Why is Redis required?+ why_required_body: Sure uses Redis to power Sidekiq background jobs for tasks like syncing account data, processing imports, and other background operations that keep your financial data up to date.+ view_setup_guide: View Setup Guide+ setup_guide_hint: Follow our complete Docker setup guide to configure Redis+ refresh_hint: "Once you've configured Redis, refresh this page to continue."+ refresh_page: Refresh Pagechangelog:title: What's newprivacy:@@ -28,6 +51,9 @@ en:title: "Balance Sheet"no_items: "No %{name} yet"add_accounts: "Add your %{name} accounts to see a full breakdown"+ name: "Name"+ weight: "Weight"+ value: "Value"cashflow_sankey:title: "Cashflow"no_data_title: "No cash flow data for this time period"diff --git a/config/locales/views/pending_duplicate_merges/en.yml b/config/locales/views/pending_duplicate_merges/en.ymlindex c62c6e2b00..41d9d5865c 100644--- a/config/locales/views/pending_duplicate_merges/en.yml+++ b/config/locales/views/pending_duplicate_merges/en.yml@@ -1,6 +1,13 @@---en:pending_duplicate_merges:+ create:+ no_posted_selected: Please select a posted transaction to merge with+ invalid_transaction: Invalid transaction selected for merge+ merge_success: Pending transaction merged with posted transaction+ merge_failed: Could not merge transactions+ set_transaction:+ pending_only: This feature is only available for pending transactionsnew:title: Merge with Posted Transactionwarning_title: Manual Duplicate Mergingdiff --git a/config/locales/views/plaid_items/en.yml b/config/locales/views/plaid_items/en.ymlindex fbb0a51d67..0dbe8ee519 100644--- a/config/locales/views/plaid_items/en.yml+++ b/config/locales/views/plaid_items/en.yml@@ -25,7 +25,12 @@ en:syncing: Syncing...update: Updateselect_existing_account:+ no_available_accounts: No available Plaid accounts to link. Please connect a new Plaid account first.title: "Link %{account_name} to Plaid"description: Select a Plaid account to link to your existing accountcancel: Cancellink_account: Link account+ link_existing_account:+ invalid_account: Invalid Plaid account selected+ already_linked: This Plaid account is already linked+ success: Account successfully linked to Plaiddiff --git a/config/locales/views/properties/en.yml b/config/locales/views/properties/en.ymlindex bf0dd8d878..fabe4d28af 100644--- a/config/locales/views/properties/en.yml+++ b/config/locales/views/properties/en.yml@@ -22,7 +22,39 @@ en:year_built: Year builtyear_built_placeholder: '2000'new:- title: Enter property details+ title: Enter property manually+ next: "Next"+ address:+ title: "Enter property manually"+ address_line1_label: "Address Line 1"+ address_line1_placeholder: "123 Main Street"+ city_label: "City"+ city_placeholder: "San Francisco"+ state_region_label: "State/Region"+ state_region_placeholder: "CA"+ postal_code_label: "Postal Code"+ postal_code_placeholder: "12345"+ country_label: "Country"+ country_placeholder: "USA"+ save: "Save"+ balances:+ title: "Enter property manually"+ market_value_label: "Estimated market value"+ market_value_tooltip: "The estimated market value of your property. This number can often be found on sites like Zillow or Redfin, and is never an exact number."+ save: "Save"+ next: "Next"+ overview_fields:+ name_label: "Name"+ name_placeholder: "Vacation home"+ subtype_prompt: "Select type"+ property_type_label: "Property type"+ year_built_label: "Year Built (optional)"+ year_built_placeholder: "1990"+ area_label: "Area (optional)"+ area_placeholder: "1200"+ square_feet: "Square Feet"+ square_meters: "Square Meters"+ area_unit_label: "Area Unit"overview:living_area: Living Areamarket_value: Market Value@@ -30,6 +62,15 @@ en:trend: Trendunknown: Unknownyear_built: Year Built+ tabs:+ overview:+ living_area: Living Area+ market_value: Market Value+ purchase_price: Purchase Price+ trend: Trend+ unknown: Unknown+ year_built: Year Built+ edit_account_details: "Edit account details"subtypes:apartment:short: Apartmentdiff --git a/config/locales/views/reports/en.yml b/config/locales/views/reports/en.ymlindex 6ee05de94b..be792678d9 100644--- a/config/locales/views/reports/en.yml+++ b/config/locales/views/reports/en.yml@@ -168,10 +168,13 @@ en:and_more: "+%{count} more"investment_flows:title: Investment Flows- description: Track money flowing into and out of your investment accounts+ description: Track money flowing into and out of your investment accounts through contributions and withdrawals.contributions: Contributions+ contributions_description: Money added to investmentswithdrawals: Withdrawals+ withdrawals_description: Money withdrawn from investmentsnet_flow: Net Flow+ net_flow_description: Total net changegoogle_sheets_instructions:title_with_key: "✅ Copy URL for Google Sheets"title_no_key: "⚠️ API Key Required"diff --git a/config/locales/views/rules/en.yml b/config/locales/views/rules/en.ymlindex 5c6fac3bf8..3df2feda12 100644--- a/config/locales/views/rules/en.yml+++ b/config/locales/views/rules/en.yml@@ -3,8 +3,61 @@ en:rules:no_action: No Actionno_condition: No condition+ rule:+ edit: Edit+ re_apply_rule: Re-apply rule+ delete: Delete+ then: THEN+ and_more_conditions:+ one: and 1 more condition+ other: and %{count} more conditions+ and_more_actions:+ one: and 1 more action+ other: and %{count} more actions+ action_label_to: "%{label} to %{value}"+ all_past_and_future: All past and future %{resource}+ on_or_after: "%{resource} on or after %{date}"+ form:+ rule_name_label: Rule name (optional)+ rule_name_placeholder: Enter a name for this rule+ add_condition: Add condition+ add_condition_group: Add condition group+ add_action: Add action+ all_past_and_future: All past and future %{resource}+ starting_from: Starting from+ then: THEN+ index:+ page_title: Rules+ delete_all_rules: Delete all rules+ new_rule: New rule+ ai_cost_warning: AI-enabled rule actions will cost money. Be sure to filter as narrowly as possible to avoid unnecessary costs.+ rules_heading: Rules+ sort_by: "Sort by:"+ sort_name: Name+ sort_updated_at: Updated At+ toggle_sort_direction: Toggle sort direction+ no_rules_title: No rules yet+ no_rules_description: Set up rules to perform actions to your transactions and other data on every account sync.+ confirm:+ title: Confirm changes+ title_with_name: "Confirm changes to \"%{name}\""+ apply_notice_html: "You are about to apply this rule to <span class=\"text-primary font-medium\">%{count} %{resource}</span> that meet the specified rule criteria. Please confirm if you wish to proceed with this change."+ ai_cost_title: AI Cost Estimation+ ai_cost_with_estimate_html: "This will use AI to categorize %{count} transaction(s). Estimated cost: <span class=\"font-semibold\">~$%{cost}</span>"+ ai_cost_no_estimate_html: "This will use AI to categorize %{count} transaction(s)."+ cost_unavailable_model: "Cost estimation unavailable for model \"%{model}\"."+ cost_unavailable_no_provider: Cost estimation unavailable (no LLM provider configured).+ cost_warning: You may incur costs, please check with the model provider for the most up-to-date prices.+ view_usage_history: View usage history+ confirm_changes: Confirm changesactions:value_placeholder: Enter a value+ update:+ success: Rule updated+ destroy:+ success: Rule deleted+ destroy_all:+ success: All rules deletedapply_all:button: Apply Allconfirm_title: Apply All Rules@@ -51,3 +104,12 @@ en:expense: Expensetransfer: Transferequal_to: Equal to+ rule:+ conditions:+ condition_group:+ and_prefix: and+ match: match+ all: all+ any: any+ of_the_following_conditions: of the following conditions+ add_condition: Add conditiondiff --git a/config/locales/views/sessions/en.yml b/config/locales/views/sessions/en.ymlindex ea49a80a00..bf331ca45c 100644--- a/config/locales/views/sessions/en.yml+++ b/config/locales/views/sessions/en.yml@@ -16,6 +16,8 @@ en:sso_provider_unavailable: "The SSO provider is currently unavailable. Please try again later or contact an administrator."sso_invalid_response: "Received an invalid response from the SSO provider. Please try again."sso_failed: "Single sign-on authentication failed. Please try again."+ mobile_sso_start:+ redirecting_html: "Redirecting to sign in... <a href=\"%{url}\">Click here</a> if not redirected."new:email: Email addressemail_placeholder: [email protected]diff --git a/config/locales/views/settings/api_keys/en.yml b/config/locales/views/settings/api_keys/en.ymlindex f6f3d4d468..ebc072b88b 100644--- a/config/locales/views/settings/api_keys/en.yml+++ b/config/locales/views/settings/api_keys/en.yml@@ -11,6 +11,13 @@ en:read_balances: "View Balances"write_transactions: "Create Transactions"api_keys:+ create:+ success: "Your API key has been created successfully"+ destroy:+ not_found: "API key not found"+ cannot_revoke: "This API key cannot be revoked"+ revoked_successfully: "API key has been revoked successfully"+ revoke_failed: "Failed to revoke API key"show:title: "API Key Management"no_api_key:@@ -24,18 +31,33 @@ en:security_note_title: "Security First"security_note: "Your API key will have restricted permissions based on the scopes you select. You can only have one active API key at a time."create_api_key: "Create API Key"+ newly_created:+ page_title: "API Key Created Successfully"+ heading: "API Key Created Successfully!"+ key_ready: "Your new API key \"%{name}\" has been created and is ready to use."+ your_api_key: "Your API Key"+ copy_store_securely: "Copy and store this key securely. You'll need it to authenticate your API requests."+ copy_api_key: "Copy API Key"+ how_to_use: "How to use your API key"+ continue: "Continue to API Key Settings"current_api_key:title: "Your API Key"description: "Your active API key is ready to use. Keep it secure and never share it publicly."active: "Active"key_name: "Name"created_at: "Created"+ created_ago: "Created %{time} ago"last_used: "Last Used"+ last_used_ago: "Last used %{time} ago"expires: "Expires"ago: "ago"never_used: "Never used"never_expires: "Never expires"permissions: "Permissions"+ scope_read_only: "Read Only"+ scope_read_write: "Read/Write"+ copy_api_key: "Copy API Key"+ copy_store_securely: "Copy and store this key securely. You'll need it to authenticate your API requests."usage_instructions_title: "How to use your API key"usage_instructions: "Include your API key in the X-Api-Key header when making requests to the %{product_name} API:"regenerate_key: "Create New Key"@@ -43,34 +65,51 @@ en:revoke_confirmation: "Are you sure you want to revoke this API key? This action cannot be undone and will immediately disable all applications using this key."new:title: "Create API Key"- create_new_key: "Create New API Key"+ create_new_api_key: "Create New API Key"+ subtitle: "Generate a new API key to access your Sure data programmatically."description: "Configure your new API key with a descriptive name and appropriate permissions."name_label: "API Key Name"- name_placeholder: "e.g., Production App, Analytics Dashboard"+ name_placeholder: "e.g., My Budget App, Portfolio Tracker"+ name_help_text: "Choose a descriptive name to help you identify this key later."name_help: "Choose a descriptive name to help you identify this key's purpose."permissions_label: "Permissions"- permissions_help: "Select the permissions your API key needs. You can always create a new key with different permissions."+ permissions_help: "Select the permissions this API key should have:"+ scope_read_only: "Read Only"+ scope_read_only_description: "View your accounts, transactions, and balances"+ scope_read_write: "Read/Write"+ scope_read_write_description: "View your data and create new transactions"scope_details:read_accounts: "View account information, balances, and account-level data"read_transactions: "View transaction data, categories, and transaction details"read_balances: "View historical balance data and account value trends"write_transactions: "Create and update transaction records (coming soon)"- security_warning_title: "Important Security Notice"+ security_warning_title: "Security Warning"+ security_warning_body: "Your API key will be displayed only once after creation. Make sure to copy and store it securely. Anyone with access to this key can access your data according to the permissions you select."security_warning: "Your API key will be shown only once after creation. Store it securely and never share it publicly. If you lose it, you'll need to create a new one."create_key: "Create API Key"cancel: "Cancel"+ save_api_key: "Save API Key"created:+ page_title: "API Key Created"title: "API Key Created"success_title: "API Key Created Successfully"- success_description: "Your new API key is ready to use. Make sure to copy it now as you won't be able to see it again."+ success_description: "Your new API key has been generated successfully."+ key_ready: "Your new API key \"%{name}\" has been created and is ready to use."your_api_key: "Your API Key"+ copy_store_securely: "Copy and store this key securely. You'll need it to authenticate your API requests."+ key_details_title: "Key Details"+ key_name_label: "Name:"+ permissions_label: "Permissions:"+ created_label: "Created:"+ security_note_title: "Important Security Note"+ security_note_body: "This is the only time your API key will be displayed. Make sure to copy it now and store it securely. If you lose this key, you'll need to generate a new one."+ usage_instructions_title: "How to use your API key"key_name: "Name"permissions: "Permissions"- critical_warning_title: "⚠️ Critical: Save Your API Key Now"+ critical_warning_title: "Critical: Save Your API Key Now"critical_warning_1: "This is the only time you'll see your API key in plain text."critical_warning_2: "Copy and store it securely in your password manager or application."critical_warning_3: "If you lose this key, you'll need to create a new one."- usage_instructions_title: "Quick Start"usage_instructions: "Use your API key by including it in the X-Api-Key header:"copy_key: "Copy API Key"continue: "Continue to API Key Settings"\ No newline at end of filediff --git a/config/locales/views/settings/en.yml b/config/locales/views/settings/en.ymlindex 2904c9a998..590a4dd6af 100644--- a/config/locales/views/settings/en.yml+++ b/config/locales/views/settings/en.yml@@ -6,6 +6,32 @@ en:renewal: "Your contribution continues on %{date}."cancellation: "Your contribution ends on %{date}."settings:+ llm_usages:+ show:+ page_title: "LLM Usage & Costs"+ subtitle: "Track your AI usage and estimated costs"+ start_date: "Start Date"+ end_date: "End Date"+ filter: "Filter"+ total_requests: "Total Requests"+ total_tokens: "Total Tokens"+ prompt: "prompt"+ completion: "completion"+ total_cost: "Total Cost"+ avg_cost_per_request: "Avg Cost/Request"+ based_on_requests: "Based on %{with_cost} of %{total} requests with cost data"+ cost_by_operation: "Cost by Operation"+ cost_by_model: "Cost by Model"+ recent_usage: "Recent Usage"+ col_date: "Date"+ col_operation: "Operation"+ col_model: "Model"+ col_tokens: "Tokens"+ col_cost: "Cost"+ failed: "Failed"+ no_usage_data: "No usage data found for the selected period"+ cost_estimates_title: "About Cost Estimates"+ cost_estimates_description: "Costs are estimated based on OpenAI's pricing as of 2025. Actual costs may vary. Pricing is per 1 million tokens and varies by model. Custom or self-hosted models will show \"N/A\" and are not included in cost totals."ai_prompts:show:page_title: AI Prompts@@ -26,6 +52,17 @@ en:page_title: Paymentssubscription_subtitle: Update your credit card detailssubscription_title: Manage contributions+ currently_on_plan: "Currently on the"+ trialing: "Currently using the open demo of %{product_name}"+ trial_days_left:+ one: "Data will be deleted in %{count} day"+ other: "Data will be deleted in %{count} days"+ not_contributing_prefix: "You are currently"+ not_contributing_emphasis: "not contributing"+ contributions_note: "Contributions to %{product_name} will show here."+ manage: "Manage"+ choose_level: "Choose level"+ payment_via_stripe: "Payment via Stripe"appearances:show:page_title: Appearance@@ -173,9 +210,11 @@ en:rules_label: Rulessecurity_label: Securityself_hosting_label: Self-Hosting+ sso_providers_label: SSO Providersstatement_vault_label: Statement Vaulttags_label: Tagstransactions_section_title: Transactions+ users_label: Userswhats_new_label: What's newapi_keys_label: API Keyappearance_label: Appearance@@ -189,6 +228,9 @@ en:choose_label: (optional)change: Change photoproviders:+ update:+ updated_successfully: Provider settings updated successfully+ no_changes: No changes were madenot_authorized: Not authorizedbank_sync:page_title: Bank sync@@ -318,14 +360,48 @@ en:step_1_html: "Go to %{link} and grab your developer credentials."step_2: "Pick your country and paste the Application ID + Client Certificate below."step_3: "Save, then use Add Connection to link your bank."+ config_locked_title: "Configuration locked"+ config_locked_message: "Disconnect all linked banks before changing these credentials."+ application_id_label: "Application ID"+ application_id_placeholder_new: "Enter application ID"+ application_id_placeholder_update: "Enter new ID to update"+ client_certificate_label: "Client Certificate (with Private Key)"+ save_and_connect: "Save and connect"+ update_connection: "Update connection"+ connected_bank: "Connected Bank"+ session_expires: "Session expires: %{date}"+ unknown: "Unknown"+ connection: "Connection"+ session_expired_reconnect: "Session expired - reconnect"+ configured: "Configured"+ ready_to_link: "Ready to link accounts"+ sync: "Sync"+ reconnect: "Reconnect"+ connect_bank: "Connect bank"+ remove: "Remove"+ remove_confirm: "Are you sure you want to remove this connection?"+ add_connection: "Add Connection"+ syncing: "Syncing"+ select_country: "Select country..."+ country_label: "Country"lunchflow_panel:step_1_html: "Go to %{link} and create an API key."step_2: "Paste your key below and connect."step_3: "Then head to Accounts to link your synced accounts."+ api_key_label: "API Key"+ api_key_placeholder_new: "Paste API key here"+ api_key_placeholder_update: "Enter new API key to update"+ base_url_label: "Base URL (Optional)"+ base_url_placeholder: "https://lunchflow.app/api/v1 (default)"+ save_and_connect: "Save and connect"+ update_connection: "Update connection"simplefin_panel:step_1_html: "Go to %{link} for a one-time setup token."step_2: "Paste the token below and connect."step_3: "Then head to Accounts to link your synced accounts."+ setup_token_label: "Setup Token"+ setup_token_placeholder: "Paste SimpleFIN setup token"+ save_and_connect: "Save and connect"plaid_panel:step_1_html: "Open the %{link} and copy your Client ID and Secret Key."step_2: "Pick an environment. Use sandbox for testing and production for real accounts."diff --git a/config/locales/views/settings/hostings/en.yml b/config/locales/views/settings/hostings/en.ymlindex 0c3f8f7ab1..a2f08e4e19 100644--- a/config/locales/views/settings/hostings/en.yml+++ b/config/locales/views/settings/hostings/en.yml@@ -80,6 +80,11 @@ en:body: This will remove the saved URL, token, and agent ID, and switch to the builtin assistant. You can reconnect later by entering new credentials.brand_fetch_settings:description: Enter the Client ID provided by Brand Fetch+ env_configured_message: You have successfully configured your Brand Fetch Client ID through the BRAND_FETCH_CLIENT_ID environment variable.+ show_details: "(show details)"+ setup_step_1_html: 'Visit <a href="https://brandfetch.com/developers" target="_blank" rel="noopener noreferrer" class="underline">brandfetch.com</a> and create a free Brand Fetch Developer account.'+ setup_step_2_html: 'Go to the <a href="https://developers.brandfetch.com/dashboard/logo-api" target="_blank" rel="noopener noreferrer" class="underline">Logo API</a> page.'+ setup_step_3: 'Tap the eye icon under the "Your Client ID" section to reveal your Client ID and paste it below.'label: Client IDplaceholder: Enter your Client ID heretitle: Brand Fetch Settings@@ -176,6 +181,10 @@ en:clear_cache:cache_cleared: Data cache has been cleared. This may take a few moments to complete.not_authorized: You are not authorized to perform this action+ ensure_super_admin_for_onboarding:+ not_authorized: You are not authorized to perform this action+ sync_auto_sync_scheduler!:+ scheduler_sync_failed: Settings saved, but failed to update the sync schedule. Please try again or check the server logs.sync_settings:auto_sync_label: Enable automatic syncauto_sync_description: When enabled, all accounts will be automatically synced daily at the specified time.diff --git a/config/locales/views/shared/en.yml b/config/locales/views/shared/en.ymlindex 98a6e479ac..75d0dff328 100644--- a/config/locales/views/shared/en.yml+++ b/config/locales/views/shared/en.yml@@ -1,5 +1,8 @@---en:+ concerns:+ self_hostable:+ redis_configured: "Redis is now configured properly! You can now setup your Sure application."shared:confirm_modal:accept: Confirm@@ -17,5 +20,17 @@ en:syncing_notice:syncing: Syncing accounts data...require_admin: "Only admins can perform this action"+ custom_confirm:+ default_title: "Are you sure?"+ default_body: "This is not reversible."+ default_btn_text: "Confirm"+ family_moniker:+ singular: Family+ plural: Familiestrend_change:no_change: "no change"+ cancel: Cancel+ transaction_tabs:+ expense: Expense+ income: Income+ transfer: Transferdiff --git a/config/locales/views/simplefin_items/en.yml b/config/locales/views/simplefin_items/en.ymlindex 29c9cdde7c..7c8407d9c9 100644--- a/config/locales/views/simplefin_items/en.yml+++ b/config/locales/views/simplefin_items/en.yml@@ -30,7 +30,34 @@ en:label: "SimpleFIN Setup Token:"placeholder: "Paste your SimpleFIN setup token here..."help_text: "The token should be a long string starting with letters and numbers"+ title: Update SimpleFin Connection+ header_subtitle: Get a new setup token to reconnect your SimpleFIN account+ connection_needs_update: "Your SimpleFIN connection needs to be updated:"+ step_1_html: "Visit <a href=\"https://bridge.simplefin.org/simplefin/create\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-link hover:text-link underline\">SimpleFIN Bridge</a> to create a new setup token"+ step_2: Copy the token and paste it below+ step_3: "Click \"Update\" to restore access"+ update: Update+ cancel: Cancelsetup_accounts:+ title: Set Up Your SimpleFin Accounts+ header_subtitle: Choose the correct account types for your imported accounts+ choose_account_type: "Choose the correct account type for each SimpleFin account:"+ account_type_checking_savings: Checking or Savings+ account_type_checking_savings_desc: Regular bank accounts+ account_type_credit_card: Credit Card+ account_type_credit_card_desc: Credit card accounts+ account_type_investment: Investment+ account_type_investment_desc: "Brokerage, 401(k), IRA accounts"+ account_type_loan: Loan or Mortgage+ account_type_loan_desc: Debt accounts+ account_type_other_asset: Other Asset+ account_type_other_asset_desc: Everything else+ transaction_history_title: "Transaction History:"+ transaction_history_description_html: "SimpleFin typically provides <strong>60-90 days</strong> of transaction history, depending on your bank. After initial setup, new transactions will sync automatically going forward. Historical data availability varies by institution and account type."+ account_type_label: "Account Type:"+ create_accounts: Create Accounts+ creating_accounts: Creating Accounts...+ cancel: Cancelaccount_card:balance: "Balance"activity:diff --git a/config/locales/views/snaptrade_items/en.yml b/config/locales/views/snaptrade_items/en.ymlindex 053978a4b8..e601741cc3 100644--- a/config/locales/views/snaptrade_items/en.yml+++ b/config/locales/views/snaptrade_items/en.yml@@ -1,6 +1,8 @@en:snaptrade_items:default_name: "SnapTrade Connection"+ link_accounts:+ use_setup_flow: Use the account setup flow insteadcreate:success: "Successfully configured SnapTrade."update:@@ -73,6 +75,8 @@ en:available_accounts: "Available Accounts"balance_label: "Balance:"account_number: "Account:"+ sync_start_date_label: "Import transactions from:"+ sync_start_date_help: "Leave blank for all available history"create_button: "Create Selected Accounts"cancel_button: "Cancel"creating: "Creating Accounts..."diff --git a/config/locales/views/sophtron_items/en.yml b/config/locales/views/sophtron_items/en.ymlindex 5e52084bf3..ab66fa0a7b 100644--- a/config/locales/views/sophtron_items/en.yml+++ b/config/locales/views/sophtron_items/en.yml@@ -155,6 +155,7 @@ en:no_institution_connected: Please connect a bank institution with Sophtron first.no_name_placeholder: "(No name)"title: "Link %{account_name} with Sophtron"+ unexpected_error: "An unexpected error occurred"link_existing_account:account_already_linked: This account is already linked to a providerapi_error: "API connection error"@@ -289,3 +290,24 @@ en:sophtron_entry:processor:unknown_transaction: "Unknown transaction"+ render_connection_timeout:+ timeout: "Connection timed out. Please try again."+ redirect_after_account_link:+ invalid_account_names:+ one: "Cannot link %{count} account with blank name"+ other: "Cannot link %{count} accounts with blank names"+ partial_invalid: "Linked %{created_count} account(s). %{already_linked_count} already linked, %{invalid_count} had invalid names."+ partial_success: "Linked %{created_count} account(s). %{already_linked_count} account(s) were already linked."+ success:+ one: "Successfully linked %{count} account."+ other: "Successfully linked %{count} accounts."+ all_already_linked:+ one: "The selected account is already linked"+ other: "All %{count} selected accounts are already linked"+ link_failed: "Failed to link accounts"+ start_manual_sync:+ already_running: "A sync is already in progress."+ no_linked_accounts: "No linked accounts available to sync."+ api_error: "API error: %{message}"+ start_manual_sync_for_account:+ failed: "Failed to sync account"diff --git a/config/locales/views/subscriptions/en.yml b/config/locales/views/subscriptions/en.ymlindex 1cd332897a..d058df0e42 100644--- a/config/locales/views/subscriptions/en.yml+++ b/config/locales/views/subscriptions/en.yml@@ -2,6 +2,10 @@ en:subscriptions:self_hosted_alert: "%{product_name} is not available in self-hosted mode."upgrade:+ already_contributing: You are already contributing. Thank you!+ page_title: "Upgrade"+ account_settings: "Account Settings"+ sign_out: "Sign out"contribute_and_support_sure: "Contribute and support Sure"cta: "Continue supporting the development of this codebase!"header:@@ -10,4 +14,10 @@ en:today: "today"redirect_to_stripe: "In the next step, you'll be redirected to Stripe which handles credit cards for us."trialing: "Your data will be deleted in %{days} days"- trial_over: "Your trial is over"\ No newline at end of file+ trial_over: "Your trial is over"+ create:+ welcome: "Welcome to Sure!"+ trial_already_used: "You have already started or completed a trial. Please upgrade to continue."+ success:+ welcome_with_contribution: "Welcome to Sure! Your contribution is appreciated."+ contribution_failed: "Something went wrong processing your contribution. Please try again."diff --git a/config/locales/views/tag/deletions/en.yml b/config/locales/views/tag/deletions/en.ymlindex c69ec8d5d9..77f5f24737 100644--- a/config/locales/views/tag/deletions/en.yml+++ b/config/locales/views/tag/deletions/en.yml@@ -7,6 +7,7 @@ en:new:delete_and_leave_uncategorized: Delete "%{tag_name}"delete_and_recategorize: Delete "%{tag_name}" and assign new tag+ delete_and_reassign: Delete and reassigndelete_tag: Delete tag?explanation: "%{tag_name} will be removed from transactions and other taggableentities. Instead of leaving them untagged, you can also assign a new tagdiff --git a/config/locales/views/tags/en.yml b/config/locales/views/tags/en.ymlindex a1f2ba329f..0764778599 100644--- a/config/locales/views/tags/en.yml+++ b/config/locales/views/tags/en.yml@@ -6,6 +6,8 @@ en:error: 'Error creating tag: %{error}'destroy:deleted: Tag deleted+ destroy_all:+ all_deleted: All tags deletededit:edit: Edit tagform:@@ -14,6 +16,7 @@ en:empty: No tags yetnew: New tagtags: Tags+ delete_all: Delete allnew:new: New tagtag:diff --git a/config/locales/views/transactions/en.yml b/config/locales/views/transactions/en.ymlindex 8336576eea..5cde05d728 100644--- a/config/locales/views/transactions/en.yml+++ b/config/locales/views/transactions/en.yml@@ -10,10 +10,12 @@ en:duplicate: Duplicateedit: Editform:+ details: Detailsaccount: Accountaccount_prompt: Select an Accountamount: Amountcategory: Category+ category_label: Categorycategory_prompt: Select a Categorydate: Datedescription: Description@@ -27,9 +29,22 @@ en:submit: Add transactiontags_label: Tagstransfer: Transfer+ create:+ created: Transaction created+ update:+ updated: Transaction updatednew:new_transaction: New transactionshow:+ keep_both: No, keep both+ loan_payment: Loan Payment+ mark_recurring: Mark as Recurring+ mark_recurring_subtitle: Track this as a recurring transaction. Amount variance is automatically calculated from past 6 months of similar transactions.+ mark_recurring_title: Recurring Transaction+ merge_duplicate: Yes, merge them+ potential_duplicate_description: This pending transaction may be the same as the posted transaction below. If so, merge them to avoid double-counting.+ potential_duplicate_title: Possible duplicate detected+ transfer: Transferaccount_label: Accountamount: Amountcategory_label: Category@@ -65,6 +80,14 @@ en:tab_transactions: Transactionstab_upcoming: Upcominguncategorized: "(uncategorized)"+ additional_details: "Additional details"+ payee: "Payee"+ description: "Description"+ memo: "Memo"+ provider_extras: "Provider extras"+ transfer_or_debt_payment: "Transfer or Debt Payment?"+ open_matcher: "Open matcher"+ convert: "Convert"activity_labels:buy: Buysell: Sell@@ -126,9 +149,17 @@ en:edit_tags: Edit tagsimport: Importindex:+ title: "Transactions"transaction: transactiontransactions: transactionsimport: Import+ new_rule: "New rule"+ edit_rules: "Edit rules"+ edit_categories: "Edit categories"+ edit_tags: "Edit tags"+ edit_merchants: "Edit merchants"+ edit_imports: "Edit imports"+ new_transaction: "New transaction"categorize_button:one: "Categorize (1)"other: "Categorize (%{count})"@@ -225,6 +256,9 @@ en:unexpected_error: "Unexpected error during conversion: %{error}"searches:filters:+ date_filter:+ start_date: "Start date"+ end_date: "End date"amount_filter:equal_to: Equal togreater_than: Greater than@@ -263,6 +297,8 @@ en:less_than: less thanform:toggle_selection_checkboxes: Toggle all checkboxes+ search_placeholder: "Search transactions ..."+ filter: "Filter"attachments:cannot_exceed: "Cannot exceed %{count} attachments per transaction"uploaded_one: "Attachment uploaded successfully"diff --git a/config/locales/views/transfer_matches/en.yml b/config/locales/views/transfer_matches/en.ymlindex c71247e475..9bc2abb955 100644--- a/config/locales/views/transfer_matches/en.yml+++ b/config/locales/views/transfer_matches/en.yml@@ -1,7 +1,24 @@---en:transfer_matches:+ create:+ success: Transfer creatednew:header:title: Match transfer or paymentsubtitle: Match the corresponding transaction in another account or create one if it doesn't exist.+ from_account: From account+ from_account_named: "From account: %{name}"+ to_account: To account+ to_account_named: "To account: %{name}"+ outflow_transaction: Outflow transaction+ inflow_transaction: Inflow transaction+ create_transfer_match: Create transfer match+ matching_fields:+ select_method: Select a method for matching your transactions.+ match_existing_recommended: Match existing transaction (recommended)+ create_new_transaction: Create new transaction+ matching_method: Matching method+ matching_transaction: Matching transaction+ target_account: Target account+ no_matching_transactions: We couldn't find any transactions to match from your other accounts. Please select an account and we will create a new inflow transaction for you.diff --git a/config/locales/views/transfers/en.yml b/config/locales/views/transfers/en.ymlindex 2eda135857..aa9c40104e 100644--- a/config/locales/views/transfers/en.yml+++ b/config/locales/views/transfers/en.yml@@ -39,5 +39,11 @@ en:note_placeholder: Add a note to this transferoverview: Overviewsettings: Settings+ from: From+ to: To+ date: Date+ amount: Amount+ category: Category+ uncategorized: Uncategorizedupdate:success: Transfer updateddiff --git a/config/locales/views/users/en.yml b/config/locales/views/users/en.ymlindex 48528761c0..a10da27c57 100644--- a/config/locales/views/users/en.yml+++ b/config/locales/views/users/en.yml@@ -16,3 +16,10 @@ en:unauthorized: You are not authorized to perform this actionreset_with_sample_data:success: Your account has been reset and sample data is being prepared. You’ll see demo data shortly.+ user_menu:+ version: Version+ settings: Settings+ changelog: Changelog+ feedback: Feedback+ contact: Contact+ log_out: Log outdiff --git a/config/locales/views/valuations/en.yml b/config/locales/views/valuations/en.ymlindex 6a8e964a2f..afca72aaaa 100644--- a/config/locales/views/valuations/en.yml+++ b/config/locales/views/valuations/en.yml@@ -1,6 +1,31 @@---en:valuations:+ confirmation_contents:+ this_will: "This will %{action_verb} the account value on"+ to_colon: "to:"+ total_account_value: Total account value+ holdings_value: Holdings value+ brokerage_cash: Brokerage cash+ account_balance: account balance+ credit_card_balance: credit card balance+ loan_balance: loan balance+ property_value: property value+ vehicle_value: vehicle value+ crypto_balance: crypto balance+ asset_value: asset value+ liability_balance: liability balance+ balance: balance+ "on": "on"+ to: "to"+ recalculate_notice: "All future transactions and balances will be recalculated based on this %{change_or_update}."+ change: change+ update: update+ create:+ account_updated: Account updated+ update:+ account_updated: Account updated+ entry_updated: Entry updatederrors:amount_required: Amount is requiredform:@@ -19,6 +44,7 @@ en:title: New balanceshow:amount: Amount+ amount_label: Account value on datedate_label: Datedelete: Deletedelete_subtitle: This action cannot be undone@@ -31,3 +57,4 @@ en:overview: Overviewsettings: Settingsopening_balance: "Opening balance"+ update_value: Update valuediff --git a/config/locales/views/vehicles/en.yml b/config/locales/views/vehicles/en.ymlindex 03ed522529..c136fe57bd 100644--- a/config/locales/views/vehicles/en.yml+++ b/config/locales/views/vehicles/en.yml@@ -23,3 +23,13 @@ en:trend: Trendunknown: Unknownyear: Year+ tabs:+ overview:+ current_price: Current Price+ make_model: Make & Model+ mileage: Mileage+ purchase_price: Purchase Price+ trend: Trend+ unknown: Unknown+ year: Year+ edit_account_details: "Edit account details"diff --git a/test/controllers/settings/profiles_controller_test.rb b/test/controllers/settings/profiles_controller_test.rbindex 8a83923efa..9228a5ab5f 100644--- a/test/controllers/settings/profiles_controller_test.rb+++ b/test/controllers/settings/profiles_controller_test.rb@@ -33,7 +33,7 @@ class Settings::ProfilesControllerTest < ActionDispatch::IntegrationTestendassert_redirected_to settings_profile_path- assert_equal "Member removed successfully.", flash[:notice]+ assert_equal I18n.t("settings.profiles.destroy.member_removed"), flash[:notice]assert_raises(ActiveRecord::RecordNotFound) { User.find(@member.id) }end@@ -74,7 +74,7 @@ class Settings::ProfilesControllerTest < ActionDispatch::IntegrationTestendassert_redirected_to settings_profile_path- assert_equal "Member removed successfully.", flash[:notice]+ assert_equal I18n.t("settings.profiles.destroy.member_removed"), flash[:notice]assert_raises(ActiveRecord::RecordNotFound) { User.find(@member.id) }assert_raises(ActiveRecord::RecordNotFound) { Invitation.find(invitation.id) }enddiff --git a/test/models/simplefin_account_test.rb b/test/models/simplefin_account_test.rbindex daa7347acf..53aa104057 100644--- a/test/models/simplefin_account_test.rb+++ b/test/models/simplefin_account_test.rb@@ -41,7 +41,7 @@ class SimplefinAccountTest < ActiveSupport::TestCase)refute account.valid?- assert_includes account.errors[:base], "SimpleFin account must have either current or available balance"+ assert_includes account.errors[:base], I18n.t("activerecord.errors.models.simplefin_account.no_balance")endtest "can upsert snapshot data" do