mirror of
https://github.com/nostrlabs-io/zap-stream-flutter.git
synced 2025-06-16 11:58:50 +00:00
feat: disconnect wallet
This commit is contained in:
@ -67,6 +67,7 @@ class TranslationsVi extends Translations {
|
||||
|
||||
@override late final _TranslationsZapVi zap = _TranslationsZapVi._(_root);
|
||||
@override late final _TranslationsProfileVi profile = _TranslationsProfileVi._(_root);
|
||||
@override late final _TranslationsSettingsVi settings = _TranslationsSettingsVi._(_root);
|
||||
@override late final _TranslationsLoginVi login = _TranslationsLoginVi._(_root);
|
||||
}
|
||||
|
||||
@ -118,6 +119,8 @@ class _TranslationsButtonVi 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 _TranslationsZapVi 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 _TranslationsZapErrorVi error = _TranslationsZapErrorVi._(_root);
|
||||
}
|
||||
@ -171,7 +175,19 @@ class _TranslationsProfileVi extends TranslationsProfileEn {
|
||||
|
||||
// Translations
|
||||
@override String get past_streams => 'Past Streams';
|
||||
@override late final _TranslationsProfileEditVi edit = _TranslationsProfileEditVi._(_root);
|
||||
}
|
||||
|
||||
// Path: settings
|
||||
class _TranslationsSettingsVi extends TranslationsSettingsEn {
|
||||
_TranslationsSettingsVi._(TranslationsVi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsVi _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get button_profile => 'Edit Profile';
|
||||
@override String get button_wallet => 'Wallet Settings';
|
||||
@override late final _TranslationsSettingsProfileVi profile = _TranslationsSettingsProfileVi._(_root);
|
||||
@override late final _TranslationsSettingsWalletVi wallet = _TranslationsSettingsWalletVi._(_root);
|
||||
}
|
||||
|
||||
// Path: login
|
||||
@ -247,9 +263,9 @@ class _TranslationsZapErrorVi extends TranslationsZapErrorEn {
|
||||
@override String get no_lud16 => 'No lightning address found';
|
||||
}
|
||||
|
||||
// Path: profile.edit
|
||||
class _TranslationsProfileEditVi extends TranslationsProfileEditEn {
|
||||
_TranslationsProfileEditVi._(TranslationsVi root) : this._root = root, super.internal(root);
|
||||
// Path: settings.profile
|
||||
class _TranslationsSettingsProfileVi extends TranslationsSettingsProfileEn {
|
||||
_TranslationsSettingsProfileVi._(TranslationsVi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsVi _root; // ignore: unused_field
|
||||
|
||||
@ -258,7 +274,19 @@ class _TranslationsProfileEditVi extends TranslationsProfileEditEn {
|
||||
@override String get about => 'About';
|
||||
@override String get nip05 => 'Nostr Address';
|
||||
@override String get lud16 => 'Lightning Address';
|
||||
@override late final _TranslationsProfileEditErrorVi error = _TranslationsProfileEditErrorVi._(_root);
|
||||
@override late final _TranslationsSettingsProfileErrorVi error = _TranslationsSettingsProfileErrorVi._(_root);
|
||||
}
|
||||
|
||||
// Path: settings.wallet
|
||||
class _TranslationsSettingsWalletVi extends TranslationsSettingsWalletEn {
|
||||
_TranslationsSettingsWalletVi._(TranslationsVi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsVi _root; // ignore: unused_field
|
||||
|
||||
// Translations
|
||||
@override String get connect_wallet => 'Connect Wallet (NWC nwc://)';
|
||||
@override String get disconnect_wallet => 'Disconnect Wallet';
|
||||
@override late final _TranslationsSettingsWalletErrorVi error = _TranslationsSettingsWalletErrorVi._(_root);
|
||||
}
|
||||
|
||||
// Path: login.error
|
||||
@ -319,9 +347,9 @@ class _TranslationsStreamChatRaidVi extends TranslationsStreamChatRaidEn {
|
||||
@override String countdown({required Object time}) => 'Raiding in ${time}';
|
||||
}
|
||||
|
||||
// Path: profile.edit.error
|
||||
class _TranslationsProfileEditErrorVi extends TranslationsProfileEditErrorEn {
|
||||
_TranslationsProfileEditErrorVi._(TranslationsVi root) : this._root = root, super.internal(root);
|
||||
// Path: settings.profile.error
|
||||
class _TranslationsSettingsProfileErrorVi extends TranslationsSettingsProfileErrorEn {
|
||||
_TranslationsSettingsProfileErrorVi._(TranslationsVi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsVi _root; // ignore: unused_field
|
||||
|
||||
@ -329,6 +357,16 @@ class _TranslationsProfileEditErrorVi extends TranslationsProfileEditErrorEn {
|
||||
@override String get logged_out => 'Cant edit profile when logged out';
|
||||
}
|
||||
|
||||
// Path: settings.wallet.error
|
||||
class _TranslationsSettingsWalletErrorVi extends TranslationsSettingsWalletErrorEn {
|
||||
_TranslationsSettingsWalletErrorVi._(TranslationsVi root) : this._root = root, super.internal(root);
|
||||
|
||||
final TranslationsVi _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 TranslationsVi {
|
||||
@ -381,6 +419,8 @@ extension on TranslationsVi {
|
||||
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 TranslationsVi {
|
||||
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