Skip to content

Commit

Permalink
feat: Use engish lang for profile list for all lang #2786
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Jul 16, 2024
1 parent 825d2b0 commit 9bbf8b0
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 41 deletions.
19 changes: 7 additions & 12 deletions lib/app/shared/enum/type/profile/profile_type.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'package:altme/l10n/l10n.dart';

enum ProfileType {
defaultOne,
ebsiV3,
Expand All @@ -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';
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -12,8 +11,6 @@ class ProfileSelectorWidget extends StatelessWidget {

@override
Widget build(BuildContext context) {
final l10n = context.l10n;

final profile = context.read<ProfileCubit>().state.model;

final walletContainsEnterpriseProfile =
Expand Down Expand Up @@ -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,
),
],
Expand Down Expand Up @@ -89,7 +86,6 @@ class ProfileSelectorWidget extends StatelessWidget {
),
title: Text(
profileType.getTitle(
l10n: l10n,
name: profile.enterpriseWalletName ?? '',
),
style: Theme.of(context).textTheme.bodyLarge,
Expand Down
6 changes: 0 additions & 6 deletions lib/l10n/arb/app_ca.arb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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!",
Expand Down
6 changes: 0 additions & 6 deletions lib/l10n/arb/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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!",
Expand Down
6 changes: 0 additions & 6 deletions lib/l10n/arb/app_es.arb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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!",
Expand Down
6 changes: 0 additions & 6 deletions lib/l10n/arb/app_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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 !",
Expand Down

0 comments on commit 9bbf8b0

Please sign in to comment.