added wallet management localizations
Some checks failed
ci/woodpecker/push/billing_fees Pipeline was successful
ci/woodpecker/push/bff Pipeline was successful
ci/woodpecker/push/db Pipeline was successful
ci/woodpecker/push/chain_gateway Pipeline was successful
ci/woodpecker/push/fx_ingestor Pipeline was successful
ci/woodpecker/push/frontend Pipeline was successful
ci/woodpecker/push/fx_oracle Pipeline was successful
ci/woodpecker/push/nats Pipeline was successful
ci/woodpecker/push/ledger Pipeline was successful
ci/woodpecker/push/notification Pipeline was successful
ci/woodpecker/push/payments_orchestrator Pipeline was successful
ci/woodpecker/push/bump_version Pipeline failed

This commit is contained in:
Stephan D
2025-11-26 23:25:31 +01:00
parent 34420ca2fb
commit c4d34c5663
6 changed files with 7 additions and 11 deletions

View File

@@ -452,6 +452,7 @@
"failedToLoadHistory": "Failed to load history",
"retry": "Retry",
"walletName": "Wallet name",
"walletNameUpdateFailed": "Failed to update wallet name",
"walletNameSaved": "Wallet name saved",
"topUpBalance": "Top Up Balance",
"addFunctionality": "Add functionality",

View File

@@ -453,6 +453,7 @@
"failedToLoadHistory": "Не удалось загрузить историю",
"retry": "Повторить",
"walletName": "Название кошелька",
"walletNameUpdateFailed": "Не удалось обновить название кошелька",
"walletNameSaved": "Название кошелька сохранено",
"topUpBalance": "Пополнить баланс",
"addFunctionality": "Добавить функциональность",

View File

@@ -22,7 +22,7 @@ class BalanceWidget extends StatelessWidget {
final wallets = walletsProvider.wallets;
if (wallets == null || wallets.isEmpty) {
if (wallets.isEmpty) {
return Center(child: Text(loc.noWalletsAvailable));
}

View File

@@ -13,9 +13,8 @@ class ButtonsWalletWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
final provider = context.watch<WalletsProvider>();
final wallet = provider.wallets?.first;
if (wallet == null) return const SizedBox.shrink();
if (provider.wallets.isEmpty) return const SizedBox.shrink();
return Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,

View File

@@ -36,7 +36,6 @@ class _WalletEditHeaderState extends State<WalletEditHeader> {
final provider = context.watch<WalletsProvider>();
final wallet = provider.selectedWallet;
final loc = AppLocalizations.of(context)!;
final messanger = ScaffoldMessenger.of(context);
if (wallet == null) {
return SizedBox.shrink();
@@ -93,8 +92,8 @@ class _WalletEditHeaderState extends State<WalletEditHeader> {
await executeActionWithNotification(
context: context,
action: () async => await provider.updateWallet(wallet.copyWith(name: _controller.text)),
errorMessage: 'Failed to update wallet name',
successMessage: 'Wallet name saved',
errorMessage: loc.walletNameUpdateFailed,
successMessage: loc.walletNameSaved,
);
setState(() {
_isEditing = false;

View File

@@ -18,10 +18,6 @@ class WalletWidgets extends StatelessWidget {
final wallets = provider.wallets;
if (wallets == null) {
return const Center(child: CircularProgressIndicator());
}
return GridView.builder(
scrollDirection: Axis.vertical,
physics: AlwaysScrollableScrollPhysics(),