The personal finance app for everyone (by everyone)
Ruby
fix(i18n): localize Plaid add accounts action (#3323)
Thomas Steibl276bdb298a24
diff --git a/config/locales/views/plaid_items/de.yml b/config/locales/views/plaid_items/de.ymlindex d1d169653f..e66b206099 100644--- a/config/locales/views/plaid_items/de.yml+++ b/config/locales/views/plaid_items/de.yml@@ -6,6 +6,7 @@ de:destroy:success: Konten zur Löschung vorgemerktplaid_item:+ add_accounts: Konten hinzufügenadd_new: Neue Verbindung hinzufügenconfirm_accept: Institut löschenconfirm_body: Dadurch werden alle Konten dieser Gruppe und alle zugehörigen Daten dauerhaft gelöschtdiff --git a/test/controllers/accounts_controller_test.rb b/test/controllers/accounts_controller_test.rbindex 03475a8708..6f0447c554 100644--- a/test/controllers/accounts_controller_test.rb+++ b/test/controllers/accounts_controller_test.rb@@ -15,6 +15,19 @@ class AccountsControllerTest < ActionDispatch::IntegrationTestassert_select "p.ml-auto.privacy-sensitive"end+ test "index localizes the Plaid add accounts action" do+ ensure_tailwind_build+ @user.update!(locale: "de")++ get accounts_url++ assert_response :success+ assert_select "a[href=?]",+ edit_plaid_item_path(plaid_items(:one), add_accounts: true),+ text: "Konten hinzufügen",+ count: 1+ end+test "index renders kraken items" dokraken_item = kraken_items(:one)get accounts_url