fix: localization issues

This commit is contained in:
Matyáš Caras 2024-01-30 22:50:08 +01:00
parent d3945a0420
commit a62c334342
Signed by untrusted user who does not match committer: hernik
GPG key ID: 2A3175F98820C5C6
2 changed files with 2 additions and 3 deletions

View file

@ -113,6 +113,6 @@
"search":"Prohledat",
"expensesPerYear":"Měsíční výdaje v roce {year}",
"expensesPerMonth":"Denní výdaje během měsíce {monthYear}",
"expensesPerCategory":"Total expenses per category",
"expensesPerCategory":"Dohromady výdaje za kategorii",
"date":"Datum"
}

View file

@ -7,7 +7,6 @@ import 'package:prasule/api/category.dart';
import 'package:prasule/api/wallet.dart';
import 'package:prasule/api/wallet_manager.dart';
import 'package:prasule/main.dart';
import 'package:prasule/pw/platformbutton.dart';
import 'package:prasule/pw/platformroute.dart';
import 'package:prasule/util/drawer.dart';
import 'package:prasule/util/graphs.dart';
@ -262,7 +261,7 @@ class _GraphViewState extends State<GraphView> {
.expensesPerYear(_selectedDate.year)
: AppLocalizations.of(context)
.expensesPerMonth(
DateFormat.yMMMM()
DateFormat.yMMMM(locale)
.format(_selectedDate),
),
style: const TextStyle(