i18n(finance): full page — tabs/periods/pnl/balance + Expense.CATEGORIES

- All 4 tabs (Overview/Cashflow/P&L/Balanță) built with __() around
  the text portion, emoji stays in code
- 4 period presets wrapped with __()
- P&L table Marjă/Marjă piese footer wrapped
- Expense::CATEGORIES values look up through __() in the expensesByCat
  loop so categories show translated (Salariu → Зарплата etc.)
- +25 translations covering all UI copy on /app/finance

306 tests pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-17 06:28:53 +00:00
parent 5a2b97833a
commit 2b56bbc35b
4 changed files with 60 additions and 40 deletions
+6 -6
View File
@@ -45,10 +45,10 @@ class Finance extends Page
public function tabs(): array
{
return [
'overview' => '📊 Overview',
'cashflow' => '💸 Cashflow',
'pnl' => '📈 P&L',
'balance' => __('⚖️ Balanță'),
'overview' => '📊 ' . __('Overview'),
'cashflow' => '💸 ' . __('Cashflow'),
'pnl' => '📈 ' . __('P&L'),
'balance' => '⚖️ ' . __('Balanță'),
];
}
@@ -57,8 +57,8 @@ class Finance extends Page
return [
'this_month' => __('Luna curentă'),
'last_month' => __('Luna trecută'),
'this_year' => 'Anul curent',
'last_30' => 'Ultimele 30 zile',
'this_year' => __('Anul curent'),
'last_30' => __('Ultimele 30 zile'),
];
}