- Added Flutter invite screens for accepting/resolving invitations and handling invalid states with `InviteScreen` and `InvalidInviteScreen`. - Integrated `InviteController` with accompanying `InviteApi` for resolving and accepting invites. - Updated routing logic to handle `/invite` and `/invite/invalid` paths. - Added localization strings for invite-related messages. - Enabled Flutter deep link handling across all supported platforms. - Implemented unit tests for `InviteController` and `InviteLinkService`. - Updated project entitlements and configurations for invite link validation on iOS/Android. - Enhanced dependency injection with invite modules and services.
85 lines
1.9 KiB
Dart
85 lines
1.9 KiB
Dart
// ignore: unused_import
|
|
import 'package:intl/intl.dart' as intl;
|
|
import 'app_localizations.dart';
|
|
|
|
// ignore_for_file: type=lint
|
|
|
|
/// The translations for English (`en`).
|
|
class AppLocalizationsEn extends AppLocalizations {
|
|
AppLocalizationsEn([String locale = 'en']) : super(locale);
|
|
|
|
@override
|
|
String get appTitle => 'Mosenioring';
|
|
|
|
@override
|
|
String get signInTitle => 'Sign in';
|
|
|
|
@override
|
|
String get welcomeTitle => 'Welcome';
|
|
|
|
@override
|
|
String get emailLabel => 'Email';
|
|
|
|
@override
|
|
String get passwordLabel => 'Password';
|
|
|
|
@override
|
|
String get loginButton => 'Sign in with Keycloak';
|
|
|
|
@override
|
|
String get loginRequired => 'Email and password are required.';
|
|
|
|
@override
|
|
String get signedInMessage => 'You are signed in.';
|
|
|
|
@override
|
|
String get logoutTooltip => 'Logout';
|
|
|
|
@override
|
|
String get inviteTitle => 'Invitation';
|
|
|
|
@override
|
|
String get inviteLoadingMessage => 'Loading invitation...';
|
|
|
|
@override
|
|
String get inviteWaitingMessage => 'Waiting for invitation link.';
|
|
|
|
@override
|
|
String get inviteDetailsTitle => 'You\'re invited';
|
|
|
|
@override
|
|
String get inviteEmailLabel => 'Email';
|
|
|
|
@override
|
|
String get inviteRoleLabel => 'Role';
|
|
|
|
@override
|
|
String get inviteExpiresLabel => 'Expires';
|
|
|
|
@override
|
|
String get inviteContinueButton => 'Continue';
|
|
|
|
@override
|
|
String get inviteRetryButton => 'Retry';
|
|
|
|
@override
|
|
String get inviteOfflineResolveMessage =>
|
|
'Internet required to accept the invitation.';
|
|
|
|
@override
|
|
String get inviteOfflineAcceptMessage =>
|
|
'Internet required to accept the invitation.';
|
|
|
|
@override
|
|
String get inviteGenericError => 'Something went wrong with the invitation.';
|
|
|
|
@override
|
|
String get inviteInvalidTitle => 'Invitation unavailable';
|
|
|
|
@override
|
|
String get inviteInvalidMessage => 'This invitation is invalid or expired.';
|
|
|
|
@override
|
|
String get inviteDismissButton => 'Back to sign in';
|
|
}
|