// GENERATED CODE - DO NOT MODIFY BY HAND import 'package:flutter/material.dart'; import 'package:intl/intl.dart'; import 'intl/messages_all.dart'; // ************************************************************************** // Generator: Flutter Intl IDE plugin // Made by Localizely // ************************************************************************** // ignore_for_file: non_constant_identifier_names, lines_longer_than_80_chars // ignore_for_file: join_return_with_assignment, prefer_final_in_for_each // ignore_for_file: avoid_redundant_argument_values, avoid_escaping_inner_quotes class S { S(); static S? _current; static S get current { assert(_current != null, 'No instance of S was loaded. Try to initialize the S delegate before accessing S.current.'); return _current!; } static const AppLocalizationDelegate delegate = AppLocalizationDelegate(); static Future load(Locale locale) { final name = (locale.countryCode?.isEmpty ?? false) ? locale.languageCode : locale.toString(); final localeName = Intl.canonicalizedLocale(name); return initializeMessages(localeName).then((_) { Intl.defaultLocale = localeName; final instance = S(); S._current = instance; return instance; }); } static S of(BuildContext context) { final instance = S.maybeOf(context); assert(instance != null, 'No instance of S present in the widget tree. Did you add S.delegate in localizationsDelegates?'); return instance!; } static S? maybeOf(BuildContext context) { return Localizations.of(context, S); } /// `Comprehensive Care Guardian` String get app_name { return Intl.message( 'Comprehensive Care Guardian', name: 'app_name', desc: '', args: [], ); } /// `Email/Username` String get email_label { return Intl.message( 'Email/Username', name: 'email_label', desc: '', args: [], ); } /// `Password` String get password_label { return Intl.message( 'Password', name: 'password_label', desc: '', args: [], ); } /// `Login` String get login_button { return Intl.message( 'Login', name: 'login_button', desc: '', args: [], ); } /// `Logout` String get logout_button { return Intl.message( 'Logout', name: 'logout_button', desc: '', args: [], ); } /// `Register` String get register_button { return Intl.message( 'Register', name: 'register_button', desc: '', args: [], ); } /// `Forgot password` String get forgot_password { return Intl.message( 'Forgot password', name: 'forgot_password', desc: '', args: [], ); } /// `Please enter your email` String get register_error_email_empty { return Intl.message( 'Please enter your email', name: 'register_error_email_empty', desc: '', args: [], ); } /// `Please enter a valid email` String get register_error_email_invalid { return Intl.message( 'Please enter a valid email', name: 'register_error_email_invalid', desc: '', args: [], ); } /// `Please enter your username` String get register_error_username_empty { return Intl.message( 'Please enter your username', name: 'register_error_username_empty', desc: '', args: [], ); } /// `Please enter your password` String get register_error_password_empty { return Intl.message( 'Please enter your password', name: 'register_error_password_empty', desc: '', args: [], ); } /// `Please send the verification code first` String get register_error_verificationCode_not_send { return Intl.message( 'Please send the verification code first', name: 'register_error_verificationCode_not_send', desc: '', args: [], ); } /// `Verification code does not match` String get register_error_verificationCode_not_match { return Intl.message( 'Verification code does not match', name: 'register_error_verificationCode_not_match', desc: '', args: [], ); } /// `Username or email already exists, please try again` String get register_error_usernameOrEmail_exist { return Intl.message( 'Username or email already exists, please try again', name: 'register_error_usernameOrEmail_exist', desc: '', args: [], ); } /// `Register Failed: Server error, please try again later` String get register_error_server_error { return Intl.message( 'Register Failed: Server error, please try again later', name: 'register_error_server_error', desc: '', args: [], ); } /// `Register Success` String get register_success { return Intl.message( 'Register Success', name: 'register_success', desc: '', args: [], ); } /// `Return to Login Page` String get register_turn_back { return Intl.message( 'Return to Login Page', name: 'register_turn_back', desc: '', args: [], ); } /// `Live View` String get realtime_video { return Intl.message( 'Live View', name: 'realtime_video', desc: '', args: [], ); } /// `Fall Record` String get fall_record { return Intl.message( 'Fall Record', name: 'fall_record', desc: '', args: [], ); } /// `Switch View` String get switch_camera { return Intl.message( 'Switch View', name: 'switch_camera', desc: '', args: [], ); } /// `Knowledge` String get additional_information { return Intl.message( 'Knowledge', name: 'additional_information', desc: '', args: [], ); } /// `Profile` String get personal_information { return Intl.message( 'Profile', name: 'personal_information', desc: '', args: [], ); } /// `Home` String get home { return Intl.message( 'Home', name: 'home', desc: '', args: [], ); } /// `Welcome, {username}!` String welcome_message(Object username) { return Intl.message( 'Welcome, $username!', name: 'welcome_message', desc: '', args: [username], ); } /// `Basic Information` String get basic_information_setting { return Intl.message( 'Basic Information', name: 'basic_information_setting', desc: '', args: [], ); } /// `Account` String get account_setting { return Intl.message( 'Account', name: 'account_setting', desc: '', args: [], ); } /// `Language` String get language_setting { return Intl.message( 'Language', name: 'language_setting', desc: '', args: [], ); } /// `Call Emergency Phone` String get call_phone { return Intl.message( 'Call Emergency Phone', name: 'call_phone', desc: '', args: [], ); } /// `Name` String get name { return Intl.message( 'Name', name: 'name', desc: '', args: [], ); } /// `Phone Number` String get phone { return Intl.message( 'Phone Number', name: 'phone', desc: '', args: [], ); } /// `Gender` String get gender { return Intl.message( 'Gender', name: 'gender', desc: '', args: [], ); } /// `Address` String get address { return Intl.message( 'Address', name: 'address', desc: '', args: [], ); } /// `Edit` String get edit { return Intl.message( 'Edit', name: 'edit', desc: '', args: [], ); } /// `Save` String get save { return Intl.message( 'Save', name: 'save', desc: '', args: [], ); } /// `Email` String get email { return Intl.message( 'Email', name: 'email', desc: '', args: [], ); } /// `ID: {displayIndex}` String fall_id(Object displayIndex) { return Intl.message( 'ID: $displayIndex', name: 'fall_id', desc: '', args: [displayIndex], ); } /// `Time: {time}\nReason: {reason},\nLocation: {location}\n` String fall_detail(Object time, Object reason, Object location) { return Intl.message( 'Time: $time\nReason: $reason,\nLocation: $location\n', name: 'fall_detail', desc: '', args: [time, reason, location], ); } /// `Fall Detail` String get fall_detail_title { return Intl.message( 'Fall Detail', name: 'fall_detail_title', desc: '', args: [], ); } /// `Reason: {reason}` String fall_detail_reason(Object reason) { return Intl.message( 'Reason: $reason', name: 'fall_detail_reason', desc: '', args: [reason], ); } /// `Location: {location}` String fall_detail_location(Object location) { return Intl.message( 'Location: $location', name: 'fall_detail_location', desc: '', args: [location], ); } /// `Time: {time}` String fall_detail_time(Object time) { return Intl.message( 'Time: $time', name: 'fall_detail_time', desc: '', args: [time], ); } /// `No fall record` String get fall_record_empty { return Intl.message( 'No fall record', name: 'fall_record_empty', desc: '', args: [], ); } /// `Language Setting` String get language_setting_alert_title { return Intl.message( 'Language Setting', name: 'language_setting_alert_title', desc: '', args: [], ); } /// `Return to the home page to complete the language setting(Confirm to redirect), otherwise some languages will not be updated in real time!` String get language_alert { return Intl.message( 'Return to the home page to complete the language setting(Confirm to redirect), otherwise some languages will not be updated in real time!', name: 'language_alert', desc: '', args: [], ); } /// `Reopen the APP to complete the language setting, otherwise some languages will not be updated in real time!` String get language_alert_android { return Intl.message( 'Reopen the APP to complete the language setting, otherwise some languages will not be updated in real time!', name: 'language_alert_android', desc: '', args: [], ); } /// `Cancel` String get cancel { return Intl.message( 'Cancel', name: 'cancel', desc: '', args: [], ); } /// `Confirm` String get confirm { return Intl.message( 'Confirm', name: 'confirm', desc: '', args: [], ); } } class AppLocalizationDelegate extends LocalizationsDelegate { const AppLocalizationDelegate(); List get supportedLocales { return const [ Locale.fromSubtags(languageCode: 'en'), Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant'), ]; } @override bool isSupported(Locale locale) => _isSupported(locale); @override Future load(Locale locale) => S.load(locale); @override bool shouldReload(AppLocalizationDelegate old) => false; bool _isSupported(Locale locale) { for (var supportedLocale in supportedLocales) { if (supportedLocale.languageCode == locale.languageCode) { return true; } } return false; } }