Skip to content

Commit

Permalink
feat: My account, modals, extract translations for keychain_deleted_d…
Browse files Browse the repository at this point in the history
…ialog.dart
  • Loading branch information
digitalheartxs committed Sep 27, 2024
1 parent c0c7f9b commit 0229234
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 7 deletions.
11 changes: 5 additions & 6 deletions catalyst_voices/lib/pages/account/keychain_deleted_dialog.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:catalyst_voices/widgets/buttons/voices_filled_button.dart';
import 'package:catalyst_voices/widgets/modals/voices_desktop_dialog.dart';
import 'package:catalyst_voices_brands/catalyst_voices_brands.dart';
import 'package:catalyst_voices_localization/catalyst_voices_localization.dart';
import 'package:flutter/material.dart';

class KeychainDeletedDialog extends StatelessWidget {
Expand All @@ -21,27 +22,25 @@ class KeychainDeletedDialog extends StatelessWidget {
children: [
const SizedBox(height: 24),
Text(
'Catalyst keychain removed',
context.l10n.keychainDeletedDialogTitle,
style: Theme.of(context).textTheme.titleLarge,
),
const SizedBox(height: 48),
Text(
'''
Your Catalyst Keychain is removed successfully from this device.''',
context.l10n.keychainDeletedDialogSubtitle,
style: Theme.of(context).textTheme.titleMedium,
textAlign: TextAlign.center,
),
const SizedBox(height: 32),
Text(
'''
We reverted this device to Catalyst first use.''',
context.l10n.keychainDeletedDialogInfo,
style: Theme.of(context).textTheme.bodyMedium,
textAlign: TextAlign.center,
),
const SizedBox(height: 24),
VoicesFilledButton(
onTap: () => Navigator.of(context).pop(),
child: const Text('Close'),
child: Text(context.l10n.close),
),
],
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,30 @@ abstract class VoicesLocalizations {
/// In en, this message translates to:
/// **'Delete'**
String get delete;

/// No description provided for @close.
///
/// In en, this message translates to:
/// **'Close'**
String get close;

/// A title on keychain deleted dialog
///
/// In en, this message translates to:
/// **'Catalyst keychain removed'**
String get keychainDeletedDialogTitle;

/// A subtitle on keychain deleted dialog
///
/// In en, this message translates to:
/// **'Catalyst keychain removed'**
String get keychainDeletedDialogSubtitle;

/// An info on keychain deleted dialog
///
/// In en, this message translates to:
/// **'Catalyst keychain removed'**
String get keychainDeletedDialogInfo;
}

class _VoicesLocalizationsDelegate extends LocalizationsDelegate<VoicesLocalizations> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -441,4 +441,16 @@ class VoicesLocalizationsEn extends VoicesLocalizations {

@override
String get delete => 'Delete';

@override
String get close => 'Close';

@override
String get keychainDeletedDialogTitle => 'Catalyst keychain removed';

@override
String get keychainDeletedDialogSubtitle => 'Catalyst keychain removed';

@override
String get keychainDeletedDialogInfo => 'Catalyst keychain removed';
}
Original file line number Diff line number Diff line change
Expand Up @@ -441,4 +441,16 @@ class VoicesLocalizationsEs extends VoicesLocalizations {

@override
String get delete => 'Delete';

@override
String get close => 'Close';

@override
String get keychainDeletedDialogTitle => 'Catalyst keychain removed';

@override
String get keychainDeletedDialogSubtitle => 'Catalyst keychain removed';

@override
String get keychainDeletedDialogInfo => 'Catalyst keychain removed';
}
Original file line number Diff line number Diff line change
Expand Up @@ -535,5 +535,18 @@
"@deleteKeychainDialogRemovingPhrase": {
"description": "A removing phrase on delete keychain dialog"
},
"delete": "Delete"
"delete": "Delete",
"close": "Close",
"keychainDeletedDialogTitle": "Catalyst keychain removed",
"@keychainDeletedDialogTitle": {
"description": "A title on keychain deleted dialog"
},
"keychainDeletedDialogSubtitle": "Catalyst keychain removed",
"@keychainDeletedDialogSubtitle": {
"description": "A subtitle on keychain deleted dialog"
},
"keychainDeletedDialogInfo": "Catalyst keychain removed",
"@keychainDeletedDialogInfo": {
"description": "An info on keychain deleted dialog"
}
}

0 comments on commit 0229234

Please sign in to comment.