Skip to content

Commit

Permalink
chore: ✏️ Infos on aeBridge tab different for desktop/web or mobile c…
Browse files Browse the repository at this point in the history
…ontext
  • Loading branch information
redDwarf03 committed Oct 21, 2024
1 parent 9f8547a commit 8aea42d
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 12 deletions.
12 changes: 9 additions & 3 deletions lib/l10n/intl_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -726,9 +726,15 @@
"poolDetailsInfoFees": "Fees",
"swapInfosDetailSwap": "Swap infos",
"swapInfosDetailPool": "Pool infos",
"aeBridgeInfos1": "Bridge functionality not available on mobile",
"aeBridgeInfos2": "The bridge is not yet available on the mobile application.\n\nTo perform bridge operations, please use a desktop computer at the following address with the Chrome extension or the desktop wallet.",
"aeBridgeInfos3": "The bridge will soon be available on mobile.",
"aeBridgeInfosTitleMobile": "Bridge functionality not available on mobile",
"aeBridgeInfosDetail1Mobile": "The bridge is not yet available on the mobile application.\n\nTo perform bridge operations, please use a desktop computer at the following address with the Chrome extension or the desktop wallet.",
"aeBridgeInfosDetail2Mobile": "The bridge will soon be available on mobile.",
"aeBridgeInfosTitleWeb": "Bridge functionality not available on Chrome extension",
"aeBridgeInfosDetail1Web": "The bridge is not directly available on the Chrome extension.\n\nTo perform bridge operations, please use your internet browser at the following address with this Chrome extension.",
"aeBridgeInfosDetail2Web": "",
"aeBridgeInfosTitleDesktop": "Bridge functionality not available on desktop",
"aeBridgeInfosDetail1Desktop": "The bridge is not available on the desktop application.\n\nTo perform bridge operations, please use a desktop computer at the following address with the Chrome extension or this desktop wallet.",
"aeBridgeInfosDetail2Desktop": "",
"processingInProgress": "Processing in progress...",
"restoreFailedTitle": "Archethic Wallet",
"restoreFailedSubtitle": "Failed to open your wallet.",
Expand Down
12 changes: 9 additions & 3 deletions lib/l10n/intl_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -706,9 +706,15 @@
"poolDetailsInfoFees": "Frais",
"swapInfosDetailSwap": "Informations liées à l'échange",
"swapInfosDetailPool": "Informations liées à la pool",
"aeBridgeInfos1": "Fonctionnalité de Bridge indisponible sur mobile",
"aeBridgeInfos2": "Le bridge n'est pas encore disponible sur l'application mobile.\n\nPour effectuer des opérations de bridge, veuillez utiliser un ordinateur de bureau à l'adresse suivante avec l'extension Chrome ou le wallet en version desktop",
"aeBridgeInfos3": "Le bridge sera bientôt disponible sur mobile.",
"aeBridgeInfosTitleMobile": "Fonctionnalité de Bridge indisponible sur mobile",
"aeBridgeInfosDetail1Mobile": "Le bridge n'est pas encore disponible sur l'application mobile.\n\nPour effectuer des opérations de bridge, veuillez utiliser un ordinateur de bureau à l'adresse suivante avec l'extension Chrome ou le wallet en version desktop",
"aeBridgeInfosDetail2Mobile": "Le bridge sera bientôt disponible sur mobile.",
"aeBridgeInfosTitleWeb": "Fonctionnalité de Bridge non disponible sur l'extension Chrome",
"aeBridgeInfosDetail1Web": "Le bridge n'est pas directement disponible sur l'extension Chrome.\n\nPour effectuer des opérations de bridge, veuillez utiliser votre navigateur internet à l'adresse suivante avec cette extension Chrome.",
"aeBridgeInfosDetail2Web": "",
"aeBridgeInfosTitleDesktop": "Fonctionnalité de bridge non disponible.",
"aeBridgeInfosDetail1Desktop": "Le bridge n'est pas disponible sur l'application de bureau.\n\nPour effectuer des opérations de bridge, veuillez utiliser un ordinateur à l'adresse suivante avec l'extension Chrome ou cette application.",
"aeBridgeInfosDetail2Desktop": "",
"processingInProgress": "Traitement en cours d'exécution...",
"restoreFailedTitle": "Archethic Wallet",
"restoreFailedSubtitle": "Échec lors de l’ouverture de votre wallet.",
Expand Down
19 changes: 16 additions & 3 deletions lib/ui/views/sheets/bridge_sheet.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:aewallet/util/universal_platform.dart';
import 'package:archethic_dapp_framework_flutter/archethic_dapp_framework_flutter.dart'
as aedappfm;
import 'package:flutter/material.dart';
Expand All @@ -18,14 +19,22 @@ class BridgeInfoWidget extends StatelessWidget {
child: Column(
children: [
Text(
AppLocalizations.of(context)!.aeBridgeInfos1,
UniversalPlatform.isMobile
? AppLocalizations.of(context)!.aeBridgeInfosTitleMobile
: UniversalPlatform.isWeb
? AppLocalizations.of(context)!.aeBridgeInfosTitleWeb
: AppLocalizations.of(context)!.aeBridgeInfosTitleDesktop,
style: Theme.of(context).textTheme.bodyLarge!.copyWith(
fontWeight: FontWeight.bold,
),
),
const SizedBox(height: 8),
Text(
AppLocalizations.of(context)!.aeBridgeInfos2,
UniversalPlatform.isMobile
? AppLocalizations.of(context)!.aeBridgeInfosDetail1Mobile
: UniversalPlatform.isWeb
? AppLocalizations.of(context)!.aeBridgeInfosDetail1Web
: AppLocalizations.of(context)!.aeBridgeInfosDetail1Desktop,
style: Theme.of(context).textTheme.bodyLarge,
),
const SizedBox(height: 20),
Expand All @@ -43,7 +52,11 @@ class BridgeInfoWidget extends StatelessWidget {
),
const SizedBox(height: 20),
Text(
AppLocalizations.of(context)!.aeBridgeInfos3,
UniversalPlatform.isMobile
? AppLocalizations.of(context)!.aeBridgeInfosDetail2Mobile
: UniversalPlatform.isWeb
? AppLocalizations.of(context)!.aeBridgeInfosDetail2Web
: AppLocalizations.of(context)!.aeBridgeInfosDetail2Desktop,
style: Theme.of(context).textTheme.bodyLarge,
),
],
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Fully decentralized and cryptocurrency non-custodial hot wallet tha

publish_to: "none" # Remove this line if you wish to publish to pub.dev

version: 3.0.5+587
version: 3.0.6+588

environment:
sdk: ">=3.3.0 <4.0.0"
Expand Down Expand Up @@ -310,7 +310,7 @@ msix_config:
publisher_display_name: Archethic Technologies SARL
identity_name: ArchethicTechnologiesSARL.ArchethicWallet
publisher: CN=9687A561-7463-4BA7-BD4D-A04574BAF854
msix_version: 3.05.587.0
msix_version: 3.06.588.0
icons_background_color: "#000000"
languages: en-us
store: true
Expand Down
2 changes: 1 addition & 1 deletion web_chrome_extension/public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"48": "icons/icon_48.png",
"128": "icons/icon_128.png"
},
"version": "3.0.5.587",
"version": "3.0.6.588",
"content_security_policy": {
"extension_pages": "script-src 'self' ; object-src 'self'"
},
Expand Down

0 comments on commit 8aea42d

Please sign in to comment.