Skip to content

armgit / sure

Public Imported from GitHub
0

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.yml
index 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 vorgemerkt
plaid_item:
+ add_accounts: Konten hinzufügen
add_new: Neue Verbindung hinzufügen
confirm_accept: Institut löschen
confirm_body: Dadurch werden alle Konten dieser Gruppe und alle zugehörigen Daten dauerhaft gelöscht
diff --git a/test/controllers/accounts_controller_test.rb b/test/controllers/accounts_controller_test.rb
index 03475a8708..6f0447c554 100644
--- a/test/controllers/accounts_controller_test.rb
+++ b/test/controllers/accounts_controller_test.rb
@@ -15,6 +15,19 @@ class AccountsControllerTest < ActionDispatch::IntegrationTest
assert_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" do
kraken_item = kraken_items(:one)
get accounts_url