Files
topicApp/lib/generated/l10n.dart
2024-11-10 13:08:37 +08:00

430 lines
8.6 KiB
Dart

// 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<S> 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<S>(context, S);
}
/// `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: [],
);
}
/// `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: [],
);
}
/// `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<S> {
const AppLocalizationDelegate();
List<Locale> get supportedLocales {
return const <Locale>[
Locale.fromSubtags(languageCode: 'en'),
Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant'),
];
}
@override
bool isSupported(Locale locale) => _isSupported(locale);
@override
Future<S> 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;
}
}