1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-09 15:35:22 +02:00

Use locales files for some text on net worth and account charts

This commit is contained in:
hatz 2025-04-25 14:00:27 -05:00
parent 10761303c1
commit 373405b16c
No known key found for this signature in database
6 changed files with 10 additions and 5 deletions

View file

@ -24,7 +24,7 @@
data-time-series-chart-data-value="<%= series.to_json %>"></div>
<% else %>
<div class="w-full h-full flex items-center justify-center">
<p class="text-secondary text-sm">No data available for the selected period.</p>
<p class="text-secondary text-sm"><%= t(".data_not_available") %></p>
</div>
<% end %>
</div>

View file

@ -3,7 +3,7 @@
<div class="flex justify-between gap-4 px-4">
<div class="space-y-2">
<div class="space-y-2">
<p class="text-sm text-secondary font-medium">Net Worth</p>
<p class="text-sm text-secondary font-medium"><%= t(".title") %></p>
<p class="text-primary -space-x-0.5 text-3xl font-medium">
<%= series.current.format %>
</p>
@ -32,6 +32,6 @@
data-time-series-chart-data-value="<%= series.to_json %>"></div>
<% else %>
<div class="w-full h-full flex items-center justify-center">
<p class="text-secondary text-sm">No data available for the selected period.</p>
<p class="text-secondary text-sm"><%= t(".data_not_available") %></p>
</div>
<% end %>

View file

@ -2,7 +2,7 @@
<p class="text-sm" style="color: <%= trend.color %>">
<% if trend.direction.flat? %>
<span>No change</span>
<%= t(".no_change") %><%= " #{comparison_label}" if comparison_label.present? %>
<% else %>
<span class="font-mono">
<%= trend.value.is_a?(Money) ? format_money(trend.value) : trend.value.round(2) %>

View file

@ -4,7 +4,7 @@ en:
account:
troubleshoot: Troubleshoot
chart:
no_change: no change
data_not_available: Data not available for the selected period
create:
success: "%{type} account created"
destroy:

View file

@ -4,6 +4,9 @@ en:
changelog:
title: What's new
dashboard:
net_worth_chart:
data_not_available: Data not available for the selected period
title: Net Worth
no_account_empty_state:
new_account: New account
no_account_subtitle: Since no accounts have been added, there's no data to

View file

@ -10,3 +10,5 @@ en:
label: Amount
syncing_notice:
syncing: Syncing accounts data...
trend_change:
no_change: "no change"