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 TranslationsSr extends Translations {
|
||||
|
||||
@override late final _TranslationsZapSr zap = _TranslationsZapSr._(_root);
|
||||
@override late final _TranslationsProfileSr profile = _TranslationsProfileSr._(_root);
|
||||
@override late final _TranslationsSettingsSr settings = _TranslationsSettingsSr._(_root);
|
||||
@override late final _TranslationsLoginSr login = _TranslationsLoginSr._(_root);
|
||||
}
|
||||
|
||||
@ -118,6 +119,8 @@ class _TranslationsButtonSr 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 _TranslationsZapSr 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 _TranslationsZapErrorSr error = _TranslationsZapErrorSr._(_root);
|
||||
}
|
||||
@ -171,7 +175,19 @@ class _TranslationsProfileSr extends TranslationsProfileEn {
|
||||
|
||||
// Translations
|
||||
@override String get past_streams => 'Past Streams';
|
||||
@override late final _TranslationsProfileEditSr edit = _TranslationsProfileEditSr._(_root);
|
||||
}
|
||||
|
||||
// Path: settings
|
||||
class _TranslationsSettingsSr extends TranslationsSettingsEn {
|
||||
_TranslationsSettingsSr._(TranslationsSr root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsSr _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get button_profile => 'Edit Profile';
|
||||
@override String get button_wallet => 'Wallet Settings';
|
||||
@override late final _TranslationsSettingsProfileSr profile = _TranslationsSettingsProfileSr._(_root);
|
||||
@override late final _TranslationsSettingsWalletSr wallet = _TranslationsSettingsWalletSr._(_root);
|
||||
}
|
||||
|
||||
// Path: login
|
||||
@ -247,9 +263,9 @@ class _TranslationsZapErrorSr extends TranslationsZapErrorEn {
|
||||
@override String get no_lud16 => 'No lightning address found';
|
||||
}
|
||||
|
||||
// Path: profile.edit
|
||||
class _TranslationsProfileEditSr extends TranslationsProfileEditEn {
|
||||
_TranslationsProfileEditSr._(TranslationsSr root) : this._root = root, super.internal(root);
|
||||
// Path: settings.profile
|
||||
class _TranslationsSettingsProfileSr extends TranslationsSettingsProfileEn {
|
||||
_TranslationsSettingsProfileSr._(TranslationsSr root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsSr _root; // ignore: unused_field
|
||||
|
||||
@ -258,7 +274,19 @@ class _TranslationsProfileEditSr extends TranslationsProfileEditEn {
|
||||
@override String get about => 'About';
|
||||
@override String get nip05 => 'Nostr Address';
|
||||
@override String get lud16 => 'Lightning Address';
|
||||
@override late final _TranslationsProfileEditErrorSr error = _TranslationsProfileEditErrorSr._(_root);
|
||||
@override late final _TranslationsSettingsProfileErrorSr error = _TranslationsSettingsProfileErrorSr._(_root);
|
||||
}
|
||||
|
||||
// Path: settings.wallet
|
||||
class _TranslationsSettingsWalletSr extends TranslationsSettingsWalletEn {
|
||||
_TranslationsSettingsWalletSr._(TranslationsSr root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsSr _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get connect_wallet => 'Connect Wallet (NWC nwc://)';
|
||||
@override String get disconnect_wallet => 'Disconnect Wallet';
|
||||
@override late final _TranslationsSettingsWalletErrorSr error = _TranslationsSettingsWalletErrorSr._(_root);
|
||||
}
|
||||
|
||||
// Path: login.error
|
||||
@ -319,9 +347,9 @@ class _TranslationsStreamChatRaidSr extends TranslationsStreamChatRaidEn {
|
||||
@override String countdown({required Object time}) => 'Raiding in ${time}';
|
||||
}
|
||||
|
||||
// Path: profile.edit.error
|
||||
class _TranslationsProfileEditErrorSr extends TranslationsProfileEditErrorEn {
|
||||
_TranslationsProfileEditErrorSr._(TranslationsSr root) : this._root = root, super.internal(root);
|
||||
// Path: settings.profile.error
|
||||
class _TranslationsSettingsProfileErrorSr extends TranslationsSettingsProfileErrorEn {
|
||||
_TranslationsSettingsProfileErrorSr._(TranslationsSr root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsSr _root; // ignore: unused_field
|
||||
|
||||
@ -329,6 +357,16 @@ class _TranslationsProfileEditErrorSr extends TranslationsProfileEditErrorEn {
|
||||
@override String get logged_out => 'Cant edit profile when logged out';
|
||||
}
|
||||
|
||||
// Path: settings.wallet.error
|
||||
class _TranslationsSettingsWalletErrorSr extends TranslationsSettingsWalletErrorEn {
|
||||
_TranslationsSettingsWalletErrorSr._(TranslationsSr root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsSr _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 TranslationsSr {
|
||||
@ -381,6 +419,8 @@ extension on TranslationsSr {
|
||||
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 TranslationsSr {
|
||||
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