From 9bbf8b0c29dc714203080e1856f713344ec766e9 Mon Sep 17 00:00:00 2001 From: Bibash Shrestha Date: Tue, 16 Jul 2024 12:45:55 +0545 Subject: [PATCH] feat: Use engish lang for profile list for all lang #2786 --- .../enum/type/profile/profile_type.dart | 19 +++++++------------ .../widget/profile_selector_widget.dart | 6 +----- lib/l10n/arb/app_ca.arb | 6 ------ lib/l10n/arb/app_en.arb | 6 ------ lib/l10n/arb/app_es.arb | 6 ------ lib/l10n/arb/app_fr.arb | 6 ------ 6 files changed, 8 insertions(+), 41 deletions(-) diff --git a/lib/app/shared/enum/type/profile/profile_type.dart b/lib/app/shared/enum/type/profile/profile_type.dart index 6b2f2f300..aadba9764 100644 --- a/lib/app/shared/enum/type/profile/profile_type.dart +++ b/lib/app/shared/enum/type/profile/profile_type.dart @@ -1,5 +1,3 @@ -import 'package:altme/l10n/l10n.dart'; - enum ProfileType { defaultOne, ebsiV3, @@ -10,23 +8,20 @@ enum ProfileType { } extension ProfileTypeX on ProfileType { - String getTitle({ - required AppLocalizations l10n, - required String name, - }) { + String getTitle({required String name}) { switch (this) { case ProfileType.custom: - return l10n.profileCustom; + return 'Custom'; case ProfileType.ebsiV3: - return l10n.profileEbsiV3; + return 'European Blockchain Services Infrastructure'; case ProfileType.dutch: - return l10n.decentralizedIdentityInteropProfile; + return 'Decentralized Identity Interop Profile (DIIP v2.1)'; case ProfileType.enterprise: - return name.isEmpty ? l10n.enterprise : name; + return name.isEmpty ? 'Enterprise' : name; case ProfileType.owfBaselineProfile: - return l10n.oWFBaselineProfile; + return 'OWF Baseline Profile'; case ProfileType.defaultOne: - return l10n.defaultProfile; + return 'Default'; } } diff --git a/lib/dashboard/drawer/profile/widget/profile_selector_widget.dart b/lib/dashboard/drawer/profile/widget/profile_selector_widget.dart index 34efedeef..9d401d67c 100644 --- a/lib/dashboard/drawer/profile/widget/profile_selector_widget.dart +++ b/lib/dashboard/drawer/profile/widget/profile_selector_widget.dart @@ -1,7 +1,6 @@ import 'package:altme/app/app.dart'; import 'package:altme/credentials/cubit/credentials_cubit.dart'; import 'package:altme/dashboard/profile/profile.dart'; -import 'package:altme/l10n/l10n.dart'; import 'package:altme/wallet/wallet.dart'; import 'package:flutter/material.dart'; @@ -12,8 +11,6 @@ class ProfileSelectorWidget extends StatelessWidget { @override Widget build(BuildContext context) { - final l10n = context.l10n; - final profile = context.read().state.model; final walletContainsEnterpriseProfile = @@ -44,7 +41,7 @@ class ProfileSelectorWidget extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - l10n.walletProfilesDescription, + 'Choose your SSI profile or customize your own', style: Theme.of(context).textTheme.titleMedium, ), ], @@ -89,7 +86,6 @@ class ProfileSelectorWidget extends StatelessWidget { ), title: Text( profileType.getTitle( - l10n: l10n, name: profile.enterpriseWalletName ?? '', ), style: Theme.of(context).textTheme.bodyLarge, diff --git a/lib/l10n/arb/app_ca.arb b/lib/l10n/arb/app_ca.arb index a7ecae789..d96c3b049 100644 --- a/lib/l10n/arb/app_ca.arb +++ b/lib/l10n/arb/app_ca.arb @@ -966,9 +966,6 @@ "clientSecret": "Client secret", "walletProfiles": "Perfils de la cartera", "walletProfilesDescription": "Escull un perfil SSI o personalitza el teu", - "profileCustom": "Personalitzar", - "profileEbsiV3": "Infraestructura de serveis blockchain europea", - "decentralizedIdentityInteropProfile": "Perfil d’interop d’identitat descentralizada", "protectYourWallet": "Protegeix la teva cartera", "protectYourWalletMessage": "Utilitza l’empremta digital, la cara o el PIN del dispositiu per protegir i desbloquejar la teva cartera. Dades xifrades i segures en aquest dispositiu.", "pinUnlock": "Desbloqueig PIN", @@ -1003,9 +1000,6 @@ "clientTypeSubtitle" : "Predeterminat: DID\nDesplaci per canviar el tipus de client", "switchOffCryptoHolderBindingForThatDIDMethod": "Desactivar la vinculació del titular (o posseïdor) de criptoactius per a aquest mètode DID", "thisTypeProofCannotBeUsedWithThisVCFormat": "Aquest tipus de prova no es pot fer servir amb aquest format de CV", - "enterprise" : "Organització/Empresa", - "oWFBaselineProfile": "Perfil de Línia Base d'OWF", - "defaultProfile" : "Predeterminat", "blockchainCardsDiscoverTitle": "Obtenir prova de propietat de compte cripto", "blockchainCardsDiscoverSubtitle" : "Obtenir prova de propietat de compte de criptoactius", "successfullyAddedEnterpriseAccount": "Compte d'Organització/Empresa afegida amb èxit!", diff --git a/lib/l10n/arb/app_en.arb b/lib/l10n/arb/app_en.arb index a77491f10..e885f3090 100644 --- a/lib/l10n/arb/app_en.arb +++ b/lib/l10n/arb/app_en.arb @@ -958,9 +958,6 @@ "clientSecret": "Client Secret", "walletProfiles": "Wallet Profiles", "walletProfilesDescription": "Choose your SSI profile or customize your own", - "profileCustom": "Custom", - "profileEbsiV3": "European Blockchain Services Infrastructure", - "decentralizedIdentityInteropProfile": "Decentralized Identity Interop Profile (DIIP v2.1)", "protectYourWallet": "Protect your wallet", "protectYourWalletMessage": "Use your fingerprint, face, or device PIN to secure and unlock your wallet. Your data is securely encrypted on this device.", "pinUnlock": "PIN unlock", @@ -993,9 +990,6 @@ "walletProvider": "Wallet Provider", "clientTypeSubtitle": "Default: DID\nSwitch to change the client type", "thisTypeProofCannotBeUsedWithThisVCFormat": "This type proof cannot be used with this VC Format.", - "enterprise": "Enterprise", - "oWFBaselineProfile": "OWF Baseline Profile", - "defaultProfile":"Default", "blockchainCardsDiscoverTitle": "Get a proof of crypto account ownership", "blockchainCardsDiscoverSubtitle": "Get a proof of crypto account ownership.", "successfullyAddedEnterpriseAccount": "Successfully added enterprise account!", diff --git a/lib/l10n/arb/app_es.arb b/lib/l10n/arb/app_es.arb index c49226655..982e2ab31 100644 --- a/lib/l10n/arb/app_es.arb +++ b/lib/l10n/arb/app_es.arb @@ -966,9 +966,6 @@ "clientSecret": "Secreto de cliente", "walletProfiles": "Perfiles de cartera", "walletProfilesDescription": "Elija su perfil SSI o personalice el suyo propio", - "profileCustom": "Personalizado", - "profileEbsiV3": "European Blockchain Services Infrastructure", - "decentralizedIdentityInteropProfile": "Perfil de interoperabilidad de identidad descentralizada", "protectYourWallet": "Proteja su cartera", "protectYourWalletMessage": "Proteja y desbloquee su cartera con su huella dactilar, rostro o el PIN de su dispositivo. Datos cifrados de forma segura en este dispositivo.", "pinUnlock": "Desbloqueo con PIN", @@ -1003,9 +1000,6 @@ "clientTypeSubtitle" : "Predeterminado: DID\nDesplace para cambiar el tipo de cliente", "switchOffCryptoHolderBindingForThatDIDMethod": "Desactivar la vinculación del titular (o poseedor) de criptoactivos para ese método DID", "thisTypeProofCannotBeUsedWithThisVCFormat": "Este tipo de prueba no se puede utilizar con este formato de CV.", - "enterprise" : "Organización/Empresa", - "oWFBaselineProfile": "Perfil de Línea Base de OWF", - "defaultProfile" : "Predeterminado", "blockchainCardsDiscoverTitle": "Obtener prueba de propiedad de cuenta cripto", "blockchainCardsDiscoverSubtitle" : "Obtener prueba de propiedad de cuenta de criptoactivos", "successfullyAddedEnterpriseAccount":"¡Cuenta de Organización/Empresa añadida con éxito!", diff --git a/lib/l10n/arb/app_fr.arb b/lib/l10n/arb/app_fr.arb index caca58790..5ecca94d6 100644 --- a/lib/l10n/arb/app_fr.arb +++ b/lib/l10n/arb/app_fr.arb @@ -965,9 +965,6 @@ "clientSecret": "Secret client", "walletProfiles": "Profils de portefeuille", "walletProfilesDescription": "Choisissez votre profil SSI", - "profileCustom": "Personnalisé", - "profileEbsiV3": "Blockchain Européenne EBSI", - "decentralizedIdentityInteropProfile": "Profil DIIP", "protectYourWallet": "Protégez votre portefeuille", "protectYourWalletMessage": "Utilisez votre empreinte digitale, votre visage ou le code PIN de votre appareil pour sécuriser et déverrouiller votre portefeuille.", "pinUnlock": "Déverrouillage par PIN", @@ -1001,9 +998,6 @@ "walletProvider": "Fournisseur de Portefeuille", "theLdpFormatIsNotSupportedByThisDIDMethod": "Le format LDP n'est pas pris en charge par cette méthode DID.", "thisTypeProofCannotBeUsedWithThisVCFormat": "Ce type de preuve ne peut pas être utilisé avec ce format de VC.", - "enterprise": "Entreprise", - "oWFBaselineProfile": "Profil de base OWF", - "defaultProfile":"Profil par défaut", "blockchainCardsDiscoverTitle": "Prouvez que vous possédez un compte crypto.", "blockchainCardsDiscoverSubtitle": "Prouvez que vous possédez un compte crypto.", "successfullyAddedEnterpriseAccount": "Compte entreprise ajouté avec succès !",