Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

Align the bank sync drawers with the Up panel (#3821)

Guillem Arias Fauste34398b087847
diff --git a/app/controllers/redbark_items_controller.rb b/app/controllers/redbark_items_controller.rb
index 0076a03027..1f095ba9c1 100644
--- a/app/controllers/redbark_items_controller.rb
+++ b/app/controllers/redbark_items_controller.rb
@@ -16,12 +16,10 @@ class RedbarkItemsController < ApplicationController
if turbo_frame_request?
flash.now[:notice] = t(".success")
- @redbark_items = Current.family.redbark_items.ordered
render turbo_stream: [
turbo_stream.replace(
"redbark-providers-panel",
- partial: "settings/providers/redbark_panel",
- locals: { redbark_items: @redbark_items }
+ partial: "settings/providers/redbark_panel"
),
*flash_notification_stream_items
]
@@ -54,12 +52,10 @@ class RedbarkItemsController < ApplicationController
if turbo_frame_request?
flash.now[:notice] = t(".success")
- @redbark_items = Current.family.redbark_items.ordered
render turbo_stream: [
turbo_stream.replace(
"redbark-providers-panel",
- partial: "settings/providers/redbark_panel",
- locals: { redbark_items: @redbark_items }
+ partial: "settings/providers/redbark_panel"
),
*flash_notification_stream_items
]
diff --git a/app/views/onchain_wallet_items/new_wallet.html.erb b/app/views/onchain_wallet_items/new_wallet.html.erb
index 9ced08e763..4456d1bdcc 100644
--- a/app/views/onchain_wallet_items/new_wallet.html.erb
+++ b/app/views/onchain_wallet_items/new_wallet.html.erb
@@ -11,10 +11,8 @@
stops being read at all. %>
<%= render DS::Alert.new(
variant: :info,
- message: safe_join([
- content_tag(:p, t("settings.providers.onchain_wallet_panel.keyless_title"), class: "font-medium"),
- content_tag(:p, t("settings.providers.onchain_wallet_panel.keyless_body"), class: "mt-1")
- ])
+ title: t("settings.providers.onchain_wallet_panel.keyless_title"),
+ message: t("settings.providers.onchain_wallet_panel.keyless_body")
) %>
<% if @error_message.present? %>
diff --git a/app/views/settings/providers/_add_connection_heading.html.erb b/app/views/settings/providers/_add_connection_heading.html.erb
new file mode 100644
index 0000000000..d506959ea5
--- /dev/null
+++ b/app/views/settings/providers/_add_connection_heading.html.erb
@@ -0,0 +1,5 @@
+<%# locals: (label:) %>
+<h3 class="flex items-center gap-2 text-sm font-medium text-primary mt-4">
+ <%= icon "plus", size: "sm" %>
+ <%= label %>
+</h3>
diff --git a/app/views/settings/providers/_akahu_panel.html.erb b/app/views/settings/providers/_akahu_panel.html.erb
index ffb90bf961..da3189e927 100644
--- a/app/views/settings/providers/_akahu_panel.html.erb
+++ b/app/views/settings/providers/_akahu_panel.html.erb
@@ -3,7 +3,7 @@
<%= render "settings/providers/setup_steps",
steps: [
- t("settings.providers.akahu_panel.step_1_html", link: link_to(t("providers.akahu.name"), "https://my.akahu.nz/developers", target: "_blank", rel: "noopener noreferrer", class: "text-primary font-medium underline")),
+ t("settings.providers.akahu_panel.step_1_html", link: link_to(t("providers.akahu.name"), "https://my.akahu.nz/developers", target: "_blank", rel: "noopener noreferrer", class: "text-link underline")),
t("settings.providers.akahu_panel.step_2"),
t("settings.providers.akahu_panel.step_3")
] %>
@@ -95,10 +95,7 @@
<% akahu_item = Current.family.akahu_items.build(name: t("akahu_items.provider_panel.default_connection_name")) %>
<% if active_items.any? %>
- <h3 class="flex items-center gap-2 text-sm font-medium text-primary mt-4">
- <%= icon "plus", size: "sm" %>
- <%= t("akahu_items.provider_panel.add_connection") %>
- </h3>
+ <%= render "settings/providers/add_connection_heading", label: t("akahu_items.provider_panel.add_connection") %>
<% end %>
<%= styled_form_with model: akahu_item,
diff --git a/app/views/settings/providers/_binance_panel.html.erb b/app/views/settings/providers/_binance_panel.html.erb
index 738501b370..cba8907de0 100644
--- a/app/views/settings/providers/_binance_panel.html.erb
+++ b/app/views/settings/providers/_binance_panel.html.erb
@@ -37,7 +37,7 @@
<% if items.any? %>
<div class="space-y-3">
<% items.each do |item| %>
- <div class="flex items-center justify-between p-3 bg-container-inset rounded-lg border border-primary">
+ <div class="flex flex-wrap items-center justify-between gap-3 p-3 bg-container-inset rounded-lg border border-primary">
<div class="flex items-center gap-3">
<%= render ProviderLogo.new(provider_key: :binance, class_name: "w-10 h-10 rounded-full") %>
<div>
@@ -51,7 +51,7 @@
</p>
</div>
</div>
- <div class="flex items-center gap-2">
+ <div class="flex flex-wrap items-center gap-2">
<% if item.unlinked_accounts_count > 0 %>
<%= render DS::Link.new(
text: t("binance_items.binance_item.setup_action"),
@@ -61,19 +61,24 @@
frame: :modal
) %>
<% end %>
- <%= button_to sync_binance_item_path(item),
- method: :post,
- class: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium text-secondary hover:text-primary border border-secondary rounded-lg hover:border-primary",
- disabled: item.syncing? do %>
- <%= icon "refresh-cw", size: "sm" %>
- <%= t("settings.providers.binance_panel.sync") %>
- <% end %>
- <%= button_to binance_item_path(item),
- method: :delete,
- class: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium text-destructive hover:bg-destructive/10 rounded-lg",
- data: { turbo_confirm: t("settings.providers.binance_panel.disconnect_confirm") } do %>
- <%= icon "trash-2", size: "sm" %>
- <% end %>
+ <%= render DS::Button.new(
+ text: t("settings.providers.binance_panel.sync"),
+ icon: "refresh-cw",
+ variant: :outline,
+ size: :sm,
+ href: sync_binance_item_path(item),
+ method: :post,
+ disabled: item.syncing?
+ ) %>
+ <%= render DS::Button.new(
+ text: t("settings.providers.binance_panel.disconnect"),
+ icon: "trash-2",
+ variant: :outline_destructive,
+ size: :sm,
+ href: binance_item_path(item),
+ method: :delete,
+ data: { turbo_confirm: t("settings.providers.binance_panel.disconnect_confirm") }
+ ) %>
</div>
</div>
<% end %>
diff --git a/app/views/settings/providers/_brex_panel.html.erb b/app/views/settings/providers/_brex_panel.html.erb
index 0607a55f3d..e96e32265c 100644
--- a/app/views/settings/providers/_brex_panel.html.erb
+++ b/app/views/settings/providers/_brex_panel.html.erb
@@ -1,26 +1,17 @@
<div id="brex-providers-panel" class="space-y-4">
<% active_items = local_assigns[:brex_items] || @brex_items || Current.family.brex_items.active.ordered %>
- <% credentialed_items = active_items.select(&:credentials_configured?) %>
- <div class="prose prose-sm text-secondary">
- <p class="text-primary font-medium"><%= t("brex_items.provider_panel.setup_title") %></p>
- <ol>
- <li><%= t("brex_items.provider_panel.instructions.sign_in_html", link: link_to("Brex", "https://brex.com", target: "_blank", rel: "noopener noreferrer", class: "link")) %></li>
- <li><%= t("brex_items.provider_panel.instructions.open_tokens") %></li>
- <li><%= t("brex_items.provider_panel.instructions.create_token") %></li>
- <li><%= t("brex_items.provider_panel.instructions.copy_token_html") %></li>
- </ol>
-
- <p class="text-sm text-subdued mt-2">
- <%= t("brex_items.provider_panel.sandbox_note_html") %>
- </p>
- </div>
+ <%= render "settings/providers/setup_steps",
+ steps: [
+ t("brex_items.provider_panel.instructions.sign_in_html", link: link_to("Brex", "https://brex.com", target: "_blank", rel: "noopener noreferrer", class: "text-link underline")),
+ t("brex_items.provider_panel.instructions.open_tokens"),
+ t("brex_items.provider_panel.instructions.create_token"),
+ t("brex_items.provider_panel.instructions.copy_token_html")
+ ] %>
<% error_msg = local_assigns[:error_message] || @error_message %>
<% if error_msg.present? %>
- <div class="p-2 rounded-md bg-destructive/10 text-destructive text-sm overflow-hidden">
- <p class="line-clamp-3" title="<%= error_msg %>"><%= error_msg %></p>
- </div>
+ <%= render DS::Alert.new(message: error_msg, variant: :error) %>
<% end %>
<% if active_items.any? %>
@@ -41,20 +32,25 @@
<div class="mt-4 space-y-4">
<div class="flex items-center gap-2">
- <%= button_to sync_brex_item_path(item),
- method: :post,
- class: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium text-secondary hover:text-primary border border-secondary rounded-lg hover:border-primary",
- disabled: item.syncing? do %>
- <%= icon "refresh-cw", size: "sm" %>
- <%= t("brex_items.provider_panel.sync") %>
- <% end %>
- <%= button_to brex_item_path(item),
- method: :delete,
- class: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium text-destructive hover:bg-destructive/10 rounded-lg",
- aria: { label: t("brex_items.provider_panel.disconnect_label", name: item.name) },
- data: { turbo_confirm: t("brex_items.provider_panel.disconnect_confirm", name: item.name) } do %>
- <%= icon "trash-2", size: "sm" %>
- <% end %>
+ <%= render DS::Button.new(
+ text: t("brex_items.provider_panel.sync"),
+ icon: "refresh-cw",
+ variant: :outline,
+ size: :sm,
+ href: sync_brex_item_path(item),
+ method: :post,
+ disabled: item.syncing?
+ ) %>
+ <%= render DS::Button.new(
+ text: t("brex_items.provider_panel.disconnect"),
+ icon: "trash-2",
+ variant: :outline_destructive,
+ size: :sm,
+ href: brex_item_path(item),
+ method: :delete,
+ aria: { label: t("brex_items.provider_panel.disconnect_label", name: item.name) },
+ data: { turbo_confirm: t("brex_items.provider_panel.disconnect_confirm", name: item.name) }
+ ) %>
</div>
<%= styled_form_with model: item,
@@ -95,48 +91,34 @@
</div>
<% end %>
- <%= render DS::Disclosure.new(variant: :card, open: active_items.none?) do |disclosure| %>
- <% disclosure.with_summary_content do %>
- <div class="flex items-center gap-2 text-sm font-medium text-primary">
- <%= icon "plus" %>
- <%= t("brex_items.provider_panel.add_connection") %>
- </div>
- <% end %>
+ <% brex_item = Current.family.brex_items.build(name: t("brex_items.provider_panel.default_connection_name")) %>
+ <% if active_items.any? %>
+ <%= render "settings/providers/add_connection_heading", label: t("brex_items.provider_panel.add_connection") %>
+ <% end %>
- <% brex_item = Current.family.brex_items.build(name: t("brex_items.provider_panel.default_connection_name")) %>
- <%= styled_form_with model: brex_item,
- url: brex_items_path,
- scope: :brex_item,
- method: :post,
- data: { turbo: true },
- class: "space-y-3 mt-4" do |form| %>
- <%= form.text_field :name,
- label: t("brex_items.provider_panel.connection_name_label"),
- placeholder: t("brex_items.provider_panel.connection_name_placeholder") %>
+ <%= styled_form_with model: brex_item,
+ url: brex_items_path,
+ scope: :brex_item,
+ method: :post,
+ data: { turbo: true },
+ class: "space-y-3" do |form| %>
+ <%= form.text_field :name,
+ label: t("brex_items.provider_panel.connection_name_label"),
+ placeholder: t("brex_items.provider_panel.connection_name_placeholder") %>
- <%= form.text_field :token,
- label: t("brex_items.provider_panel.token_label"),
- placeholder: t("brex_items.provider_panel.token_placeholder"),
- type: :password,
- value: nil %>
+ <%= form.text_field :token,
+ label: t("brex_items.provider_panel.token_label"),
+ placeholder: t("brex_items.provider_panel.token_placeholder"),
+ type: :password,
+ value: nil %>
- <%= form.text_field :base_url,
- label: t("brex_items.provider_panel.base_url_label"),
- placeholder: t("brex_items.provider_panel.base_url_placeholder") %>
+ <%= form.text_field :base_url,
+ label: t("brex_items.provider_panel.base_url_label"),
+ placeholder: t("brex_items.provider_panel.base_url_placeholder") %>
+ <p class="text-xs text-secondary px-1 -mt-1"><%= t("brex_items.provider_panel.sandbox_note_html") %></p>
- <div class="flex justify-end">
- <%= form.submit t("brex_items.provider_panel.add_connection") %>
- </div>
- <% end %>
+ <div class="flex justify-end">
+ <%= form.submit t("brex_items.provider_panel.add_connection") %>
+ </div>
<% end %>
-
- <div class="flex items-center gap-2">
- <% if credentialed_items.any? %>
- <div class="w-2 h-2 bg-success rounded-full"></div>
- <p class="text-sm text-secondary"><%= t("brex_items.provider_panel.configured_html", accounts_link: link_to(t("brex_items.provider_panel.accounts_link"), accounts_path, class: "link")) %></p>
- <% else %>
- <div class="w-2 h-2 bg-surface-inset rounded-full"></div>
- <p class="text-sm text-secondary"><%= t("brex_items.provider_panel.not_configured") %></p>
- <% end %>
- </div>
</div>
diff --git a/app/views/settings/providers/_coinbase_panel.html.erb b/app/views/settings/providers/_coinbase_panel.html.erb
index f9c48a642f..9f7a89de8e 100644
--- a/app/views/settings/providers/_coinbase_panel.html.erb
+++ b/app/views/settings/providers/_coinbase_panel.html.erb
@@ -16,7 +16,7 @@
<% if items.any? %>
<div class="space-y-3">
<% items.each do |item| %>
- <div class="flex items-center justify-between p-3 bg-container-inset rounded-lg border border-primary">
+ <div class="flex flex-wrap items-center justify-between gap-3 p-3 bg-container-inset rounded-lg border border-primary">
<div class="flex items-center gap-3">
<%= render ProviderLogo.new(provider_key: :coinbase, class_name: "w-10 h-10 rounded-full") %>
<div>
@@ -30,20 +30,25 @@
</p>
</div>
</div>
- <div class="flex items-center gap-2">
- <%= button_to sync_coinbase_item_path(item),
- method: :post,
- class: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium text-secondary hover:text-primary border border-secondary rounded-lg hover:border-primary",
- disabled: item.syncing? do %>
- <%= icon "refresh-cw", size: "sm" %>
- <%= t("settings.providers.coinbase_panel.sync") %>
- <% end %>
- <%= button_to coinbase_item_path(item),
- method: :delete,
- class: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium text-destructive hover:bg-destructive/10 rounded-lg",
- data: { turbo_confirm: t("settings.providers.coinbase_panel.disconnect_confirm") } do %>
- <%= icon "trash-2", size: "sm" %>
- <% end %>
+ <div class="flex flex-wrap items-center gap-2">
+ <%= render DS::Button.new(
+ text: t("settings.providers.coinbase_panel.sync"),
+ icon: "refresh-cw",
+ variant: :outline,
+ size: :sm,
+ href: sync_coinbase_item_path(item),
+ method: :post,
+ disabled: item.syncing?
+ ) %>
+ <%= render DS::Button.new(
+ text: t("settings.providers.coinbase_panel.disconnect"),
+ icon: "trash-2",
+ variant: :outline_destructive,
+ size: :sm,
+ href: coinbase_item_path(item),
+ method: :delete,
+ data: { turbo_confirm: t("settings.providers.coinbase_panel.disconnect_confirm") }
+ ) %>
</div>
</div>
<% end %>
diff --git a/app/views/settings/providers/_coinspot_panel.html.erb b/app/views/settings/providers/_coinspot_panel.html.erb
index 661ac81511..9034958850 100644
--- a/app/views/settings/providers/_coinspot_panel.html.erb
+++ b/app/views/settings/providers/_coinspot_panel.html.erb
@@ -3,10 +3,8 @@
<%= render DS::Alert.new(
variant: :warning,
- message: safe_join([
- content_tag(:p, t("settings.providers.coinspot_panel.read_only_title"), class: "font-medium"),
- content_tag(:p, t("settings.providers.coinspot_panel.read_only_body"), class: "mt-1")
- ])
+ title: t("settings.providers.coinspot_panel.read_only_title"),
+ message: t("settings.providers.coinspot_panel.read_only_body")
) %>
<%= render "settings/providers/setup_steps",
@@ -108,10 +106,7 @@
<% coinspot_item = Current.family.coinspot_items.build(name: t("settings.providers.coinspot_panel.default_connection_name")) %>
<% if items.any? %>
- <h3 class="flex items-center gap-2 text-sm font-medium text-primary mt-4">
- <%= icon "plus", size: "sm" %>
- <%= t("settings.providers.coinspot_panel.add_connection") %>
- </h3>
+ <%= render "settings/providers/add_connection_heading", label: t("settings.providers.coinspot_panel.add_connection") %>
<% end %>
<%= styled_form_with model: coinspot_item,
diff --git a/app/views/settings/providers/_enable_banking_panel.html.erb b/app/views/settings/providers/_enable_banking_panel.html.erb
index 9b2fb23819..d2370aba05 100644
--- a/app/views/settings/providers/_enable_banking_panel.html.erb
+++ b/app/views/settings/providers/_enable_banking_panel.html.erb
@@ -1,6 +1,6 @@
<div class="space-y-4">
<%
- eb_link = link_to("Enable Banking", "https://enablebanking.com", target: "_blank", rel: "noopener noreferrer", class: "text-primary font-medium underline")
+ eb_link = link_to("Enable Banking", "https://enablebanking.com", target: "_blank", rel: "noopener noreferrer", class: "text-link underline")
%>
<%= render "settings/providers/setup_steps",
steps: [
@@ -104,7 +104,7 @@
%>
<div class="border-t border-primary pt-4 space-y-3">
<% items.each do |item| %>
- <div class="flex items-center justify-between p-3 rounded-lg bg-container border border-primary">
+ <div class="flex flex-wrap items-center justify-between gap-3 p-3 rounded-lg bg-container border border-primary">
<div class="flex items-center gap-3">
<% if item.syncing? %>
<div class="w-2 h-2 bg-inverse rounded-full animate-pulse"></div>
@@ -141,21 +141,27 @@
<% end %>
</div>
- <div class="flex items-center gap-2">
+ <div class="flex flex-wrap items-center gap-2">
<% if item.session_valid? %>
- <%= button_to sync_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-primary bg-container border border-primary hover:bg-surface-inset transition-colors",
- data: { turbo: false } do %>
- <%= t("settings.providers.enable_banking_panel.sync") %>
- <% end %>
+ <%= render DS::Button.new(
+ text: t("settings.providers.enable_banking_panel.sync"),
+ icon: "refresh-cw",
+ variant: :outline,
+ size: :sm,
+ href: sync_enable_banking_item_path(item),
+ method: :post,
+ disabled: item.syncing?,
+ data: { turbo: false }
+ ) %>
<% 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 %>
- <%= t("settings.providers.enable_banking_panel.reconnect") %>
- <% end %>
+ <%= render DS::Button.new(
+ text: t("settings.providers.enable_banking_panel.reconnect"),
+ variant: :primary,
+ size: :sm,
+ href: reauthorize_enable_banking_item_path(item),
+ method: :post,
+ data: { turbo: false }
+ ) %>
<% else %>
<%= render DS::Link.new(
text: t("settings.providers.enable_banking_panel.connect_bank"),
@@ -166,12 +172,15 @@
) %>
<% 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: t("settings.providers.enable_banking_panel.remove_confirm") } do %>
- <%= t("settings.providers.enable_banking_panel.remove") %>
- <% end %>
+ <%= render DS::Button.new(
+ text: t("settings.providers.enable_banking_panel.remove"),
+ icon: "trash-2",
+ variant: :outline_destructive,
+ size: :sm,
+ href: enable_banking_item_path(item),
+ method: :delete,
+ data: { turbo_confirm: t("settings.providers.enable_banking_panel.remove_confirm") }
+ ) %>
</div>
</div>
<% end %>
diff --git a/app/views/settings/providers/_fio_panel.html.erb b/app/views/settings/providers/_fio_panel.html.erb
index 12fcbbded1..1f92465264 100644
--- a/app/views/settings/providers/_fio_panel.html.erb
+++ b/app/views/settings/providers/_fio_panel.html.erb
@@ -3,7 +3,7 @@
<%= render "settings/providers/setup_steps",
steps: [
- t("settings.providers.fio_panel.step_1_html", link: link_to(t("providers.fio.name"), "https://ib.fio.cz", target: "_blank", rel: "noopener noreferrer", class: "text-primary font-medium underline")),
+ t("settings.providers.fio_panel.step_1_html", link: link_to(t("providers.fio.name"), "https://ib.fio.cz", target: "_blank", rel: "noopener noreferrer", class: "text-link underline")),
t("settings.providers.fio_panel.step_2"),
t("settings.providers.fio_panel.step_3")
] %>
@@ -129,10 +129,7 @@
<% fio_item = Current.family.fio_items.build(name: t("fio_items.provider_panel.default_connection_name")) %>
<% if active_items.any? %>
- <h3 class="flex items-center gap-2 text-sm font-medium text-primary mt-4">
- <%= icon "plus", size: "sm" %>
- <%= t("fio_items.provider_panel.add_connection") %>
- </h3>
+ <%= render "settings/providers/add_connection_heading", label: t("fio_items.provider_panel.add_connection") %>
<% end %>
<%= styled_form_with model: fio_item,
diff --git a/app/views/settings/providers/_ibkr_panel.html.erb b/app/views/settings/providers/_ibkr_panel.html.erb
index 3fe9424bc2..2887bb5a28 100644
--- a/app/views/settings/providers/_ibkr_panel.html.erb
+++ b/app/views/settings/providers/_ibkr_panel.html.erb
@@ -1,9 +1,4 @@
<div id="ibkr-providers-panel" class="space-y-4">
- <% error_msg = local_assigns[:error_message] || @error_message %>
- <% if error_msg.present? %>
- <%= render DS::Alert.new(message: error_msg, variant: :error) %>
- <% end %>
-
<%= render "settings/providers/setup_steps",
steps: [
t(".steps.step_1"),
@@ -13,6 +8,11 @@
t(".steps.step_5")
] %>
+ <% error_msg = local_assigns[:error_message] || @error_message %>
+ <% if error_msg.present? %>
+ <%= render DS::Alert.new(message: error_msg, variant: :error) %>
+ <% end %>
+
<%= render DS::Disclosure.new(variant: :card_inset) do |disclosure| %>
<% disclosure.with_summary_content do %>
<div class="flex items-start justify-between gap-3">
@@ -141,7 +141,7 @@
<div class="w-2 h-2 bg-success rounded-full"></div>
<p class="text-sm text-secondary">
<%= t(".status_configured_prefix", summary: ibkr_item.sync_status_summary) %>
- <%= link_to t(".accounts_tab"), accounts_path, class: "link" %>
+ <%= link_to t(".accounts_tab"), accounts_path, class: "text-link underline" %>
<%= t(".status_configured_suffix") %>
</p>
<% else %>
diff --git a/app/views/settings/providers/_kraken_panel.html.erb b/app/views/settings/providers/_kraken_panel.html.erb
index e658926416..63e89847c7 100644
--- a/app/views/settings/providers/_kraken_panel.html.erb
+++ b/app/views/settings/providers/_kraken_panel.html.erb
@@ -3,10 +3,8 @@
<%= render DS::Alert.new(
variant: :warning,
- message: safe_join([
- content_tag(:p, t("settings.providers.kraken_panel.read_only_title"), class: "font-medium"),
- content_tag(:p, t("settings.providers.kraken_panel.read_only_body"), class: "mt-1")
- ])
+ title: t("settings.providers.kraken_panel.read_only_title"),
+ message: t("settings.providers.kraken_panel.read_only_body")
) %>
<%= render "settings/providers/setup_steps",
@@ -45,13 +43,15 @@
<div class="mt-4 space-y-4">
<div class="flex flex-wrap items-center gap-2">
- <%= button_to sync_kraken_item_path(item),
- method: :post,
- class: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium text-secondary hover:text-primary border border-secondary rounded-lg hover:border-primary",
- disabled: item.syncing? do %>
- <%= icon "refresh-cw", size: "sm" %>
- <%= t("settings.providers.kraken_panel.sync") %>
- <% end %>
+ <%= render DS::Button.new(
+ text: t("settings.providers.kraken_panel.sync"),
+ icon: "refresh-cw",
+ variant: :outline,
+ size: :sm,
+ href: sync_kraken_item_path(item),
+ method: :post,
+ disabled: item.syncing?
+ ) %>
<%= render DS::Link.new(
text: t("settings.providers.kraken_panel.setup_accounts"),
@@ -61,13 +61,15 @@
frame: :modal
) %>
- <%= button_to kraken_item_path(item),
- method: :delete,
- class: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium text-destructive hover:bg-destructive/10 rounded-lg",
- data: { turbo_confirm: t("settings.providers.kraken_panel.disconnect_confirm", name: item.name) } do %>
- <%= icon "trash-2", size: "sm" %>
- <%= t("settings.providers.kraken_panel.disconnect") %>
- <% end %>
+ <%= render DS::Button.new(
+ text: t("settings.providers.kraken_panel.disconnect"),
+ icon: "trash-2",
+ variant: :outline_destructive,
+ size: :sm,
+ href: kraken_item_path(item),
+ method: :delete,
+ data: { turbo_confirm: t("settings.providers.kraken_panel.disconnect_confirm", name: item.name) }
+ ) %>
</div>
<%= styled_form_with model: item,
@@ -104,10 +106,7 @@
<% kraken_item = Current.family.kraken_items.build(name: t("settings.providers.kraken_panel.default_connection_name")) %>
<% if items.any? %>
- <h3 class="flex items-center gap-2 text-sm font-medium text-primary mt-4">
- <%= icon "plus", size: "sm" %>
- <%= t("settings.providers.kraken_panel.add_connection") %>
- </h3>
+ <%= render "settings/providers/add_connection_heading", label: t("settings.providers.kraken_panel.add_connection") %>
<% end %>
<%= styled_form_with model: kraken_item,
diff --git a/app/views/settings/providers/_lunchflow_panel.html.erb b/app/views/settings/providers/_lunchflow_panel.html.erb
index d6aef9530d..a27c7573a5 100644
--- a/app/views/settings/providers/_lunchflow_panel.html.erb
+++ b/app/views/settings/providers/_lunchflow_panel.html.erb
@@ -1,6 +1,6 @@
<div class="space-y-4">
<%
- lf_link = link_to("Lunch Flow", "https://www.lunchflow.app/?atp=BiDIYS", target: "_blank", rel: "noopener noreferrer", class: "text-primary font-medium underline")
+ lf_link = link_to("Lunch Flow", "https://www.lunchflow.app/?atp=BiDIYS", target: "_blank", rel: "noopener noreferrer", class: "text-link underline")
%>
<%= render "settings/providers/setup_steps",
steps: [
diff --git a/app/views/settings/providers/_mercury_panel.html.erb b/app/views/settings/providers/_mercury_panel.html.erb
index af5c855d84..a4170e8bd3 100644
--- a/app/views/settings/providers/_mercury_panel.html.erb
+++ b/app/views/settings/providers/_mercury_panel.html.erb
@@ -1,10 +1,9 @@
<div id="mercury-providers-panel" class="space-y-4">
<% active_items = local_assigns[:mercury_items] || @mercury_items || Current.family.mercury_items.active.ordered %>
- <% credentialed_items = active_items.select(&:credentials_configured?) %>
<%= render "settings/providers/setup_steps",
steps: [
- t("mercury_items.provider_panel.instructions.sign_in_html", link: link_to("Mercury", "https://mercury.com", target: "_blank", rel: "noopener noreferrer", class: "text-primary font-medium underline")).html_safe,
+ t("mercury_items.provider_panel.instructions.sign_in_html", link: link_to("Mercury", "https://mercury.com", target: "_blank", rel: "noopener noreferrer", class: "text-link underline")).html_safe,
t("mercury_items.provider_panel.instructions.open_tokens"),
t("mercury_items.provider_panel.instructions.create_token"),
t("mercury_items.provider_panel.instructions.whitelist_ip_html").html_safe,
@@ -34,19 +33,24 @@
<div class="mt-4 space-y-4">
<div class="flex items-center gap-2">
- <%= button_to sync_mercury_item_path(item),
- method: :post,
- class: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium text-secondary hover:text-primary border border-secondary rounded-lg hover:border-primary",
- disabled: item.syncing? do %>
- <%= icon "refresh-cw", size: "sm" %>
- <%= t("mercury_items.provider_panel.sync") %>
- <% end %>
- <%= button_to mercury_item_path(item),
- method: :delete,
- class: "inline-flex items-center gap-1 px-3 py-1.5 text-sm font-medium text-destructive hover:bg-destructive/10 rounded-lg",
- data: { turbo_confirm: t("mercury_items.provider_panel.disconnect_confirm", name: item.name) } do %>
- <%= icon "trash-2", size: "sm" %>
- <% end %>
+ <%= render DS::Button.new(
+ text: t("mercury_items.provider_panel.sync"),
+ icon: "refresh-cw",
+ variant: :outline,
+ size: :sm,
+ href: sync_mercury_item_path(item),
+ method: :post,
+ disabled: item.syncing?
+ ) %>
+ <%= render DS::Button.new(
+ text: t("mercury_items.provider_panel.disconnect"),
+ icon: "trash-2",
+ variant: :outline_destructive,
+ size: :sm,
+ href: mercury_item_path(item),
+ method: :delete,
+ data: { turbo_confirm: t("mercury_items.provider_panel.disconnect_confirm", name: item.name) }
+ ) %>
</div>
<%= styled_form_with model: item,
@@ -89,10 +93,7 @@
<% mercury_item = Current.family.mercury_items.build(name: t("mercury_items.provider_panel.default_connection_name")) %>
<% if active_items.any? %>
- <h3 class="flex items-center gap-2 text-sm font-medium text-primary mt-4">
- <%= icon "plus", size: "sm" %>
- <%= t("mercury_items.provider_panel.add_connection") %>
- </h3>
+ <%= render "settings/providers/add_connection_heading", label: t("mercury_items.provider_panel.add_connection") %>
<% end %>
<%= styled_form_with model: mercury_item,
url: mercury_items_path,
diff --git a/app/views/settings/providers/_monobank_panel.html.erb b/app/views/settings/providers/_monobank_panel.html.erb
index 54795d0ebe..df4e68179d 100644
--- a/app/views/settings/providers/_monobank_panel.html.erb
+++ b/app/views/settings/providers/_monobank_panel.html.erb
@@ -3,7 +3,7 @@
<%= render "settings/providers/setup_steps",
steps: [
- t("settings.providers.monobank_panel.step_1_html", link: link_to(t("providers.monobank.name"), "https://api.monobank.ua", target: "_blank", rel: "noopener noreferrer", class: "text-primary font-medium underline")),
+ t("settings.providers.monobank_panel.step_1_html", link: link_to(t("providers.monobank.name"), "https://api.monobank.ua", target: "_blank", rel: "noopener noreferrer", class: "text-link underline")),
t("settings.providers.monobank_panel.step_2"),
t("settings.providers.monobank_panel.step_3")
] %>
@@ -91,10 +91,7 @@
<% monobank_item = Current.family.monobank_items.build(name: t("monobank_items.provider_panel.default_connection_name")) %>
<% if active_items.any? %>
- <h3 class="flex items-center gap-2 text-sm font-medium text-primary mt-4">
- <%= icon "plus", size: "sm" %>
- <%= t("monobank_items.provider_panel.add_connection") %>
- </h3>
+ <%= render "settings/providers/add_connection_heading", label: t("monobank_items.provider_panel.add_connection") %>
<% end %>
<%= styled_form_with model: monobank_item,
diff --git a/app/views/settings/providers/_provider_form.html.erb b/app/views/settings/providers/_provider_form.html.erb
index 2c209d0723..3e8265b9e8 100644
--- a/app/views/settings/providers/_provider_form.html.erb
+++ b/app/views/settings/providers/_provider_form.html.erb
@@ -6,7 +6,7 @@
setup_steps_data =
if %w[plaid plaid_eu].include?(provider_key)
- plaid_link = link_to("Plaid Dashboard", "https://dashboard.plaid.com/team/keys", target: "_blank", rel: "noopener noreferrer", class: "text-primary font-medium underline")
+ plaid_link = link_to("Plaid Dashboard", "https://dashboard.plaid.com/team/keys", target: "_blank", rel: "noopener noreferrer", class: "text-link underline")
step_1_key = "settings.providers.#{provider_key}_panel.step_1_html"
[
t(step_1_key, link: plaid_link),
diff --git a/app/views/settings/providers/_redbark_panel.html.erb b/app/views/settings/providers/_redbark_panel.html.erb
index 1ef75d9d15..29bbadee33 100644
--- a/app/views/settings/providers/_redbark_panel.html.erb
+++ b/app/views/settings/providers/_redbark_panel.html.erb
@@ -1,23 +1,14 @@
<div id="redbark-providers-panel" class="space-y-4">
- <div class="prose prose-sm text-secondary">
- <p class="text-primary font-medium"><%= t("redbark_items.panel.setup_instructions") %></p>
- <ol>
- <li><%= t("redbark_items.panel.step_1") %></li>
- <li><%= t("redbark_items.panel.step_2") %></li>
- <li><%= t("redbark_items.panel.step_3") %></li>
- </ol>
-
- <p class="text-primary font-medium"><%= t("redbark_items.panel.field_descriptions") %></p>
- <ul>
- <li><strong><%= t("redbark_items.panel.fields.api_key.label") %>:</strong> <%= t("redbark_items.panel.fields.api_key.description") %> <%= t("redbark_items.panel.required") %></li>
- </ul>
- </div>
+ <%= render "settings/providers/setup_steps",
+ steps: [
+ t("redbark_items.panel.step_1"),
+ t("redbark_items.panel.step_2"),
+ t("redbark_items.panel.step_3")
+ ] %>
<% error_msg = local_assigns[:error_message] || @error_message %>
<% if error_msg.present? %>
- <div class="p-2 rounded-md bg-destructive/10 text-destructive text-sm overflow-hidden">
- <p class="line-clamp-3" title="<%= error_msg %>"><%= error_msg %></p>
- </div>
+ <%= render DS::Alert.new(message: error_msg, variant: :error) %>
<% end %>
<%
@@ -49,15 +40,4 @@
) %>
</div>
<% end %>
-
- <% items = local_assigns[:redbark_items] || @redbark_items || Current.family.redbark_items.where.not(api_key: [nil, ""]) %>
- <div class="flex items-center gap-2">
- <% if items&.any? %>
- <div class="w-2 h-2 bg-success rounded-full"></div>
- <p class="text-sm text-secondary"><%= t("redbark_items.panel.status_configured_html", accounts_path: accounts_path).html_safe %></p>
- <% else %>
- <div class="w-2 h-2 bg-surface-inset rounded-full"></div>
- <p class="text-sm text-secondary"><%= t("redbark_items.panel.status_not_configured") %></p>
- <% end %>
- </div>
</div>
diff --git a/app/views/settings/providers/_simplefin_panel.html.erb b/app/views/settings/providers/_simplefin_panel.html.erb
index f5125a2a11..d64fba0333 100644
--- a/app/views/settings/providers/_simplefin_panel.html.erb
+++ b/app/views/settings/providers/_simplefin_panel.html.erb
@@ -1,6 +1,6 @@
<div class="space-y-4">
<%
- sf_link = link_to("SimpleFIN Bridge", "https://beta-bridge.simplefin.org", target: "_blank", rel: "noopener noreferrer", class: "text-primary font-medium underline")
+ sf_link = link_to("SimpleFIN Bridge", "https://beta-bridge.simplefin.org", target: "_blank", rel: "noopener noreferrer", class: "text-link underline")
%>
<%= render "settings/providers/setup_steps",
steps: [
diff --git a/app/views/settings/providers/_trade_republic_panel.html.erb b/app/views/settings/providers/_trade_republic_panel.html.erb
index 407ab67001..4c4f566c55 100644
--- a/app/views/settings/providers/_trade_republic_panel.html.erb
+++ b/app/views/settings/providers/_trade_republic_panel.html.erb
@@ -1,18 +1,10 @@
<div id="trade-republic-providers-panel" class="space-y-4">
<% unless TradeRepublicItem.encryption_ready? %>
- <div class="p-3 rounded-md bg-warning/10 text-warning text-sm">
- <div class="flex items-start gap-2">
- <%= icon "shield-alert", size: "sm", class: "mt-0.5 shrink-0" %>
- <div>
- <p class="font-medium"><%= t(".encryption_warning.title") %></p>
- <p class="mt-1"><%= t(".encryption_warning.message") %></p>
- </div>
- </div>
- </div>
- <% end %>
- <% error_msg = local_assigns[:error_message] || @error_message %>
- <% if error_msg.present? %>
- <%= render DS::Alert.new(message: error_msg, variant: :error) %>
+ <%= render DS::Alert.new(
+ variant: :warning,
+ title: t(".encryption_warning.title"),
+ message: t(".encryption_warning.message")
+ ) %>
<% end %>
<%= render "settings/providers/setup_steps",
@@ -22,6 +14,11 @@
t(".steps.step_3")
] %>
+ <% error_msg = local_assigns[:error_message] || @error_message %>
+ <% if error_msg.present? %>
+ <%= render DS::Alert.new(message: error_msg, variant: :error) %>
+ <% end %>
+
<%= render TradeRepublic::AccountEditorComponent.new(
items: local_assigns[:trade_republic_items] || @trade_republic_items,
family: Current.family,
diff --git a/app/views/settings/providers/_trading212_panel.html.erb b/app/views/settings/providers/_trading212_panel.html.erb
index 0ab1877531..79e8c7098e 100644
--- a/app/views/settings/providers/_trading212_panel.html.erb
+++ b/app/views/settings/providers/_trading212_panel.html.erb
@@ -1,9 +1,4 @@
<div id="trading212-providers-panel" class="space-y-4">
- <% error_msg = local_assigns[:error_message] || @error_message %>
- <% if error_msg.present? %>
- <%= render DS::Alert.new(message: error_msg, variant: :error) %>
- <% end %>
-
<%= render "settings/providers/setup_steps",
steps: [
t(".steps.step_1"),
@@ -11,6 +6,11 @@
t(".steps.step_3")
] %>
+ <% error_msg = local_assigns[:error_message] || @error_message %>
+ <% if error_msg.present? %>
+ <%= render DS::Alert.new(message: error_msg, variant: :error) %>
+ <% end %>
+
<%= render Trading212::AccountEditorComponent.new(
items: local_assigns[:trading212_items] || @trading212_items,
family: Current.family
diff --git a/app/views/settings/providers/_up_panel.html.erb b/app/views/settings/providers/_up_panel.html.erb
index da37258135..d0c03a0b79 100644
--- a/app/views/settings/providers/_up_panel.html.erb
+++ b/app/views/settings/providers/_up_panel.html.erb
@@ -3,7 +3,7 @@
<%= render "settings/providers/setup_steps",
steps: [
- t("settings.providers.up_panel.step_1_html", link: link_to(t("providers.up.name"), "https://api.up.com.au", target: "_blank", rel: "noopener noreferrer", class: "text-primary font-medium underline")),
+ t("settings.providers.up_panel.step_1_html", link: link_to(t("providers.up.name"), "https://api.up.com.au", target: "_blank", rel: "noopener noreferrer", class: "text-link underline")),
t("settings.providers.up_panel.step_2"),
t("settings.providers.up_panel.step_3")
] %>
@@ -89,10 +89,7 @@
<% up_item = Current.family.up_items.build(name: t("up_items.provider_panel.default_connection_name")) %>
<% if active_items.any? %>
- <h3 class="flex items-center gap-2 text-sm font-medium text-primary mt-4">
- <%= icon "plus", size: "sm" %>
- <%= t("up_items.provider_panel.add_connection") %>
- </h3>
+ <%= render "settings/providers/add_connection_heading", label: t("up_items.provider_panel.add_connection") %>
<% end %>
<%= styled_form_with model: up_item,
diff --git a/app/views/settings/providers/_wise_panel.html.erb b/app/views/settings/providers/_wise_panel.html.erb
index 148b803f28..69bcc2a18e 100644
--- a/app/views/settings/providers/_wise_panel.html.erb
+++ b/app/views/settings/providers/_wise_panel.html.erb
@@ -1,21 +1,17 @@
<div id="wise-providers-panel" class="space-y-4">
<% active_items = local_assigns[:wise_items] || @wise_items || Current.family.wise_items.active.ordered %>
- <div class="prose prose-sm text-secondary">
- <p class="text-primary font-medium"><%= t("wise_items.provider_panel.setup_title") %></p>
- <ol>
- <li><%= t("wise_items.provider_panel.instructions.sign_in_html", link: link_to("Wise", "https://wise.com", target: "_blank", rel: "noopener noreferrer", class: "link")).html_safe %></li>
- <li><%= t("wise_items.provider_panel.instructions.open_tokens") %></li>
- <li><%= t("wise_items.provider_panel.instructions.create_token") %></li>
- <li><%= t("wise_items.provider_panel.instructions.copy_token_html").html_safe %></li>
- </ol>
- </div>
+ <%= render "settings/providers/setup_steps",
+ steps: [
+ t("wise_items.provider_panel.instructions.sign_in_html", link: link_to("Wise", "https://wise.com", target: "_blank", rel: "noopener noreferrer", class: "text-link underline")),
+ t("wise_items.provider_panel.instructions.open_tokens"),
+ t("wise_items.provider_panel.instructions.create_token"),
+ t("wise_items.provider_panel.instructions.copy_token_html")
+ ] %>
<% error_msg = local_assigns[:error_message] || @error_message %>
<% if error_msg.present? %>
- <div class="p-2 rounded-md bg-destructive/10 text-destructive text-sm overflow-hidden">
- <p class="line-clamp-3" title="<%= error_msg %>"><%= error_msg %></p>
- </div>
+ <%= render DS::Alert.new(message: error_msg, variant: :error) %>
<% end %>
<% if active_items.any? %>
@@ -128,48 +124,33 @@
</div>
<% end %>
- <%= render DS::Disclosure.new(variant: :card, open: active_items.none?) do |disclosure| %>
- <% disclosure.with_summary_content do %>
- <div class="flex items-center gap-2 text-sm font-medium text-primary">
- <%= icon "plus" %>
- <%= t("wise_items.provider_panel.add_connection") %>
- </div>
- <% end %>
-
- <%= styled_form_with url: wise_items_path,
- scope: :wise_item,
- method: :post,
- data: { turbo: true },
- class: "space-y-3 mt-4" do |form| %>
- <%= form.text_field :token,
- label: t("wise_items.provider_panel.token_label"),
- placeholder: t("wise_items.provider_panel.token_placeholder"),
- type: :password,
- value: nil %>
-
- <p class="text-xs text-secondary px-1 -mt-1"><%= t("wise_items.provider_panel.sandbox_note_html").html_safe %></p>
-
- <div class="flex items-center justify-between gap-3 py-2">
- <div class="space-y-1">
- <p class="text-sm text-primary"><%= t("wise_items.provider_panel.import_all_history_label") %></p>
- <p class="text-secondary text-sm"><%= t("wise_items.provider_panel.import_all_history_help") %></p>
- </div>
- <%= form.toggle :import_all_history %>
- </div>
+ <% if active_items.any? %>
+ <%= render "settings/providers/add_connection_heading", label: t("wise_items.provider_panel.add_connection") %>
+ <% end %>
- <div class="flex justify-end">
- <%= form.submit t("wise_items.provider_panel.connect") %>
+ <%= styled_form_with url: wise_items_path,
+ scope: :wise_item,
+ method: :post,
+ data: { turbo: true },
+ class: "space-y-3" do |form| %>
+ <%= form.text_field :token,
+ label: t("wise_items.provider_panel.token_label"),
+ placeholder: t("wise_items.provider_panel.token_placeholder"),
+ type: :password,
+ value: nil %>
+
+ <p class="text-xs text-secondary px-1 -mt-1"><%= t("wise_items.provider_panel.sandbox_note_html").html_safe %></p>
+
+ <div class="flex items-center justify-between gap-3 py-2">
+ <div class="space-y-1">
+ <p class="text-sm text-primary"><%= t("wise_items.provider_panel.import_all_history_label") %></p>
+ <p class="text-secondary text-sm"><%= t("wise_items.provider_panel.import_all_history_help") %></p>
</div>
- <% end %>
- <% end %>
+ <%= form.toggle :import_all_history %>
+ </div>
- <div class="flex items-center gap-2">
- <% if active_items.any? %>
- <div class="w-2 h-2 bg-success rounded-full"></div>
- <p class="text-sm text-secondary"><%= t("wise_items.provider_panel.configured_html", accounts_link: link_to(t("wise_items.provider_panel.accounts_link"), accounts_path, class: "link")).html_safe %></p>
- <% else %>
- <div class="w-2 h-2 bg-surface-inset rounded-full"></div>
- <p class="text-sm text-secondary"><%= t("wise_items.provider_panel.not_configured") %></p>
- <% end %>
- </div>
+ <div class="flex justify-end">
+ <%= form.submit t("wise_items.provider_panel.connect") %>
+ </div>
+ <% end %>
</div>
diff --git a/config/locales/views/brex_items/ca.yml b/config/locales/views/brex_items/ca.yml
index 50ba89770b..02e877b8bf 100644
--- a/config/locales/views/brex_items/ca.yml
+++ b/config/locales/views/brex_items/ca.yml
@@ -114,15 +114,13 @@ ca:
description: Connecta amb %{name}
name: Brex - %{name}
provider_panel:
- accounts_link: Comptes
add_connection: Afegeix connexió Brex
base_url_label: URL base (opcional)
base_url_placeholder: https://api.brex.com
- configured_html: Configurat i a punt per utilitzar. Visita la pestanya %{accounts_link}
- per gestionar i configurar comptes.
connection_name_label: Nom de la connexió
connection_name_placeholder: Compte corrent d'empresa
default_connection_name: Connexió Brex
+ disconnect: Desconnecta
disconnect_confirm: Vols desconnectar %{name}?
disconnect_label: Desconnecta %{name}
encryption_warning:
@@ -140,13 +138,11 @@ ca:
a l'empresa que vols connectar
sign_in_html: Visita %{link} i inicia sessió al compte que vols connectar
keep_token_placeholder: Deixa-ho en blanc per mantenir el token actual
- not_configured: No configurat
sandbox_note_html: Utilitza una connexió amb nom separada per a cada empresa/token
API de Brex que vulguis sincronitzar. Deixa l'URL base en blanc per a producció.
El staging està limitat a les proves aprovades per Brex i no funciona amb tokens
de clients.
setup_accounts: Configura comptes
- setup_title: 'Instruccions de configuració:'
sync: Sincronitza
token_label: Token
token_placeholder: Enganxa el token aquí
diff --git a/config/locales/views/brex_items/de.yml b/config/locales/views/brex_items/de.yml
index 05f0f8a3be..6f625042de 100644
--- a/config/locales/views/brex_items/de.yml
+++ b/config/locales/views/brex_items/de.yml
@@ -100,6 +100,7 @@ de:
connection_name_label: Verbindungsname
connection_name_placeholder: Geschäftskonto
default_connection_name: Brex-Verbindung
+ disconnect: Trennen
disconnect_label: "%{name} trennen"
disconnect_confirm: "%{name} trennen?"
encryption_warning:
diff --git a/config/locales/views/brex_items/en.yml b/config/locales/views/brex_items/en.yml
index d090cb6dda..d99bd3067f 100644
--- a/config/locales/views/brex_items/en.yml
+++ b/config/locales/views/brex_items/en.yml
@@ -92,14 +92,13 @@ en:
total: Total
unlinked: Unlinked
provider_panel:
- accounts_link: Accounts
add_connection: Add Brex connection
base_url_label: Base URL (optional)
base_url_placeholder: https://api.brex.com
- configured_html: "Configured and ready to use. Visit the %{accounts_link} tab to manage and set up accounts."
connection_name_label: Connection name
connection_name_placeholder: Business checking
default_connection_name: Brex Connection
+ disconnect: Disconnect
disconnect_label: "Disconnect %{name}"
disconnect_confirm: "Disconnect %{name}?"
encryption_warning:
@@ -111,10 +110,8 @@ en:
open_tokens: Go to the Brex developer/API token settings for the company you want to connect
sign_in_html: "Visit %{link} and log in to the account you want to connect"
keep_token_placeholder: Leave blank to keep the current token
- not_configured: Not configured
sandbox_note_html: "Use a separate named connection for each Brex company/API token you want to sync. Leave Base URL blank for production. Staging is limited to Brex-approved testing and does not work with customer tokens."
setup_accounts: Set up accounts
- setup_title: "Setup instructions:"
sync: Sync
token_label: Token
token_placeholder: Paste token here
diff --git a/config/locales/views/brex_items/es.yml b/config/locales/views/brex_items/es.yml
index f2f3949a2f..0d3cad3ebb 100644
--- a/config/locales/views/brex_items/es.yml
+++ b/config/locales/views/brex_items/es.yml
@@ -92,14 +92,13 @@ es:
total: Total
unlinked: Sin vincular
provider_panel:
- accounts_link: Cuentas
add_connection: Añadir conexión de Brex
base_url_label: URL base (opcional)
base_url_placeholder: https://api.brex.com
- configured_html: "Configurado y listo para usar. Visita la pestaña %{accounts_link} para gestionar y configurar las cuentas."
connection_name_label: Nombre de la conexión
connection_name_placeholder: Cuenta corriente de empresa
default_connection_name: Conexión de Brex
+ disconnect: Desconectar
disconnect_label: "Desconectar %{name}"
disconnect_confirm: "¿Desconectar %{name}?"
encryption_warning:
@@ -111,10 +110,8 @@ es:
open_tokens: Ve a los ajustes de tokens de desarrollador/API de Brex de la empresa que quieres conectar
sign_in_html: "Visita %{link} e inicia sesión en la cuenta que quieres conectar"
keep_token_placeholder: Déjalo en blanco para conservar el token actual
- not_configured: No configurado
sandbox_note_html: "Usa una conexión con nombre distinta para cada empresa/token de API de Brex que quieras sincronizar. Deja la URL base en blanco para producción. El entorno de staging está limitado a pruebas aprobadas por Brex y no funciona con tokens de clientes."
setup_accounts: Configurar cuentas
- setup_title: "Instrucciones de configuración:"
sync: Sincronizar
token_label: Token
token_placeholder: Pega el token aquí
diff --git a/config/locales/views/brex_items/fr.yml b/config/locales/views/brex_items/fr.yml
index 65f9b4c885..57882c5d01 100644
--- a/config/locales/views/brex_items/fr.yml
+++ b/config/locales/views/brex_items/fr.yml
@@ -114,15 +114,13 @@ fr:
description: Connectez-vous en utilisant %{name}
name: Brex-%{name}
provider_panel:
- accounts_link: Comptes
add_connection: Ajouter une connexion Brex
base_url_label: URL de base (facultatif)
base_url_placeholder: https://api.brex.com
- configured_html: Configuré et prêt à l'emploi. Visitez l'onglet %{accounts_link}
- pour gérer et configurer des comptes.
connection_name_label: Nom de la connexion
connection_name_placeholder: Vérification commerciale
default_connection_name: Connexion Brex
+ disconnect: Déconnecter
disconnect_confirm: Déconnecter %{name} ?
disconnect_label: Déconnecter %{name}
encryption_warning:
@@ -142,13 +140,11 @@ fr:
sign_in_html: Visitez %{link} et connectez-vous au compte que vous souhaitez
connecter
keep_token_placeholder: Laisser vide pour conserver le jeton actuel
- not_configured: Non configuré
sandbox_note_html: Utilisez une connexion nommée distincte pour chaque jeton
d'entreprise/API Brex que vous souhaitez synchroniser. Laissez l’URL de base
vide pour la production. La mise en scène est limitée aux tests approuvés
par le Brex et ne fonctionne pas avec les jetons client.
setup_accounts: Configurer des comptes
- setup_title: 'Instructions de configuration :'
sync: Synchroniser
token_label: Jeton
token_placeholder: Collez le jeton ici
diff --git a/config/locales/views/brex_items/hu.yml b/config/locales/views/brex_items/hu.yml
index 6d182321a2..e901147c76 100644
--- a/config/locales/views/brex_items/hu.yml
+++ b/config/locales/views/brex_items/hu.yml
@@ -92,14 +92,13 @@ hu:
total: Összesen
unlinked: Nincs összekapcsolva
provider_panel:
- accounts_link: Számlák
add_connection: Brex kapcsolat hozzáadása
base_url_label: Alap URL (opcionális)
base_url_placeholder: https://api.brex.com
- configured_html: "Konfigurálva és használatra kész. Látogass el a %{accounts_link} fülre a számlák kezeléséhez és beállításához."
connection_name_label: Kapcsolat neve
connection_name_placeholder: Üzleti folyószámla
default_connection_name: Brex kapcsolat
+ disconnect: Lecsatlakozás
disconnect_label: "%{name} szétkapcsolása"
disconnect_confirm: "%{name} szétkapcsolása?"
encryption_warning:
@@ -111,10 +110,8 @@ hu:
open_tokens: Menj a csatlakoztatni kívánt vállalat Brex fejlesztői/API-token beállításaiba
sign_in_html: "Látogass el ide: %{link}, és lépj be a csatlakoztatni kívánt fiókba"
keep_token_placeholder: Hagyd üresen az aktuális token megtartásához
- not_configured: Nincs beállítva
sandbox_note_html: "Minden szinkronizálni kívánt Brex vállalathoz/API-tokenhez használj külön megnevezett kapcsolatot. Az Alap URL-t hagyd üresen az éles környezethez. A tesztkörnyezet csak a Brex által jóváhagyott tesztelésre korlátozódik, és nem működik ügyfél tokenekkel."
setup_accounts: Számlák beállítása
- setup_title: "Beállítási utasítások:"
sync: Szinkronizálás
token_label: Token
token_placeholder: Illeszt be tokent ide
diff --git a/config/locales/views/brex_items/it.yml b/config/locales/views/brex_items/it.yml
index 414869823a..8b30d4b173 100644
--- a/config/locales/views/brex_items/it.yml
+++ b/config/locales/views/brex_items/it.yml
@@ -92,14 +92,13 @@ it:
total: Totale
unlinked: Non collegati
provider_panel:
- accounts_link: Conti
add_connection: Aggiungi connessione Brex
base_url_label: URL base (facoltativo)
base_url_placeholder: https://api.brex.com
connection_name_label: Nome connessione
connection_name_placeholder: Conto aziendale
- configured_html: "Configurato e pronto all'uso. Visita la scheda %{accounts_link} per gestire e configurare i conti."
default_connection_name: Connessione Brex
+ disconnect: Disconnetti
disconnect_label: "Disconnetti %{name}"
disconnect_confirm: "Disconnettere %{name}?"
encryption_warning:
@@ -111,10 +110,8 @@ it:
open_tokens: Vai alle impostazioni sviluppatore/token API Brex per l'azienda che vuoi connettere
sign_in_html: "Visita %{link} e accedi all'account che vuoi connettere"
keep_token_placeholder: Lascia vuoto per mantenere il token attuale
- not_configured: Non configurato
sandbox_note_html: "Usa una connessione nominata separata per ogni azienda/token API Brex che vuoi sincronizzare. Lascia l'URL base vuoto per la produzione. L'ambiente staging è limitato ai test approvati da Brex."
setup_accounts: Configura conti
- setup_title: "Istruzioni di configurazione:"
sync: Sincronizza
token_label: Token
token_placeholder: Incolla il token qui
diff --git a/config/locales/views/brex_items/nl.yml b/config/locales/views/brex_items/nl.yml
index 081147174c..81bb51c0ba 100644
--- a/config/locales/views/brex_items/nl.yml
+++ b/config/locales/views/brex_items/nl.yml
@@ -92,11 +92,9 @@ nl:
total: Totaal
unlinked: Niet gekoppeld
provider_panel:
- accounts_link: Accounts
add_connection: Brex-verbinding toevoegen
base_url_label: Basis-URL (optioneel)
base_url_placeholder: https://api.brex.com
- configured_html: "Geconfigureerd en klaar voor gebruik. Ga naar het tabblad %{accounts_link} om accounts te beheren en in te stellen."
connection_name_label: Verbindingsnaam
connection_name_placeholder: Zakelijke betaalrekening
default_connection_name: Brex-verbinding
@@ -111,10 +109,8 @@ nl:
open_tokens: Ga naar de Brex-instellingen voor ontwikkelaars-/API-tokens voor het bedrijf dat u wilt verbinden
sign_in_html: "Ga naar %{link} en log in op het account dat u wilt verbinden"
keep_token_placeholder: Laat leeg om het huidige token te behouden
- not_configured: Niet geconfigureerd
sandbox_note_html: "Gebruik een aparte benoemde verbinding voor elk Brex-bedrijf/API-token dat u wilt synchroniseren. Laat de Basis-URL leeg voor productie. Staging is beperkt tot door Brex goedgekeurde tests en werkt niet met klanttokens."
setup_accounts: Accounts instellen
- setup_title: "Installatie-instructies:"
sync: Synchroniseren
token_label: Token
token_placeholder: Plak het token hier
diff --git a/config/locales/views/brex_items/pl.yml b/config/locales/views/brex_items/pl.yml
index 5b70c6c889..b05e50acfe 100644
--- a/config/locales/views/brex_items/pl.yml
+++ b/config/locales/views/brex_items/pl.yml
@@ -126,15 +126,13 @@ pl:
description: Połącz przez %{name}
name: Brex - %{name}
provider_panel:
- accounts_link: Konta
add_connection: Dodaj połączenie Brex
base_url_label: Bazowy URL (opcjonalnie)
base_url_placeholder: https://api.brex.com
- configured_html: Skonfigurowane i gotowe do użycia. Przejdź do zakładki %{accounts_link},
- aby zarządzać kontami.
connection_name_label: Nazwa połączenia
connection_name_placeholder: Firmowe konto
default_connection_name: Połączenie Brex
+ disconnect: Rozłącz
disconnect_confirm: Rozłączyć %{name}?
disconnect_label: Rozłącz %{name}
encryption_warning:
@@ -152,12 +150,10 @@ pl:
połączyć
sign_in_html: Odwiedź %{link} i zaloguj się na konto, które chcesz połączyć
keep_token_placeholder: Pozostaw puste, aby zachować bieżący token
- not_configured: Nieskonfigurowane
sandbox_note_html: Użyj osobnego nazwanego połączenia dla każdej firmy/tokenu
API Brex. Pozostaw bazowy URL pusty dla produkcji. Staging jest ograniczony
do zatwierdzonych testów Brex.
setup_accounts: Konfiguruj konta
- setup_title: 'Instrukcje konfiguracji:'
sync: Synchronizuj
token_label: Token
token_placeholder: Wklej token tutaj
diff --git a/config/locales/views/brex_items/pt-BR.yml b/config/locales/views/brex_items/pt-BR.yml
index ae1df3e8ee..77472c4708 100644
--- a/config/locales/views/brex_items/pt-BR.yml
+++ b/config/locales/views/brex_items/pt-BR.yml
@@ -92,11 +92,9 @@ pt-BR:
total: Total
unlinked: Não vinculada
provider_panel:
- accounts_link: Contas
add_connection: Adicionar conexão da Brex
base_url_label: URL base (opcional)
base_url_placeholder: https://api.brex.com
- configured_html: "Configurado e pronto para uso. Acesse a aba %{accounts_link} para gerenciar e configurar contas."
connection_name_label: Nome da conexão
connection_name_placeholder: Conta corrente empresarial
default_connection_name: Conexão da Brex
@@ -111,10 +109,8 @@ pt-BR:
open_tokens: Acesse as configurações de tokens de desenvolvedor/API da Brex da empresa que você quer conectar
sign_in_html: "Acesse %{link} e faça login na conta que você quer conectar"
keep_token_placeholder: Deixe em branco para manter o token atual
- not_configured: Não configurado
sandbox_note_html: "Use uma conexão nomeada separada para cada empresa/token de API da Brex que você quer sincronizar. Deixe a URL base em branco para produção. O ambiente de staging é limitado a testes aprovados pela Brex e não funciona com tokens de clientes."
setup_accounts: Configurar contas
- setup_title: "Instruções de configuração:"
sync: Sincronizar
token_label: Token
token_placeholder: Cole o token aqui
diff --git a/config/locales/views/brex_items/pt-PT.yml b/config/locales/views/brex_items/pt-PT.yml
index 7d6967e2ba..46e3f8f6fc 100644
--- a/config/locales/views/brex_items/pt-PT.yml
+++ b/config/locales/views/brex_items/pt-PT.yml
@@ -92,14 +92,13 @@ pt-PT:
total: Total
unlinked: Não ligada
provider_panel:
- accounts_link: Contas
add_connection: Adicionar ligação da Brex
base_url_label: URL base (opcional)
base_url_placeholder: https://api.brex.com
- configured_html: "Configurado e pronto a usar. Aceda ao separador %{accounts_link} para gerir e configurar contas."
connection_name_label: Nome da ligação
connection_name_placeholder: Conta à ordem empresarial
default_connection_name: Ligação da Brex
+ disconnect: Desligar
disconnect_label: "Desligar %{name}"
disconnect_confirm: "Desligar %{name}?"
encryption_warning:
@@ -111,10 +110,8 @@ pt-PT:
open_tokens: Aceda às definições de tokens de programador/API da Brex da empresa que pretende ligar
sign_in_html: "Visite %{link} e inicie sessão na conta que pretende ligar"
keep_token_placeholder: Deixe em branco para manter o token atual
- not_configured: Não configurado
sandbox_note_html: "Utilize uma ligação nomeada separada para cada empresa/token de API da Brex que pretende sincronizar. Deixe o URL base em branco para produção. O ambiente de staging está limitado a testes aprovados pela Brex e não funciona com tokens de clientes."
setup_accounts: Configurar contas
- setup_title: "Instruções de configuração:"
sync: Sincronizar
token_label: Token
token_placeholder: Cole o token aqui
diff --git a/config/locales/views/brex_items/ru.yml b/config/locales/views/brex_items/ru.yml
index 75f941755b..208fe93166 100644
--- a/config/locales/views/brex_items/ru.yml
+++ b/config/locales/views/brex_items/ru.yml
@@ -124,15 +124,13 @@ ru:
description: Подключитесь, используя %{name}
name: Brex - %{name}
provider_panel:
- accounts_link: Счета
add_connection: Добавить подключение Brex
base_url_label: Базовый URL (необязательно)
base_url_placeholder: https://api.brex.com
- configured_html: Настроено и готово к использованию. Посетите вкладку %{accounts_link}
- для управления и настройки счетов.
connection_name_label: Имя подключения
connection_name_placeholder: Бизнес-счёт
default_connection_name: Подключение Brex
+ disconnect: Отключить
disconnect_confirm: Отключить %{name}?
disconnect_label: Отключить %{name}
encryption_warning:
@@ -149,13 +147,11 @@ ru:
которую хотите подключить
sign_in_html: Посетите %{link} и войдите в аккаунт, который хотите подключить
keep_token_placeholder: Оставьте пустым, чтобы сохранить текущий токен
- not_configured: Не настроено
sandbox_note_html: Используйте отдельное именованное подключение для каждой
компании Brex/API токена, который вы хотите синхронизировать. Оставьте базовый
URL пустым для продакшн. Стадия ограничена тестированием, одобренным Brex,
и не работает с клиентскими токенами.
setup_accounts: Настроить счета
- setup_title: 'Инструкции по настройке:'
sync: Синхронизировать
token_label: Токен
token_placeholder: Вставьте токен здесь
diff --git a/config/locales/views/brex_items/tr.yml b/config/locales/views/brex_items/tr.yml
index c8fa51a2a6..80352739a5 100644
--- a/config/locales/views/brex_items/tr.yml
+++ b/config/locales/views/brex_items/tr.yml
@@ -110,15 +110,13 @@ tr:
description: "%{name} kullanarak bağlanın"
name: Brex - %{name}
provider_panel:
- accounts_link: Hesaplar
add_connection: Brex bağlantısı ekle
base_url_label: Temel URL (isteğe bağlı)
base_url_placeholder: https://api.brex.com
- configured_html: Yapılandırıldı ve kullanıma hazır. Hesapları yönetmek ve kurmak
- için %{accounts_link} sekmesini ziyaret edin.
connection_name_label: Bağlantı adı
connection_name_placeholder: İşletme vadesiz hesabı
default_connection_name: Brex Bağlantısı
+ disconnect: Bağlantıyı kes
disconnect_confirm: "%{name} bağlantısı kesilsin mi?"
disconnect_label: "%{name} bağlantısını kes"
encryption_warning:
@@ -139,13 +137,11 @@ tr:
sign_in_html: "%{link} adresini ziyaret edin ve bağlanmak istediğiniz hesapla
oturum açın"
keep_token_placeholder: Mevcut anahtarı korumak için boş bırakın
- not_configured: Yapılandırılmadı
sandbox_note_html: Senkronize etmek istediğiniz her Brex şirket/API anahtarı
için ayrı bir adlandırılmış bağlantı kullanın. Üretim için Temel URL'yi boş
bırakın. Hazırlık ortamı yalnızca Brex onaylı testlerle sınırlıdır ve müşteri
anahtarlarıyla çalışmaz.
setup_accounts: Hesapları kur
- setup_title: 'Kurulum talimatları:'
sync: Senkronize et
token_label: Anahtar
token_placeholder: Anahtarı buraya yapıştırın
diff --git a/config/locales/views/brex_items/uk.yml b/config/locales/views/brex_items/uk.yml
index 9412c2a644..12673af03f 100644
--- a/config/locales/views/brex_items/uk.yml
+++ b/config/locales/views/brex_items/uk.yml
@@ -102,14 +102,13 @@ uk:
total: "Всього"
unlinked: "Неприв'язано"
provider_panel:
- accounts_link: "Рахунки"
add_connection: "Додати підключення Brex"
base_url_label: "Базова URL-адреса (необов'язково)"
base_url_placeholder: "https://api.brex.com"
- configured_html: "Налаштовано та готово до використання. Перейдіть на вкладку %{accounts_link}, щоб керувати та налаштовувати рахунки."
connection_name_label: "Назва підключення"
connection_name_placeholder: "Бізнес-рахунок"
default_connection_name: "Підключення Brex"
+ disconnect: Відключити
disconnect_label: "Від'єднати %{name}"
disconnect_confirm: "Від'єднати %{name}?"
encryption_warning:
@@ -121,10 +120,8 @@ uk:
open_tokens: "Перейдіть до налаштувань токенів розробника/API Brex для компанії, яку ви хочете підключити"
sign_in_html: "Перейдіть на %{link} та увійдіть до облікового запису, який ви хочете підключити"
keep_token_placeholder: "Залиште порожнім, щоб зберегти поточний токен"
- not_configured: "Не налаштовано"
sandbox_note_html: "Використовуйте окреме іменоване підключення для кожної компанії/токену API Brex, яку ви хочете синхронізувати. Залиште базову URL-адресу порожньою для виробництва. Тестове середовище обмежене тестуванням, схваленим Brex, і не працює з токенами клієнтів."
setup_accounts: "Налаштувати рахунки"
- setup_title: "Інструкції з налаштування:"
sync: "Синхронізувати"
token_label: "Токен"
token_placeholder: "Вставте токен тут"
diff --git a/config/locales/views/brex_items/vi.yml b/config/locales/views/brex_items/vi.yml
index 5e44d02ec5..cd26e6ca63 100644
--- a/config/locales/views/brex_items/vi.yml
+++ b/config/locales/views/brex_items/vi.yml
@@ -92,14 +92,13 @@ vi:
total: Tổng cộng
unlinked: Chưa liên kết
provider_panel:
- accounts_link: Tài khoản
add_connection: Thêm kết nối Brex
base_url_label: URL cơ sở (tùy chọn)
base_url_placeholder: https://api.brex.com
- configured_html: "Đã cấu hình và sẵn sàng sử dụng. Truy cập tab %{accounts_link} để quản lý và thiết lập tài khoản."
connection_name_label: Tên kết nối
connection_name_placeholder: Tài khoản kinh doanh
default_connection_name: Kết nối Brex
+ disconnect: Ngắt kết nối
disconnect_label: "Ngắt kết nối %{name}"
disconnect_confirm: "Ngắt kết nối %{name}?"
encryption_warning:
@@ -111,10 +110,8 @@ vi:
open_tokens: Đi đến cài đặt nhà phát triển/mã thông báo API Brex cho công ty bạn muốn kết nối
sign_in_html: "Truy cập %{link} và đăng nhập vào tài khoản bạn muốn kết nối"
keep_token_placeholder: Để trống để giữ mã thông báo hiện tại
- not_configured: Chưa được cấu hình
sandbox_note_html: "Sử dụng kết nối có tên riêng cho mỗi công ty Brex/mã thông báo API bạn muốn đồng bộ. Để trống URL cơ sở cho môi trường sản xuất. Môi trường staging chỉ dành cho kiểm thử được Brex phê duyệt và không hoạt động với mã thông báo khách hàng."
setup_accounts: Thiết lập tài khoản
- setup_title: "Hướng dẫn thiết lập:"
sync: Đồng bộ
token_label: Mã thông báo
token_placeholder: Dán mã thông báo vào đây
diff --git a/config/locales/views/brex_items/zh-CN.yml b/config/locales/views/brex_items/zh-CN.yml
index 7cd3752aa9..265b75a234 100644
--- a/config/locales/views/brex_items/zh-CN.yml
+++ b/config/locales/views/brex_items/zh-CN.yml
@@ -92,14 +92,13 @@ zh-CN:
total: 总计
unlinked: 未关联
provider_panel:
- accounts_link: 账户
add_connection: 添加 Brex 连接
base_url_label: Base URL(可选)
base_url_placeholder: https://api.brex.com
- configured_html: "已配置并可使用。请访问 %{accounts_link} 标签页管理并设置账户。"
connection_name_label: 连接名称
connection_name_placeholder: 企业支票账户
default_connection_name: Brex 连接
+ disconnect: 断开连接
disconnect_label: "断开 %{name}"
disconnect_confirm: "断开 %{name}?"
encryption_warning:
@@ -111,10 +110,8 @@ zh-CN:
open_tokens: 前往您要连接公司的 Brex 开发者/API token 设置
sign_in_html: "访问 %{link} 并登录您想要连接的账户"
keep_token_placeholder: 留空以保留当前 token
- not_configured: 未配置
sandbox_note_html: "为每个想同步的 Brex 公司/API token 使用一个单独的命名连接。生产环境请留空 Base URL。Staging 仅限 Brex 批准的测试,无法与客户 token 配合使用。"
setup_accounts: 设置账户
- setup_title: "设置说明:"
sync: 同步
token_label: Token
token_placeholder: 在此粘贴 token
diff --git a/config/locales/views/brex_items/zh-TW.yml b/config/locales/views/brex_items/zh-TW.yml
index edf6817bdb..ce61c926b5 100644
--- a/config/locales/views/brex_items/zh-TW.yml
+++ b/config/locales/views/brex_items/zh-TW.yml
@@ -92,14 +92,13 @@ zh-TW:
total: 總計
unlinked: 未連結
provider_panel:
- accounts_link: 帳戶管理
add_connection: 新增 Brex 連線
base_url_label: Base URL(選填)
base_url_placeholder: https://api.brex.com
- configured_html: 已設定完成,可以開始使用。請前往 %{accounts_link} 分頁管理並設定帳戶。
connection_name_label: 連線名稱
connection_name_placeholder: 公司支票帳戶
default_connection_name: Brex 連線
+ disconnect: 中斷連線
disconnect_label: 中斷 %{name}
disconnect_confirm: 確定要中斷 %{name} 嗎?
encryption_warning:
@@ -111,10 +110,8 @@ zh-TW:
open_tokens: 前往您想連結的那家公司的 Brex 開發者/API Token 設定
sign_in_html: 前往 %{link} 並登入您想連結的帳號
keep_token_placeholder: 留白以保留目前的 Token
- not_configured: 未設定
sandbox_note_html: 每一組您想同步的 Brex 公司/API Token,都請使用各自獨立的具名連線。正式環境請把 Base URL 留白。Staging 環境僅限 Brex 核可的測試使用,無法搭配客戶的 Token。
setup_accounts: 設定帳戶
- setup_title: 設定說明:
sync: 同步
token_label: 權杖 (Token)
token_placeholder: 在此貼上 Token
diff --git a/config/locales/views/mercury_items/ca.yml b/config/locales/views/mercury_items/ca.yml
index 6f79365c91..3a71884848 100644
--- a/config/locales/views/mercury_items/ca.yml
+++ b/config/locales/views/mercury_items/ca.yml
@@ -94,6 +94,7 @@ ca:
connection_name_label: Nom de la connexió
connection_name_placeholder: Compte corrent d'empresa
default_connection_name: Connexió Mercury
+ disconnect: Desconnecta
disconnect_confirm: Vols desconnectar %{name}?
instructions:
copy_token_html: Copia el <strong>token sencer</strong> (incloent el prefix
diff --git a/config/locales/views/mercury_items/de.yml b/config/locales/views/mercury_items/de.yml
index ac3c70f7ce..db4da52587 100644
--- a/config/locales/views/mercury_items/de.yml
+++ b/config/locales/views/mercury_items/de.yml
@@ -178,6 +178,7 @@ de:
connection_name_label: Name der Verbindung
connection_name_placeholder: Geschäftskonto
default_connection_name: Mercury-Verbindung
+ disconnect: Trennen
disconnect_confirm: "%{name} trennen?"
instructions:
copy_token_html: Kopier den <strong>vollständigen Token</strong> samt Präfix <code>secret-token:</code> und füg ihn unten als benannte Verbindung hinzu
diff --git a/config/locales/views/mercury_items/en.yml b/config/locales/views/mercury_items/en.yml
index dd423be17a..fc899fe585 100644
--- a/config/locales/views/mercury_items/en.yml
+++ b/config/locales/views/mercury_items/en.yml
@@ -75,6 +75,7 @@ en:
connection_name_label: Connection name
connection_name_placeholder: Business checking
default_connection_name: Mercury Connection
+ disconnect: Disconnect
disconnect_confirm: "Disconnect %{name}?"
instructions:
copy_token_html: "Copy the <strong>full token</strong> (including the <code>secret-token:</code> prefix) and add it as a named connection below"
diff --git a/config/locales/views/mercury_items/es.yml b/config/locales/views/mercury_items/es.yml
index ea0ac510e7..85afe0a832 100644
--- a/config/locales/views/mercury_items/es.yml
+++ b/config/locales/views/mercury_items/es.yml
@@ -75,6 +75,7 @@ es:
connection_name_label: Nombre de la conexión
connection_name_placeholder: Cuenta corriente de empresa
default_connection_name: Conexión Mercury
+ disconnect: Desconectar
disconnect_confirm: ¿Desconectar %{name}?
instructions:
copy_token_html: Copia el <strong>token completo</strong> (incluido el prefijo <code>secret-token:</code>) y añádelo abajo como una conexión con nombre
diff --git a/config/locales/views/mercury_items/fr.yml b/config/locales/views/mercury_items/fr.yml
index dc0f98e699..ec95693c85 100644
--- a/config/locales/views/mercury_items/fr.yml
+++ b/config/locales/views/mercury_items/fr.yml
@@ -93,6 +93,7 @@ fr:
connection_name_label: Nom de la connexion
connection_name_placeholder: Vérification commerciale
default_connection_name: Connexion Mercury
+ disconnect: Déconnecter
disconnect_confirm: Déconnecter %{name} ?
instructions:
copy_token_html: Copiez le <strong>jeton complet</strong> (y compris le préfixe
diff --git a/config/locales/views/mercury_items/hu.yml b/config/locales/views/mercury_items/hu.yml
index 011e8a4d73..9e81a69d73 100644
--- a/config/locales/views/mercury_items/hu.yml
+++ b/config/locales/views/mercury_items/hu.yml
@@ -75,6 +75,7 @@ hu:
connection_name_label: Kapcsolat neve
connection_name_placeholder: Üzleti folyószámla
default_connection_name: Mercury kapcsolat
+ disconnect: Lecsatlakozás
disconnect_confirm: "%{name} lecsatlakoztatása?"
instructions:
copy_token_html: "Másold ki a <strong>teljes tokent</strong> (beleértve a <code>secret-token:</code> előtagot), és add hozzá alább elnevezett kapcsolatként"
diff --git a/config/locales/views/mercury_items/it.yml b/config/locales/views/mercury_items/it.yml
index 3a54dfb466..76eb59ed67 100644
--- a/config/locales/views/mercury_items/it.yml
+++ b/config/locales/views/mercury_items/it.yml
@@ -75,6 +75,7 @@ it:
connection_name_label: Nome connessione
connection_name_placeholder: Conto aziendale
default_connection_name: Connessione Mercury
+ disconnect: Disconnetti
disconnect_confirm: "Disconnettere %{name}?"
instructions:
copy_token_html: "Copia il <strong>token completo</strong> (incluso il prefisso <code>secret-token:</code>) e aggiungilo come connessione nominata qui sotto"
diff --git a/config/locales/views/mercury_items/pl.yml b/config/locales/views/mercury_items/pl.yml
index 8aae89d9cd..5efe096873 100644
--- a/config/locales/views/mercury_items/pl.yml
+++ b/config/locales/views/mercury_items/pl.yml
@@ -103,6 +103,7 @@ pl:
connection_name_label: Nazwa połączenia
connection_name_placeholder: Konto firmowe
default_connection_name: Połączenie Mercury
+ disconnect: Rozłącz
disconnect_confirm: Odłączyć %{name}?
instructions:
copy_token_html: Skopiuj <strong>pełny token</strong> (razem z przedrostkiem
diff --git a/config/locales/views/mercury_items/pt-PT.yml b/config/locales/views/mercury_items/pt-PT.yml
index d89f9aabb5..a3cea886ac 100644
--- a/config/locales/views/mercury_items/pt-PT.yml
+++ b/config/locales/views/mercury_items/pt-PT.yml
@@ -75,6 +75,7 @@ pt-PT:
connection_name_label: Nome da ligação
connection_name_placeholder: Conta corrente empresarial
default_connection_name: Ligação Mercury
+ disconnect: Desligar
disconnect_confirm: "Desassociar %{name}?"
instructions:
copy_token_html: "Copie o <strong>token completo</strong> (incluindo o prefixo <code>secret-token:</code>) e adicione-o como ligação nomeada abaixo"
diff --git a/config/locales/views/mercury_items/ru.yml b/config/locales/views/mercury_items/ru.yml
index f13f1813f5..df317de63b 100644
--- a/config/locales/views/mercury_items/ru.yml
+++ b/config/locales/views/mercury_items/ru.yml
@@ -101,6 +101,7 @@ ru:
connection_name_label: Название подключения
connection_name_placeholder: Бизнес-счёт
default_connection_name: Подключение Mercury
+ disconnect: Отключить
disconnect_confirm: Отключить %{name}?
instructions:
copy_token_html: Скопируйте <strong>полный токен</strong> (включая префикс
diff --git a/config/locales/views/mercury_items/tr.yml b/config/locales/views/mercury_items/tr.yml
index 29ce346abf..b191e2d369 100644
--- a/config/locales/views/mercury_items/tr.yml
+++ b/config/locales/views/mercury_items/tr.yml
@@ -91,6 +91,7 @@ tr:
connection_name_label: Bağlantı adı
connection_name_placeholder: İşletme vadesiz hesabı
default_connection_name: Mercury Bağlantısı
+ disconnect: Bağlantıyı kes
disconnect_confirm: "%{name} bağlantısı kesilsin mi?"
instructions:
copy_token_html: "<strong>Tam token'ı</strong> (<code>secret-token:</code>
diff --git a/config/locales/views/mercury_items/uk.yml b/config/locales/views/mercury_items/uk.yml
index c9d358a7d0..330fe21127 100644
--- a/config/locales/views/mercury_items/uk.yml
+++ b/config/locales/views/mercury_items/uk.yml
@@ -80,6 +80,7 @@ uk:
connection_name_label: Назва з'єднання
connection_name_placeholder: Бізнес-рахунок
default_connection_name: З'єднання Mercury
+ disconnect: Відключити
disconnect_confirm: "Відключити %{name}?"
instructions:
copy_token_html: "Скопіюйте <strong>повний токен</strong> (включаючи префікс <code>secret-token:</code>) і додайте його як іменоване з'єднання нижче"
diff --git a/config/locales/views/mercury_items/vi.yml b/config/locales/views/mercury_items/vi.yml
index 01c2c3ea13..5c203d2c8d 100644
--- a/config/locales/views/mercury_items/vi.yml
+++ b/config/locales/views/mercury_items/vi.yml
@@ -75,6 +75,7 @@ vi:
connection_name_label: Tên kết nối
connection_name_placeholder: Tài khoản kinh doanh
default_connection_name: Kết nối Mercury
+ disconnect: Ngắt kết nối
disconnect_confirm: "Ngắt kết nối %{name}?"
instructions:
copy_token_html: "Sao chép <strong>toàn bộ mã thông báo</strong> (bao gồm tiền tố <code>secret-token:</code>) và thêm làm kết nối có tên bên dưới"
diff --git a/config/locales/views/mercury_items/zh-CN.yml b/config/locales/views/mercury_items/zh-CN.yml
index 0aef766251..d9530c1bdb 100644
--- a/config/locales/views/mercury_items/zh-CN.yml
+++ b/config/locales/views/mercury_items/zh-CN.yml
@@ -75,6 +75,7 @@ zh-CN:
connection_name_label: 连接名称
connection_name_placeholder: 企业支票账户
default_connection_name: Mercury 连接
+ disconnect: 断开连接
disconnect_confirm: "断开 %{name}?"
instructions:
copy_token_html: "复制完整 token(包括 <code>secret-token:</code> 前缀),并将其作为命名连接添加到下方"
diff --git a/config/locales/views/redbark_items/ca.yml b/config/locales/views/redbark_items/ca.yml
index 6d068e176b..86b8af899b 100644
--- a/config/locales/views/redbark_items/ca.yml
+++ b/config/locales/views/redbark_items/ca.yml
@@ -25,22 +25,16 @@ ca:
needs_setup: '%{count} comptes necessiten configuració...'
success: Sincronització iniciada
panel:
- setup_instructions: 'Instruccions de configuració:'
step_1: Crea una clau API a app.redbark.com, a l'apartat Settings
step_2: Introdueix la teva clau API a continuació i fes clic al botó Desa
step_3: Un cop connectat correctament, ves a la pestanya Comptes per configurar els comptes nous
- field_descriptions: 'Descripció dels camps:'
optional: (Opcional)
- required: (obligatori)
optional_with_default: (opcional, per defecte %{default_value})
save_button: Desa la configuració
update_button: Actualitza la configuració
- status_configured_html: Configurat i a punt per utilitzar. Ves a la pestanya <a href="%{accounts_path}" class="link">Comptes</a> per gestionar i configurar els comptes.
- status_not_configured: No configurat
fields:
api_key:
label: Clau API
- description: La teva clau API de Redbark (comença per rbk_live_)
placeholder_new: rbk_live_...
placeholder_update: Introdueix una clau API nova per actualitzar-la
create:
diff --git a/config/locales/views/redbark_items/de.yml b/config/locales/views/redbark_items/de.yml
index 9b8a6a7c96..417663b527 100644
--- a/config/locales/views/redbark_items/de.yml
+++ b/config/locales/views/redbark_items/de.yml
@@ -38,20 +38,14 @@ de:
loading_message: Redbark-Konten werden geladen …
loading_title: Wird geladen
panel:
- field_descriptions: 'Erläuterung der Felder:'
fields:
api_key:
- description: Dein Redbark-API-Key (beginnt mit rbk_live_)
label: API-Key
placeholder_new: rbk_live_…
placeholder_update: Neuen API-Key eintragen, um ihn zu ändern
optional: "(optional)"
optional_with_default: "(optional, Standard ist %{default_value})"
- required: "(erforderlich)"
save_button: Konfiguration speichern
- setup_instructions: 'So richtest du es ein:'
- status_configured_html: Eingerichtet und einsatzbereit. Im Reiter <a href="%{accounts_path}" class="link">Konten</a> verwaltest und richtest du Konten ein.
- status_not_configured: Nicht eingerichtet
step_1: Leg auf app.redbark.com unter „Settings“ einen API-Key an
step_2: Trag deinen API-Key unten ein und klick auf Speichern
step_3: Nach erfolgreicher Verbindung richtest du im Reiter „Konten“ die neuen Konten ein
diff --git a/config/locales/views/redbark_items/en.yml b/config/locales/views/redbark_items/en.yml
index 1f7f016e31..0a8228f32a 100644
--- a/config/locales/views/redbark_items/en.yml
+++ b/config/locales/views/redbark_items/en.yml
@@ -30,22 +30,16 @@ en:
# Panel (settings view)
panel:
- setup_instructions: "Setup instructions:"
step_1: "Create an API key at app.redbark.com under Settings"
step_2: "Enter your API key below and click the Save button"
step_3: "After a successful connection, go to the Accounts tab to set up new accounts"
- field_descriptions: "Field descriptions:"
optional: "(Optional)"
- required: "(required)"
optional_with_default: "(optional, defaults to %{default_value})"
save_button: "Save Configuration"
update_button: "Update Configuration"
- status_configured_html: "Configured and ready to use. Visit the <a href=\"%{accounts_path}\" class=\"link\">Accounts</a> tab to manage and set up accounts."
- status_not_configured: "Not configured"
fields:
api_key:
label: "API Key"
- description: "Your Redbark API key (starts with rbk_live_)"
placeholder_new: "rbk_live_..."
placeholder_update: "Enter new API key to update"
diff --git a/config/locales/views/redbark_items/es.yml b/config/locales/views/redbark_items/es.yml
index f2734ecdf7..e79a29c01b 100644
--- a/config/locales/views/redbark_items/es.yml
+++ b/config/locales/views/redbark_items/es.yml
@@ -25,22 +25,16 @@ es:
needs_setup: "%{count} cuentas necesitan configuración..."
success: "Sincronización iniciada"
panel:
- setup_instructions: "Instrucciones de configuración:"
step_1: "Crea una clave API en app.redbark.com, en Ajustes"
step_2: "Introduce tu clave API abajo y pulsa el botón Guardar"
step_3: "Después de una conexión correcta, ve a la pestaña Cuentas para configurar nuevas cuentas"
- field_descriptions: "Descripciones de campos:"
optional: "(Opcional)"
- required: "(obligatorio)"
optional_with_default: "(opcional, valor predeterminado %{default_value})"
save_button: "Guardar configuración"
update_button: "Actualizar configuración"
- status_configured_html: "Configurado y listo para usar. Visita la pestaña <a href=\"%{accounts_path}\" class=\"link\">Cuentas</a> para gestionar y configurar cuentas."
- status_not_configured: "No configurado"
fields:
api_key:
label: "Clave API"
- description: "Tu clave API de Redbark (empieza por rbk_live_)"
placeholder_new: "rbk_live_..."
placeholder_update: "Introduce una nueva clave API para actualizar"
create:
diff --git a/config/locales/views/redbark_items/fr.yml b/config/locales/views/redbark_items/fr.yml
index b12a42241d..b56ec63947 100644
--- a/config/locales/views/redbark_items/fr.yml
+++ b/config/locales/views/redbark_items/fr.yml
@@ -38,20 +38,14 @@ fr:
loading_message: Chargement des comptes Redbark...
loading_title: Chargement
panel:
- field_descriptions: 'Description des champs :'
fields:
api_key:
- description: Votre clé d'API Redbark (commence par rbk_live_)
label: Clé d'API
placeholder_new: rbk_live_...
placeholder_update: Saisissez la nouvelle clé d'API pour la mettre à jour
optional: "(facultatif)"
optional_with_default: "(facultatif, %{default_value} par défaut)"
- required: "(requis)"
save_button: Enregistrer la configuration
- setup_instructions: 'Instructions de configuration :'
- status_configured_html: Configuré et prêt à l'emploi. Rendez-vous dans l'onglet <a href="%{accounts_path}" class="link">Comptes</a> pour gérer et configurer les comptes.
- status_not_configured: Non configuré
step_1: Créez une clé d'API sur app.redbark.com, dans les paramètres
step_2: Saisissez votre clé d'API ci-dessous et cliquez sur Enregistrer
step_3: Une fois la connexion établie, ouvrez l'onglet Comptes pour configurer de nouveaux comptes
diff --git a/config/locales/views/redbark_items/pl.yml b/config/locales/views/redbark_items/pl.yml
index 72aebf4f56..6f7da2de3d 100644
--- a/config/locales/views/redbark_items/pl.yml
+++ b/config/locales/views/redbark_items/pl.yml
@@ -45,22 +45,14 @@ pl:
loading_message: Ładowanie kont Redbark...
loading_title: Ładowanie
panel:
- field_descriptions: 'Opisy pól:'
fields:
api_key:
- description: Twój klucz API Redbark (zaczyna się od rbk_live_)
label: Klucz API
placeholder_new: rbk_live_...
placeholder_update: Wpisz nowy klucz API, aby zaktualizować
optional: "(Opcjonalne)"
optional_with_default: "(opcjonalne, domyślnie %{default_value})"
- required: "(wymagane)"
save_button: Zapisz konfigurację
- setup_instructions: 'Instrukcje konfiguracji:'
- status_configured_html: Skonfigurowano i gotowe do użycia. Przejdź do zakładki
- <a href="%{accounts_path}" class="link">Konta</a>, aby zarządzać kontami i
- je skonfigurować.
- status_not_configured: Nie skonfigurowano
step_1: Utwórz klucz API na app.redbark.com w Ustawieniach
step_2: Wpisz swój klucz API poniżej i kliknij przycisk Zapisz
step_3: Po pomyślnym połączeniu przejdź do zakładki Konta, aby skonfigurować
diff --git a/config/locales/views/redbark_items/ru.yml b/config/locales/views/redbark_items/ru.yml
index ae52a8ba64..f1a9449535 100644
--- a/config/locales/views/redbark_items/ru.yml
+++ b/config/locales/views/redbark_items/ru.yml
@@ -29,22 +29,16 @@ ru:
needs_setup: 'Счетов, требующих настройки: %{count}...'
success: Синхронизация начата
panel:
- setup_instructions: 'Инструкции по настройке:'
step_1: Создайте API-ключ на app.redbark.com в разделе Settings
step_2: Введите API-ключ ниже и нажмите «Сохранить»
step_3: После успешного подключения перейдите на вкладку «Счета», чтобы настроить новые счета
- field_descriptions: 'Описание полей:'
optional: (Необязательно)
- required: (Обязательно)
optional_with_default: (необязательно, по умолчанию %{default_value})
save_button: Сохранить конфигурацию
update_button: Обновить конфигурацию
- status_configured_html: Настроено и готово к использованию. Перейдите на вкладку <a href="%{accounts_path}" class="link">Счета</a>, чтобы управлять счетами и настроить их.
- status_not_configured: Не настроено
fields:
api_key:
label: API-ключ
- description: Ваш API-ключ Redbark (начинается с rbk_live_)
placeholder_new: rbk_live_...
placeholder_update: Введите новый API-ключ для обновления
create:
diff --git a/config/locales/views/redbark_items/tr.yml b/config/locales/views/redbark_items/tr.yml
index 8fadbcaa88..811204eae4 100644
--- a/config/locales/views/redbark_items/tr.yml
+++ b/config/locales/views/redbark_items/tr.yml
@@ -25,22 +25,16 @@ tr:
needs_setup: '%{count} hesap kurulum gerektiriyor...'
success: Senkronizasyon başlatıldı
panel:
- setup_instructions: 'Kurulum talimatları:'
step_1: app.redbark.com adresinde Settings altında bir API anahtarı oluşturun
step_2: API anahtarınızı aşağıya girin ve Kaydet düğmesine tıklayın
step_3: Bağlantı başarılı olduktan sonra yeni hesapları ayarlamak için Hesaplar sekmesine gidin
- field_descriptions: 'Alan açıklamaları:'
optional: (İsteğe bağlı)
- required: (zorunlu)
optional_with_default: '(isteğe bağlı, varsayılan: %{default_value})'
save_button: Yapılandırmayı Kaydet
update_button: Yapılandırmayı Güncelle
- status_configured_html: Yapılandırıldı ve kullanıma hazır. Hesapları yönetmek ve ayarlamak için <a href="%{accounts_path}" class="link">Hesaplar</a> sekmesine gidin.
- status_not_configured: Yapılandırılmadı
fields:
api_key:
label: API Anahtarı
- description: Redbark API anahtarınız (rbk_live_ ile başlar)
placeholder_new: rbk_live_...
placeholder_update: Güncellemek için yeni API anahtarını girin
create:
diff --git a/config/locales/views/redbark_items/uk.yml b/config/locales/views/redbark_items/uk.yml
index 287b5eef33..22669b0240 100644
--- a/config/locales/views/redbark_items/uk.yml
+++ b/config/locales/views/redbark_items/uk.yml
@@ -29,22 +29,16 @@ uk:
needs_setup: 'Рахунків, що потребують налаштування: %{count}...'
success: Синхронізацію розпочато
panel:
- setup_instructions: 'Інструкції з налаштування:'
step_1: Створіть ключ API на app.redbark.com у розділі Settings
step_2: Введіть ключ API нижче та натисніть кнопку «Зберегти»
step_3: Після успішного підключення перейдіть на вкладку «Рахунки», щоб налаштувати нові рахунки
- field_descriptions: 'Опис полів:'
optional: (необов'язково)
- required: (обов'язково)
optional_with_default: (необов'язково, за замовчуванням %{default_value})
save_button: Зберегти конфігурацію
update_button: Оновити конфігурацію
- status_configured_html: Налаштовано й готово до використання. Перейдіть на вкладку <a href="%{accounts_path}" class="link">Рахунки</a>, щоб керувати рахунками та налаштовувати їх.
- status_not_configured: Не налаштовано
fields:
api_key:
label: Ключ API
- description: Ваш ключ API Redbark (починається з rbk_live_)
placeholder_new: rbk_live_...
placeholder_update: Введіть новий ключ API, щоб оновити
create:
diff --git a/config/locales/views/redbark_items/zh-TW.yml b/config/locales/views/redbark_items/zh-TW.yml
index 10f0395796..6a3f9124b6 100644
--- a/config/locales/views/redbark_items/zh-TW.yml
+++ b/config/locales/views/redbark_items/zh-TW.yml
@@ -25,22 +25,16 @@ zh-TW:
needs_setup: '%{count} 個帳戶需要設定...'
success: 同步已開始
panel:
- setup_instructions: 設定說明:
step_1: 在 app.redbark.com 的 Settings 中建立 API 金鑰
step_2: 在下方輸入您的 API 金鑰並按下儲存
step_3: 連線成功後,前往「帳戶管理」分頁設定新帳戶
- field_descriptions: 欄位說明:
optional: (選填)
- required: (必填)
optional_with_default: (選填,預設為 %{default_value})
save_button: 儲存設定
update_button: 更新設定
- status_configured_html: 已設定完成,可以開始使用。請前往 <a href="%{accounts_path}" class="link">帳戶管理</a> 分頁管理與設定帳戶。
- status_not_configured: 未設定
fields:
api_key:
label: API 金鑰
- description: 您的 Redbark API 金鑰(以 rbk_live_ 開頭)
placeholder_new: rbk_live_...
placeholder_update: 輸入新的 API 金鑰以更新
create:
diff --git a/config/locales/views/settings/ca.yml b/config/locales/views/settings/ca.yml
index ace1e703c7..e8aa975d7d 100644
--- a/config/locales/views/settings/ca.yml
+++ b/config/locales/views/settings/ca.yml
@@ -280,6 +280,7 @@ ca:
api_secret_label: Secret de l'API
api_secret_placeholder: Enganxa el teu secret de l'API de Binance
connect_button: Connecta Binance
+ disconnect: Desconnecta
disconnect_confirm: Segur que vols desconnectar Binance?
ip_hint_body: 'Afegeix la IP de sortida del servidor de l''aplicació a la
llista blanca de la clau API de Binance:'
@@ -307,6 +308,7 @@ ca:
api_secret_label: Secret de l'API
api_secret_placeholder: Introdueix el teu secret de l'API de Coinbase
connect_button: Connecta Coinbase
+ disconnect: Desconnecta
disconnect_confirm: Segur que vols desconnectar aquesta connexió de Coinbase?
Els teus comptes sincronitzats passaran a ser comptes manuals.
setup_instructions: 'Per connectar Coinbase:'
diff --git a/config/locales/views/settings/de.yml b/config/locales/views/settings/de.yml
index 432ca43998..5a9804c234 100644
--- a/config/locales/views/settings/de.yml
+++ b/config/locales/views/settings/de.yml
@@ -244,6 +244,7 @@ de:
connect_button: Coinbase verbinden
syncing: Wird synchronisiert…
sync: Synchronisieren
+ disconnect: Trennen
disconnect_confirm: Bist du sicher, dass du diese Coinbase-Verbindung trennen möchtest? Deine synchronisierten Konten werden zu manuellen Konten.
enable_banking_panel:
callback_url_instruction: "Für die Callback-URL, verwende %{callback_url}."
@@ -288,6 +289,7 @@ de:
api_secret_label: API-Secret
api_secret_placeholder: Binance-API-Secret einfügen
connect_button: Binance verbinden
+ disconnect: Trennen
disconnect_confirm: Verbindung zu Binance wirklich trennen?
historical_import: Einstellungen für den Verlaufsimport
ip_hint_body: 'Trag die ausgehende IP-Adresse des App-Servers in die Whitelist des Binance-API-Keys ein:'
diff --git a/config/locales/views/settings/en.yml b/config/locales/views/settings/en.yml
index 4a6cb4d535..e7d392fcde 100644
--- a/config/locales/views/settings/en.yml
+++ b/config/locales/views/settings/en.yml
@@ -506,6 +506,7 @@ en:
connect_button: Connect Coinbase
syncing: Syncing...
sync: Sync
+ disconnect: Disconnect
disconnect_confirm: Are you sure you want to disconnect this Coinbase connection? Your synced accounts will become manual accounts.
binance_panel:
setup_instructions: "To connect Binance, create a read-only API key:"
@@ -527,6 +528,7 @@ en:
historical_import: "Historical Import Settings"
sync_start_date_label: "Import data from"
sync_start_date_help: "Select how far back to fetch historical trades."
+ disconnect: Disconnect
disconnect_confirm: "Are you sure you want to disconnect Binance?"
kraken_panel:
step1_html: 'Go to <a href="https://pro.kraken.com/app/settings/api" target="_blank" rel="noopener noreferrer" class="underline">Kraken API settings</a>'
diff --git a/config/locales/views/settings/es.yml b/config/locales/views/settings/es.yml
index 0e06b051c1..c9ae713d3f 100644
--- a/config/locales/views/settings/es.yml
+++ b/config/locales/views/settings/es.yml
@@ -397,6 +397,7 @@ es:
connect_button: Conectar Coinbase
syncing: Sincronizando...
sync: Sincronizar
+ disconnect: Desconectar
disconnect_confirm: ¿Estás seguro de que deseas desconectar esta conexión de Coinbase? Tus cuentas sincronizadas pasarán a ser cuentas manuales.
binance_panel:
setup_instructions: 'Para conectar Binance, crea una clave API de solo lectura:'
@@ -418,6 +419,7 @@ es:
historical_import: Ajustes de importación histórica
sync_start_date_label: Importar datos desde
sync_start_date_help: Selecciona hasta cuándo retroceder para obtener operaciones históricas.
+ disconnect: Desconectar
disconnect_confirm: ¿Seguro que quieres desconectar Binance?
kraken_panel:
step1_html: Ve a los <a href="https://pro.kraken.com/app/settings/api" target="_blank" rel="noopener noreferrer" class="underline">ajustes de API de Kraken</a>
diff --git a/config/locales/views/settings/fr.yml b/config/locales/views/settings/fr.yml
index b53c783ba3..0d2e578c89 100644
--- a/config/locales/views/settings/fr.yml
+++ b/config/locales/views/settings/fr.yml
@@ -301,6 +301,7 @@ fr:
api_secret_label: Secret API
api_secret_placeholder: Collez votre secret API Binance
connect_button: Connecter Binance
+ disconnect: Déconnecter
disconnect_confirm: Êtes-vous sûr(e) de vouloir déconnecter Binance ?
historical_import: Paramètres d'importation historique
ip_hint_body: "Ajoutez l'IP de sortie du serveur de l'application à la liste blanche de la clé API Binance :"
@@ -324,6 +325,7 @@ fr:
api_secret_label: Secret API
api_secret_placeholder: Entrez votre secret API Coinbase
connect_button: Connecter Coinbase
+ disconnect: Déconnecter
disconnect_confirm: Êtes-vous sûr(e) de vouloir déconnecter cette connexion Coinbase ? Vos comptes synchronisés deviendront des comptes manuels.
setup_instructions: "Pour connecter Coinbase :"
step1_html: Allez dans les <a href="https://portal.cdp.coinbase.com/projects/api-keys" target="_blank" rel="noopener noreferrer" class="text-primary underline">Paramètres API de Coinbase</a>
diff --git a/config/locales/views/settings/hu.yml b/config/locales/views/settings/hu.yml
index 4052040340..a19e9416be 100644
--- a/config/locales/views/settings/hu.yml
+++ b/config/locales/views/settings/hu.yml
@@ -316,6 +316,7 @@ hu:
connect_button: Coinbase csatlakoztatása
syncing: Szinkronizálás...
sync: Szinkronizálás
+ disconnect: Lecsatlakozás
disconnect_confirm: Biztosan le szeretnéd választani ezt a Coinbase-kapcsolatot? A szinkronizált számlák manuális számlákká válnak.
binance_panel:
setup_instructions: "A Binance csatlakoztatásához hozz létre egy csak olvasási jogosultsággal rendelkező API-kulcsot:"
@@ -335,6 +336,7 @@ hu:
connect_button: Binance csatlakoztatása
syncing: Szinkronizálás...
sync: Szinkronizálás
+ disconnect: Lecsatlakozás
disconnect_confirm: "Biztosan le szeretnéd választani a Binance-t?"
kraken_panel:
step1_html: 'Nyisd meg a <a href="https://pro.kraken.com/app/settings/api" target="_blank" rel="noopener noreferrer" class="underline">Kraken API-beállításait</a>'
diff --git a/config/locales/views/settings/it.yml b/config/locales/views/settings/it.yml
index d7b4809587..c055f4a8af 100644
--- a/config/locales/views/settings/it.yml
+++ b/config/locales/views/settings/it.yml
@@ -391,6 +391,7 @@ it:
connect_button: Connetti Coinbase
syncing: Sincronizzazione...
sync: Sincronizza
+ disconnect: Disconnetti
disconnect_confirm: Sei sicuro di voler disconnettere questa connessione Coinbase? I tuoi conti sincronizzati diventeranno conti manuali.
binance_panel:
setup_instructions: "Per connettere Binance, crea una chiave API in sola lettura:"
@@ -412,6 +413,7 @@ it:
historical_import: "Impostazioni importazione storica"
sync_start_date_label: "Importa dati da"
sync_start_date_help: "Seleziona fino a quando indietro recuperare le operazioni storiche."
+ disconnect: Disconnetti
disconnect_confirm: "Sei sicuro di voler disconnettere Binance?"
kraken_panel:
step1_html: 'Vai alle <a href="https://pro.kraken.com/app/settings/api" target="_blank" rel="noopener noreferrer" class="underline">impostazioni API Kraken</a>'
diff --git a/config/locales/views/settings/pl.yml b/config/locales/views/settings/pl.yml
index 9b6452d7cd..630b395e06 100644
--- a/config/locales/views/settings/pl.yml
+++ b/config/locales/views/settings/pl.yml
@@ -379,6 +379,7 @@ pl:
api_secret_label: Sekret API
api_secret_placeholder: Wklej swój sekret API Binance
connect_button: Połącz Binance
+ disconnect: Rozłącz
disconnect_confirm: Na pewno rozłączyć Binance?
historical_import: Ustawienia importu historycznego
ip_hint_body: 'Dodaj adres IP wyjściowy serwera aplikacji do białej listy
@@ -407,6 +408,7 @@ pl:
api_secret_label: Sekret API
api_secret_placeholder: Wprowadź sekret API Coinbase
connect_button: Połącz Coinbase
+ disconnect: Rozłącz
disconnect_confirm: Czy na pewno chcesz odłączyć to połączenie Coinbase? Twoje
zsynchronizowane konta staną się kontami ręcznymi.
setup_instructions: 'Aby połączyć Coinbase:'
diff --git a/config/locales/views/settings/pt-PT.yml b/config/locales/views/settings/pt-PT.yml
index c11ba7d469..c395a79243 100644
--- a/config/locales/views/settings/pt-PT.yml
+++ b/config/locales/views/settings/pt-PT.yml
@@ -463,6 +463,7 @@ pt-PT:
connect_button: Ligar Coinbase
syncing: A sincronizar...
sync: Sincronizar
+ disconnect: Desligar
disconnect_confirm: Tem a certeza de que pretende desligar esta ligação Coinbase? As suas contas sincronizadas tornar-se-ão contas manuais.
binance_panel:
setup_instructions: "Para ligar a Binance, crie uma chave de API apenas de leitura:"
@@ -484,6 +485,7 @@ pt-PT:
historical_import: "Definições de Importação Histórica"
sync_start_date_label: "Importar dados desde"
sync_start_date_help: "Selecione até que ponto no passado pretende obter as negociações históricas."
+ disconnect: Desligar
disconnect_confirm: "Tem a certeza de que pretende desligar a Binance?"
kraken_panel:
step1_html: 'Aceda a <a href="https://pro.kraken.com/app/settings/api" target="_blank" rel="noopener noreferrer" class="underline">Definições de API Kraken</a>'
diff --git a/config/locales/views/settings/ru.yml b/config/locales/views/settings/ru.yml
index 2f059ca40c..203f29b776 100644
--- a/config/locales/views/settings/ru.yml
+++ b/config/locales/views/settings/ru.yml
@@ -316,6 +316,7 @@ ru:
api_secret_label: Секретный ключ API
api_secret_placeholder: Вставьте ваш секретный ключ API Binance
connect_button: Подключить Binance
+ disconnect: Отключить
disconnect_confirm: Вы уверены, что хотите отключить Binance?
historical_import: Настройки исторического импорта
ip_hint_body: 'Добавьте IP-адрес выхода сервера приложения в белый список
@@ -345,6 +346,7 @@ ru:
api_secret_label: Секретный ключ API
api_secret_placeholder: Введите ваш секретный ключ API Coinbase
connect_button: Подключить Coinbase
+ disconnect: Отключить
disconnect_confirm: Вы уверены, что хотите отключить это подключение Coinbase?
Ваши синхронизированные счета станут ручными счетами.
setup_instructions: 'Чтобы подключить Coinbase:'
diff --git a/config/locales/views/settings/tr.yml b/config/locales/views/settings/tr.yml
index 00f1bafeb0..f983094ab3 100644
--- a/config/locales/views/settings/tr.yml
+++ b/config/locales/views/settings/tr.yml
@@ -324,6 +324,7 @@ tr:
api_secret_label: API Gizli Anahtarı
api_secret_placeholder: Binance API Gizli Anahtarınızı yapıştırın
connect_button: Binance'a Bağlan
+ disconnect: Bağlantıyı kes
disconnect_confirm: Binance bağlantısını kesmek istediğinizden emin misiniz?
historical_import: Geçmiş İçe Aktarma Ayarları
ip_hint_body: 'Uygulama sunucusunun çıkış IP adresini Binance API Anahtarı
@@ -353,6 +354,7 @@ tr:
api_secret_label: API Gizli Anahtarı
api_secret_placeholder: Coinbase API gizli anahtarınızı girin
connect_button: Coinbase'e Bağlan
+ disconnect: Bağlantıyı kes
disconnect_confirm: Bu Coinbase bağlantısını kesmek istediğinizden emin misiniz?
Senkronize hesaplarınız manuel hesaplara dönüşecektir.
setup_instructions: 'Coinbase''i bağlamak için:'
diff --git a/config/locales/views/settings/uk.yml b/config/locales/views/settings/uk.yml
index 0bdde570a4..72683e0166 100644
--- a/config/locales/views/settings/uk.yml
+++ b/config/locales/views/settings/uk.yml
@@ -490,6 +490,7 @@ uk:
connect_button: Підключити Coinbase
syncing: Синхронізація...
sync: Синхронізувати
+ disconnect: Відключити
disconnect_confirm: Ви впевнені, що хочете відключити це з'єднання Coinbase? Ваші синхронізовані рахунки стануть ручними.
binance_panel:
setup_instructions: "Щоб підключити Binance, створіть ключ API лише для читання:"
@@ -511,6 +512,7 @@ uk:
historical_import: "Налаштування історичного імпорту"
sync_start_date_label: "Імпортувати дані з"
sync_start_date_help: "Виберіть, наскільки далеко назад отримувати історичні угоди."
+ disconnect: Відключити
disconnect_confirm: "Ви впевнені, що хочете відключити Binance?"
kraken_panel:
step1_html: 'Перейдіть до <a href="https://pro.kraken.com/app/settings/api" target="_blank" rel="noopener noreferrer" class="underline">Налаштування API Kraken</a>'
diff --git a/config/locales/views/settings/vi.yml b/config/locales/views/settings/vi.yml
index dffb84152e..5db13c2a0d 100644
--- a/config/locales/views/settings/vi.yml
+++ b/config/locales/views/settings/vi.yml
@@ -358,6 +358,7 @@ vi:
connect_button: Kết nối Coinbase
syncing: Đang đồng bộ...
sync: Đồng bộ
+ disconnect: Ngắt kết nối
disconnect_confirm: Bạn có chắc muốn ngắt kết nối Coinbase? Các tài khoản đã đồng bộ sẽ trở thành tài khoản thủ công.
binance_panel:
setup_instructions: "Để kết nối Binance, tạo khóa API chỉ đọc:"
@@ -379,6 +380,7 @@ vi:
historical_import: "Cài đặt nhập dữ liệu lịch sử"
sync_start_date_label: "Nhập dữ liệu từ"
sync_start_date_help: "Chọn khoảng thời gian lịch sử cần tải."
+ disconnect: Ngắt kết nối
disconnect_confirm: "Bạn có chắc muốn ngắt kết nối Binance?"
kraken_panel:
step1_html: 'Vào <a href="https://pro.kraken.com/app/settings/api" target="_blank" rel="noopener noreferrer" class="underline">Cài đặt API Kraken</a>'
diff --git a/config/locales/views/settings/zh-CN.yml b/config/locales/views/settings/zh-CN.yml
index 9a2ae29eb4..453f4605c3 100644
--- a/config/locales/views/settings/zh-CN.yml
+++ b/config/locales/views/settings/zh-CN.yml
@@ -359,6 +359,7 @@ zh-CN:
connect_button: 连接 Coinbase
syncing: 正在同步...
sync: 同步
+ disconnect: 断开连接
disconnect_confirm: 确定要断开此 Coinbase 连接吗?同步的账户会变为手动账户。
binance_panel:
setup_instructions: 连接 Binance,请创建一个只读 API key:
@@ -377,6 +378,7 @@ zh-CN:
connect_button: 连接 Binance
syncing: 正在同步...
sync: 同步
+ disconnect: 断开连接
disconnect_confirm: 确定要断开 Binance 吗?
historical_import: 历史导入设置
sync_start_date_label: 导入起始日期
diff --git a/config/locales/views/settings/zh-TW.yml b/config/locales/views/settings/zh-TW.yml
index 384084606e..261eb363fc 100644
--- a/config/locales/views/settings/zh-TW.yml
+++ b/config/locales/views/settings/zh-TW.yml
@@ -443,6 +443,7 @@ zh-TW:
connect_button: 連結 Coinbase
syncing: 同步中...
sync: 同步
+ disconnect: 中斷連線
disconnect_confirm: 確定要中斷這個 Coinbase 連線嗎?已同步的帳戶會變成手動帳戶。
binance_panel:
setup_instructions: 要連結 Binance,請建立一組唯讀 API 金鑰:
@@ -464,6 +465,7 @@ zh-TW:
historical_import: 歷史資料匯入設定
sync_start_date_label: 匯入資料起始日
sync_start_date_help: 選擇要往回抓多久的歷史交易。
+ disconnect: 中斷連線
disconnect_confirm: 確定要中斷 Binance 連線嗎?
kraken_panel:
step1_html: 前往 <a href="https://pro.kraken.com/app/settings/api" target="_blank" rel="noopener noreferrer" class="underline">Kraken API settings</a>
diff --git a/config/locales/views/wise_items/ca.yml b/config/locales/views/wise_items/ca.yml
index 7c37f9c48a..69f275a812 100644
--- a/config/locales/views/wise_items/ca.yml
+++ b/config/locales/views/wise_items/ca.yml
@@ -6,7 +6,6 @@ ca:
sign_in_html: Visita %{link} i inicia sessió al teu compte
create_token: Crea un nou token API personal amb accés només de lectura
copy_token_html: Copia el token i enganxa'l a continuació. Sure només l'utilitza per sincronitzar els teus saldos i transaccions.
- setup_title: 'Instruccions de configuració:'
add_connection: Afegeix connexió Wise
token_label: Token API
token_placeholder: Enganxa el teu token API personal de Wise
@@ -24,9 +23,6 @@ ca:
disconnect: Desconnecta
disconnect_label: Desconnecta %{name}
disconnect_confirm: Vols desconnectar %{name}? S'eliminaran totes les dades dels comptes sincronitzats.
- accounts_link: Comptes
- configured_html: Connectat i sincronitzant. Visita la pestanya %{accounts_link} per gestionar els teus comptes.
- not_configured: No configurat
sandbox_note_html: Utilitza l'URL base de <strong>sandbox</strong> (<code>https://api.sandbox.transferwise.tech</code>) per fer proves. Defineix <code>WISE_BASE_URL</code> al teu entorn.
encryption_warning:
title: El xifratge de la base de dades no està configurat
diff --git a/config/locales/views/wise_items/en.yml b/config/locales/views/wise_items/en.yml
index f989acaa40..09461743d9 100644
--- a/config/locales/views/wise_items/en.yml
+++ b/config/locales/views/wise_items/en.yml
@@ -55,7 +55,6 @@ en:
one: "%{count} Wise account sync could not be scheduled."
other: "%{count} Wise account syncs could not be scheduled."
provider_panel:
- setup_title: "Setup instructions:"
add_connection: Add Wise connection
token_label: API token
token_placeholder: Paste your Wise personal API token
@@ -73,9 +72,6 @@ en:
disconnect: Disconnect
disconnect_label: "Disconnect %{name}"
disconnect_confirm: "Are you sure you want to disconnect %{name}? This will remove all synced account data."
- accounts_link: Accounts
- configured_html: "Connected and syncing. Visit the %{accounts_link} tab to manage your accounts."
- not_configured: Not configured
sandbox_note_html: "Use the <strong>sandbox</strong> base URL (<code>https://api.sandbox.transferwise.tech</code>) for testing. Set <code>WISE_BASE_URL</code> in your environment."
encryption_warning:
title: Database encryption is not configured
diff --git a/config/locales/views/wise_items/fr.yml b/config/locales/views/wise_items/fr.yml
index e79c3db0a2..dbe475063f 100644
--- a/config/locales/views/wise_items/fr.yml
+++ b/config/locales/views/wise_items/fr.yml
@@ -51,10 +51,7 @@ fr:
description: Connectez-vous en utilisant %{name}
name: "Wise — %{name}"
provider_panel:
- accounts_link: Comptes
add_connection: Ajouter une connexion Wise
- configured_html: Connecté et synchronisation en cours. Rendez-vous sur l'onglet
- %{accounts_link} pour gérer vos comptes.
connect: Connecter Wise
connection_name_label: Nom de la connexion
connection_name_placeholder: Wise Personnel
@@ -89,11 +86,9 @@ fr:
open_tokens: Accédez à Settings → Connect and manage apps → Developer tools → API tokens
sign_in_html: Visitez %{link} et connectez-vous à votre compte
keep_token_placeholder: Laisser vide pour conserver le jeton actuel
- not_configured: Non configuré
sandbox_note_html: Utilisez l'URL de base <strong>sandbox</strong> (<code>https://api.sandbox.transferwise.tech</code>)
pour les tests. Définissez <code>WISE_BASE_URL</code> dans votre environnement.
setup_accounts: Configurer des comptes
- setup_title: 'Instructions de configuration :'
sync: Synchroniser
token_label: Jeton API
token_placeholder: Collez votre jeton API personnel Wise
diff --git a/config/locales/views/wise_items/pl.yml b/config/locales/views/wise_items/pl.yml
index 0f27122d80..73bb6609bf 100644
--- a/config/locales/views/wise_items/pl.yml
+++ b/config/locales/views/wise_items/pl.yml
@@ -52,10 +52,7 @@ pl:
description: Połącz przez %{name}
name: Wise — %{name}
provider_panel:
- accounts_link: Konta
add_connection: Dodaj połączenie Wise
- configured_html: Połączone i synchronizujące. Przejdź do zakładki %{accounts_link},
- aby zarządzać kontami.
connect: Połącz Wise
connection_name_label: Nazwa połączenia
connection_name_placeholder: Wise Osobiste
@@ -79,7 +76,6 @@ pl:
→ API tokens
sign_in_html: Odwiedź %{link} i zaloguj się na swoje konto
keep_token_placeholder: Pozostaw puste, aby zachować bieżący token
- not_configured: Nieskonfigurowane
sandbox_note_html: Użyj <strong>sandbox</strong> base URL (<code>https://api.sandbox.transferwise.tech</code>)
do testowania. Ustaw <code>WISE_BASE_URL</code> w swoim środowisku.
sca:
@@ -100,7 +96,6 @@ pl:
manage apps → Developer tools → Public keys → Add public key.'
title: Silne uwierzytelnianie klienta (SCA)
setup_accounts: Konfiguruj konta
- setup_title: 'Instrukcje konfiguracji:'
sync: Synchronizuj
sync_start_date_help: Wyciągi Wise są importowane od tej daty. Pozostaw wartość
domyślną, aby zaimportować do roku historii.
diff --git a/config/locales/views/wise_items/pt-PT.yml b/config/locales/views/wise_items/pt-PT.yml
index 1306887254..687aba18c4 100644
--- a/config/locales/views/wise_items/pt-PT.yml
+++ b/config/locales/views/wise_items/pt-PT.yml
@@ -55,7 +55,6 @@ pt-PT:
one: "%{count} sincronização de conta da Wise não pôde ser agendada."
other: "%{count} sincronizações de contas da Wise não puderam ser agendadas."
provider_panel:
- setup_title: "Instruções de configuração:"
add_connection: Adicionar ligação à Wise
token_label: Token de API
token_placeholder: Cole o seu token de API pessoal da Wise
@@ -73,9 +72,6 @@ pt-PT:
disconnect: Desligar
disconnect_label: "Desligar %{name}"
disconnect_confirm: "Tem a certeza de que pretende desligar %{name}? Isto irá remover todos os dados de contas sincronizados."
- accounts_link: Contas
- configured_html: "Ligado e a sincronizar. Visite o separador %{accounts_link} para gerir as suas contas."
- not_configured: Não configurado
sandbox_note_html: "Utilize o URL base <strong>sandbox</strong> (<code>https://api.sandbox.transferwise.tech</code>) para testes. Defina <code>WISE_BASE_URL</code> no seu ambiente."
encryption_warning:
title: A encriptação da base de dados não está configurada
diff --git a/config/locales/views/wise_items/ru.yml b/config/locales/views/wise_items/ru.yml
index 3eba0bc228..213d9c20d2 100644
--- a/config/locales/views/wise_items/ru.yml
+++ b/config/locales/views/wise_items/ru.yml
@@ -6,7 +6,6 @@ ru:
sign_in_html: Перейдите на %{link} и войдите в свой аккаунт
create_token: Создайте новый личный API-токен с доступом только для чтения
copy_token_html: Скопируйте токен и вставьте его ниже. Sure использует его только для синхронизации ваших балансов и операций.
- setup_title: 'Инструкции по настройке:'
add_connection: Добавить подключение Wise
token_label: API-токен
token_placeholder: Вставьте ваш личный API-токен Wise
@@ -24,9 +23,6 @@ ru:
disconnect: Отключить
disconnect_label: Отключить %{name}
disconnect_confirm: Вы уверены, что хотите отключить %{name}? Все синхронизированные данные счетов будут удалены.
- accounts_link: Счета
- configured_html: Подключено и синхронизируется. Перейдите на вкладку %{accounts_link}, чтобы управлять счетами.
- not_configured: Не настроено
sandbox_note_html: Для тестирования используйте базовый URL <strong>песочницы</strong> (<code>https://api.sandbox.transferwise.tech</code>). Задайте <code>WISE_BASE_URL</code> в окружении.
encryption_warning:
title: Шифрование базы данных не настроено
diff --git a/config/locales/views/wise_items/tr.yml b/config/locales/views/wise_items/tr.yml
index d1228897bc..ff92fb5840 100644
--- a/config/locales/views/wise_items/tr.yml
+++ b/config/locales/views/wise_items/tr.yml
@@ -46,10 +46,7 @@ tr:
description: "%{name} kullanarak bağlan"
name: Wise — %{name}
provider_panel:
- accounts_link: Hesaplar
add_connection: Wise bağlantısı ekle
- configured_html: Bağlandı ve eşitleniyor. Hesaplarınızı yönetmek için %{accounts_link}
- sekmesini ziyaret edin.
connect: Wise'ı Bağla
connection_name_label: Bağlantı adı
connection_name_placeholder: Wise Bireysel
@@ -72,11 +69,9 @@ tr:
open_tokens: Settings → Connect and manage apps → Developer tools → API tokens bölümüne gidin
sign_in_html: "%{link} adresini ziyaret edin ve hesabınıza giriş yapın"
keep_token_placeholder: Mevcut token'ı korumak için boş bırakın
- not_configured: Yapılandırılmamış
sandbox_note_html: Test için <strong>sandbox</strong> temel URL'sini (<code>https://api.sandbox.transferwise.tech</code>)
kullanın. Ortamınızda <code>WISE_BASE_URL</code> değerini ayarlayın.
setup_accounts: Hesapları kur
- setup_title: 'Kurulum talimatları:'
sync: Eşitle
token_label: API token'ı
token_placeholder: Wise kişisel API token'ınızı yapıştırın
diff --git a/config/locales/views/wise_items/uk.yml b/config/locales/views/wise_items/uk.yml
index c02bd844e2..b240d26cbe 100644
--- a/config/locales/views/wise_items/uk.yml
+++ b/config/locales/views/wise_items/uk.yml
@@ -66,7 +66,6 @@ uk:
few: Синхронізацію %{count} рахунків Wise не вдалося запланувати.
many: Синхронізацію %{count} рахунків Wise не вдалося запланувати.
provider_panel:
- setup_title: "Інструкції з налаштування:"
add_connection: Додати з'єднання Wise
token_label: Токен API
token_placeholder: Вставте свій особистий токен API Wise
@@ -80,9 +79,6 @@ uk:
disconnect: Відключити
disconnect_label: "Відключити %{name}"
disconnect_confirm: "Ви впевнені, що хочете відключити %{name}? Це видалить усі синхронізовані дані рахунку."
- accounts_link: Рахунки
- configured_html: "Підключено та синхронізується. Перейдіть на вкладку %{accounts_link}, щоб керувати своїми рахунками."
- not_configured: Не налаштовано
sandbox_note_html: "Використовуйте базову URL-адресу <strong>пісочниці</strong> (<code>https://api.sandbox.transferwise.tech</code>) для тестування. Встановіть <code>WISE_BASE_URL</code> у вашому середовищі."
encryption_warning:
title: Шифрування бази даних не налаштовано
diff --git a/config/locales/views/wise_items/zh-TW.yml b/config/locales/views/wise_items/zh-TW.yml
index d9dd655195..61e86a99b7 100644
--- a/config/locales/views/wise_items/zh-TW.yml
+++ b/config/locales/views/wise_items/zh-TW.yml
@@ -55,7 +55,6 @@ zh-TW:
one: '%{count} 個 Wise 帳戶同步無法排程。'
other: '%{count} 個 Wise 帳戶同步無法排程。'
provider_panel:
- setup_title: 設定說明:
add_connection: 新增 Wise 連線
token_label: API 權杖 (API Token)
token_placeholder: 貼上您的 Wise 個人 API Token
@@ -69,9 +68,6 @@ zh-TW:
disconnect: 中斷連線
disconnect_label: 中斷 %{name}
disconnect_confirm: 確定要中斷 %{name} 的連線嗎?這會移除所有已同步的帳戶資料。
- accounts_link: 帳戶管理
- configured_html: 已連線並同步中。請前往 %{accounts_link} 分頁管理您的帳戶。
- not_configured: 未設定
sandbox_note_html: 測試時請使用 <strong>sandbox</strong> 基礎網址(<code>https://api.sandbox.transferwise.tech</code>)。在環境變數中設定 <code>WISE_BASE_URL</code>。
encryption_warning:
title: 資料庫加密未設定
diff --git a/test/controllers/settings/provider_panels_test.rb b/test/controllers/settings/provider_panels_test.rb
new file mode 100644
index 0000000000..2d8a4a4ed9
--- /dev/null
+++ b/test/controllers/settings/provider_panels_test.rb
@@ -0,0 +1,79 @@
+require "test_helper"
+
+# The bank sync drawers follow the Up panel: setup steps come from the shared
+# setup_steps partial, messages are DS::Alerts and item actions are DS::Buttons.
+class Settings::ProviderPanelsTest < ActionDispatch::IntegrationTest
+ setup do
+ sign_in users(:family_admin)
+ end
+
+ test "Wise, Brex and Redbark list their setup steps in the shared partial" do
+ %w[wise brex redbark].each do |provider_key|
+ get connect_form_settings_providers_path(provider_key: provider_key)
+
+ assert_response :success
+ assert_select "turbo-frame##{provider_key}-connect-form p", { text: I18n.t("settings.providers.setup_steps.eyebrow") }, provider_key
+ end
+ end
+
+ test "Wise, Brex and Redbark show a rejected save in an error alert" do
+ patch wise_item_url(wise_items(:one)), params: { wise_item: { name: "" } }, headers: { "Turbo-Frame" => "wise-providers-panel" }
+ assert_error_alert "wise-providers-panel"
+
+ post brex_items_url, params: { brex_item: { name: "Brex", token: "" } }, headers: { "Turbo-Frame" => "brex-providers-panel" }
+ assert_error_alert "brex-providers-panel"
+
+ post redbark_items_url, params: { redbark_item: { api_key: "" } }, headers: { "Turbo-Frame" => "redbark-providers-panel" }
+ assert_error_alert "redbark-providers-panel"
+ end
+
+ test "provider warnings are titled alerts" do
+ TradeRepublicItem.stubs(:encryption_ready?).returns(false)
+
+ { "trade_republic" => "settings.providers.trade_republic_panel.encryption_warning.title",
+ "kraken" => "settings.providers.kraken_panel.read_only_title",
+ "coinspot" => "settings.providers.coinspot_panel.read_only_title" }.each do |provider_key, title_key|
+ get connect_form_settings_providers_path(provider_key: provider_key)
+
+ assert_response :success
+ assert_select "turbo-frame##{provider_key}-connect-form p", { text: titled_alert(:warning, title_key) }, provider_key
+ end
+
+ get new_wallet_onchain_wallet_items_path
+ assert_response :success
+ assert_select "p", text: titled_alert(:info, "settings.providers.onchain_wallet_panel.keyless_title")
+ end
+
+ test "sync and disconnect actions are named DS buttons" do
+ family = families(:dylan_family)
+ CoinbaseItem.create!(family: family, name: "Coinbase", api_key: "key", api_secret: "secret")
+ EnableBankingItem.create!(family: family, name: "Live", country_code: "FI", application_id: "app",
+ client_certificate: "cert", session_id: "live", session_expires_at: 1.day.from_now)
+ EnableBankingItem.create!(family: family, name: "Expired", country_code: "FI", application_id: "app",
+ client_certificate: "cert", session_id: "expired", session_expires_at: 1.day.ago)
+
+ %w[binance brex coinbase enable_banking kraken mercury].each do |provider_key|
+ get connect_form_settings_providers_path(provider_key: provider_key)
+
+ assert_response :success
+ buttons = css_select("turbo-frame##{provider_key}-connect-form button")
+ assert buttons.any?, "#{provider_key} renders no buttons"
+ buttons.each do |button|
+ assert (button["aria-label"].presence || button.text.squish.presence), "#{provider_key} has a button without a name: #{button.to_html}"
+ assert_includes button["class"].to_s.split, "focus-ring", "#{provider_key} has a button without a focus ring: #{button.to_html}"
+ end
+ assert_select "turbo-frame##{provider_key}-connect-form button[data-turbo-confirm]", { minimum: 1 }, "#{provider_key} disconnects without confirming"
+ end
+ end
+
+ private
+ # DS::Alert prefixes its text with the variant for screen readers ("Error: …").
+ def titled_alert(variant, title_key)
+ /#{I18n.t("ds.alert.variants.#{variant}")}:\s*#{Regexp.escape(I18n.t(title_key))}/
+ end
+
+ def assert_error_alert(target)
+ assert_response :unprocessable_entity
+ assert_select "turbo-stream[target=#{target}] template p", text: /\A\s*#{I18n.t("ds.alert.variants.error")}:\s+\S/
+ end
+end