Skip to content
Snippets Groups Projects
Commit 4508e3da authored by vjrj's avatar vjrj
Browse files

Translate the card name if not customized

parent 9d43d741
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ SENTRY_DSN=https://306345cb87ee4e1cbbe9023fb4afc5fc@sentry.comunes.org/6 ...@@ -5,7 +5,7 @@ SENTRY_DSN=https://306345cb87ee4e1cbbe9023fb4afc5fc@sentry.comunes.org/6
CARD_COLOR_LEFT=0xFF598040 CARD_COLOR_LEFT=0xFF598040
CARD_COLOR_RIGHT=0xFF225500 CARD_COLOR_RIGHT=0xFF225500
# Empty for default # Empty for default
CARD_TEXT=Ğ1 Wallet Dev CARD_TEXT=Ğ1 Wallet
# Nodes space-separated # Nodes space-separated
# The duniter nodes are only used at boot time, later it tries to calculate periodically the nodes # The duniter nodes are only used at boot time, later it tries to calculate periodically the nodes
......
...@@ -61,7 +61,10 @@ class CreditCard extends StatelessWidget { ...@@ -61,7 +61,10 @@ class CreditCard extends StatelessWidget {
child: FittedBox( child: FittedBox(
fit: BoxFit.scaleDown, fit: BoxFit.scaleDown,
child: Text( child: Text(
dotenv.env['CARD_TEXT'] ?? tr('g1_wallet'), dotenv.env['CARD_TEXT'] != null &&
dotenv.env['CARD_TEXT'] != 'Ğ1 Wallet'
? dotenv.env['CARD_TEXT']!
: tr('g1_wallet'),
style: TextStyle( style: TextStyle(
color: Colors.white, color: Colors.white,
fontSize: fontSize:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment