mirror of
https://github.com/nostrlabs-io/zap-stream-flutter.git
synced 2025-06-16 03:58:09 +00:00
feat: disconnect wallet
This commit is contained in:
@ -67,6 +67,7 @@ class TranslationsCa extends Translations {
|
||||
|
||||
@override late final _TranslationsZapCa zap = _TranslationsZapCa._(_root);
|
||||
@override late final _TranslationsProfileCa profile = _TranslationsProfileCa._(_root);
|
||||
@override late final _TranslationsSettingsCa settings = _TranslationsSettingsCa._(_root);
|
||||
@override late final _TranslationsLoginCa login = _TranslationsLoginCa._(_root);
|
||||
}
|
||||
|
||||
@ -118,6 +119,8 @@ class _TranslationsButtonCa extends TranslationsButtonEn {
|
||||
@override String get unmute => 'Unmute';
|
||||
@override String get share => 'Share';
|
||||
@override String get save => 'Save';
|
||||
@override String get connect => 'Connect';
|
||||
@override String get settings => 'Settings';
|
||||
}
|
||||
|
||||
// Path: embed
|
||||
@ -159,6 +162,7 @@ class _TranslationsZapCa extends TranslationsZapEn {
|
||||
@override String button_zap_ready({required Object amount}) => 'Zap ${amount} sats';
|
||||
@override String get button_zap => 'Zap';
|
||||
@override String get button_open_wallet => 'Open in Wallet';
|
||||
@override String get button_connect_wallet => 'Connect Wallet';
|
||||
@override String get copy => 'Copied to clipboard';
|
||||
@override late final _TranslationsZapErrorCa error = _TranslationsZapErrorCa._(_root);
|
||||
}
|
||||
@ -171,7 +175,19 @@ class _TranslationsProfileCa extends TranslationsProfileEn {
|
||||
|
||||
// Translations
|
||||
@override String get past_streams => 'Past Streams';
|
||||
@override late final _TranslationsProfileEditCa edit = _TranslationsProfileEditCa._(_root);
|
||||
}
|
||||
|
||||
// Path: settings
|
||||
class _TranslationsSettingsCa extends TranslationsSettingsEn {
|
||||
_TranslationsSettingsCa._(TranslationsCa root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsCa _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get button_profile => 'Edit Profile';
|
||||
@override String get button_wallet => 'Wallet Settings';
|
||||
@override late final _TranslationsSettingsProfileCa profile = _TranslationsSettingsProfileCa._(_root);
|
||||
@override late final _TranslationsSettingsWalletCa wallet = _TranslationsSettingsWalletCa._(_root);
|
||||
}
|
||||
|
||||
// Path: login
|
||||
@ -247,9 +263,9 @@ class _TranslationsZapErrorCa extends TranslationsZapErrorEn {
|
||||
@override String get no_lud16 => 'No lightning address found';
|
||||
}
|
||||
|
||||
// Path: profile.edit
|
||||
class _TranslationsProfileEditCa extends TranslationsProfileEditEn {
|
||||
_TranslationsProfileEditCa._(TranslationsCa root) : this._root = root, super.internal(root);
|
||||
// Path: settings.profile
|
||||
class _TranslationsSettingsProfileCa extends TranslationsSettingsProfileEn {
|
||||
_TranslationsSettingsProfileCa._(TranslationsCa root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsCa _root; // ignore: unused_field
|
||||
|
||||
@ -258,7 +274,19 @@ class _TranslationsProfileEditCa extends TranslationsProfileEditEn {
|
||||
@override String get about => 'About';
|
||||
@override String get nip05 => 'Nostr Address';
|
||||
@override String get lud16 => 'Lightning Address';
|
||||
@override late final _TranslationsProfileEditErrorCa error = _TranslationsProfileEditErrorCa._(_root);
|
||||
@override late final _TranslationsSettingsProfileErrorCa error = _TranslationsSettingsProfileErrorCa._(_root);
|
||||
}
|
||||
|
||||
// Path: settings.wallet
|
||||
class _TranslationsSettingsWalletCa extends TranslationsSettingsWalletEn {
|
||||
_TranslationsSettingsWalletCa._(TranslationsCa root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsCa _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get connect_wallet => 'Connect Wallet (NWC nwc://)';
|
||||
@override String get disconnect_wallet => 'Disconnect Wallet';
|
||||
@override late final _TranslationsSettingsWalletErrorCa error = _TranslationsSettingsWalletErrorCa._(_root);
|
||||
}
|
||||
|
||||
// Path: login.error
|
||||
@ -319,9 +347,9 @@ class _TranslationsStreamChatRaidCa extends TranslationsStreamChatRaidEn {
|
||||
@override String countdown({required Object time}) => 'Raiding in ${time}';
|
||||
}
|
||||
|
||||
// Path: profile.edit.error
|
||||
class _TranslationsProfileEditErrorCa extends TranslationsProfileEditErrorEn {
|
||||
_TranslationsProfileEditErrorCa._(TranslationsCa root) : this._root = root, super.internal(root);
|
||||
// Path: settings.profile.error
|
||||
class _TranslationsSettingsProfileErrorCa extends TranslationsSettingsProfileErrorEn {
|
||||
_TranslationsSettingsProfileErrorCa._(TranslationsCa root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsCa _root; // ignore: unused_field
|
||||
|
||||
@ -329,6 +357,16 @@ class _TranslationsProfileEditErrorCa extends TranslationsProfileEditErrorEn {
|
||||
@override String get logged_out => 'Cant edit profile when logged out';
|
||||
}
|
||||
|
||||
// Path: settings.wallet.error
|
||||
class _TranslationsSettingsWalletErrorCa extends TranslationsSettingsWalletErrorEn {
|
||||
_TranslationsSettingsWalletErrorCa._(TranslationsCa root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsCa _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get logged_out => 'Cant connect wallet when logged out';
|
||||
}
|
||||
|
||||
/// Flat map(s) containing all translations.
|
||||
/// Only for edge cases! For simple maps, use the map function of this library.
|
||||
extension on TranslationsCa {
|
||||
@ -381,6 +419,8 @@ extension on TranslationsCa {
|
||||
case 'button.unmute': return 'Unmute';
|
||||
case 'button.share': return 'Share';
|
||||
case 'button.save': return 'Save';
|
||||
case 'button.connect': return 'Connect';
|
||||
case 'button.settings': return 'Settings';
|
||||
case 'embed.article_by': return ({required Object name}) => 'Article by ${name}';
|
||||
case 'embed.note_by': return ({required Object name}) => 'Note by ${name}';
|
||||
case 'embed.live_stream_by': return ({required Object name}) => 'Live stream by ${name}';
|
||||
@ -395,16 +435,22 @@ extension on TranslationsCa {
|
||||
case 'zap.button_zap_ready': return ({required Object amount}) => 'Zap ${amount} sats';
|
||||
case 'zap.button_zap': return 'Zap';
|
||||
case 'zap.button_open_wallet': return 'Open in Wallet';
|
||||
case 'zap.button_connect_wallet': return 'Connect Wallet';
|
||||
case 'zap.copy': return 'Copied to clipboard';
|
||||
case 'zap.error.invalid_custom_amount': return 'Invalid custom amount';
|
||||
case 'zap.error.no_wallet': return 'No lightning wallet installed';
|
||||
case 'zap.error.no_lud16': return 'No lightning address found';
|
||||
case 'profile.past_streams': return 'Past Streams';
|
||||
case 'profile.edit.display_name': return 'Display Name';
|
||||
case 'profile.edit.about': return 'About';
|
||||
case 'profile.edit.nip05': return 'Nostr Address';
|
||||
case 'profile.edit.lud16': return 'Lightning Address';
|
||||
case 'profile.edit.error.logged_out': return 'Cant edit profile when logged out';
|
||||
case 'settings.button_profile': return 'Edit Profile';
|
||||
case 'settings.button_wallet': return 'Wallet Settings';
|
||||
case 'settings.profile.display_name': return 'Display Name';
|
||||
case 'settings.profile.about': return 'About';
|
||||
case 'settings.profile.nip05': return 'Nostr Address';
|
||||
case 'settings.profile.lud16': return 'Lightning Address';
|
||||
case 'settings.profile.error.logged_out': return 'Cant edit profile when logged out';
|
||||
case 'settings.wallet.connect_wallet': return 'Connect Wallet (NWC nwc://)';
|
||||
case 'settings.wallet.disconnect_wallet': return 'Disconnect Wallet';
|
||||
case 'settings.wallet.error.logged_out': return 'Cant connect wallet when logged out';
|
||||
case 'login.username': return 'Username';
|
||||
case 'login.amber': return 'Login with Amber';
|
||||
case 'login.key': return 'Login with Key';
|
||||
|
Reference in New Issue
Block a user