366 lines
7.0 KiB
Dart
366 lines
7.0 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
|
|
|
|
class S {
|
|
S();
|
|
|
|
static S 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;
|
|
S.current = S();
|
|
|
|
return S.current;
|
|
});
|
|
}
|
|
|
|
static S of(BuildContext context) {
|
|
return Localizations.of<S>(context, S);
|
|
}
|
|
|
|
/// `About`
|
|
String get about {
|
|
return Intl.message(
|
|
'About',
|
|
name: 'about',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Navigation`
|
|
String get navigation {
|
|
return Intl.message(
|
|
'Navigation',
|
|
name: 'navigation',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Submitting...`
|
|
String get submitting {
|
|
return Intl.message(
|
|
'Submitting...',
|
|
name: 'submitting',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Submitting, please wait...`
|
|
String get submitting_please_wait {
|
|
return Intl.message(
|
|
'Submitting, please wait...',
|
|
name: 'submitting_please_wait',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Recalculating...`
|
|
String get recalculating {
|
|
return Intl.message(
|
|
'Recalculating...',
|
|
name: 'recalculating',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Loading, please wait...`
|
|
String get loading_please_wait {
|
|
return Intl.message(
|
|
'Loading, please wait...',
|
|
name: 'loading_please_wait',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Tap back again to exit`
|
|
String get tap_back_again_to_exit {
|
|
return Intl.message(
|
|
'Tap back again to exit',
|
|
name: 'tap_back_again_to_exit',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Since 1999, we have been committed to developing a complete and powerful sales system, helping thousands of small businesses handle sales smoothly. Currently we have two main products.`
|
|
String get main_content_1 {
|
|
return Intl.message(
|
|
'Since 1999, we have been committed to developing a complete and powerful sales system, helping thousands of small businesses handle sales smoothly. Currently we have two main products.',
|
|
name: 'main_content_1',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `MiniPOS`
|
|
String get minipos {
|
|
return Intl.message(
|
|
'MiniPOS',
|
|
name: 'minipos',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Point of sale system solution`
|
|
String get point_of_sale_system_solution {
|
|
return Intl.message(
|
|
'Point of sale system solution',
|
|
name: 'point_of_sale_system_solution',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Learn more...`
|
|
String get learn_more {
|
|
return Intl.message(
|
|
'Learn more...',
|
|
name: 'learn_more',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Information`
|
|
String get information {
|
|
return Intl.message(
|
|
'Information',
|
|
name: 'information',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Service policy`
|
|
String get service_policy {
|
|
return Intl.message(
|
|
'Service policy',
|
|
name: 'service_policy',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Return policy`
|
|
String get return_policy {
|
|
return Intl.message(
|
|
'Return policy',
|
|
name: 'return_policy',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Privacy policy`
|
|
String get privacy_policy {
|
|
return Intl.message(
|
|
'Privacy policy',
|
|
name: 'privacy_policy',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `License agreement`
|
|
String get license_agreement {
|
|
return Intl.message(
|
|
'License agreement',
|
|
name: 'license_agreement',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Support`
|
|
String get support {
|
|
return Intl.message(
|
|
'Support',
|
|
name: 'support',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Wiki`
|
|
String get wiki {
|
|
return Intl.message(
|
|
'Wiki',
|
|
name: 'wiki',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Support ticket`
|
|
String get support_ticket {
|
|
return Intl.message(
|
|
'Support ticket',
|
|
name: 'support_ticket',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Contact us`
|
|
String get contact_us {
|
|
return Intl.message(
|
|
'Contact us',
|
|
name: 'contact_us',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `About us`
|
|
String get about_us {
|
|
return Intl.message(
|
|
'About us',
|
|
name: 'about_us',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Renew license`
|
|
String get renew_license {
|
|
return Intl.message(
|
|
'Renew license',
|
|
name: 'renew_license',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Developers of`
|
|
String get developer_of {
|
|
return Intl.message(
|
|
'Developers of',
|
|
name: 'developer_of',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Home`
|
|
String get home {
|
|
return Intl.message(
|
|
'Home',
|
|
name: 'home',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Download`
|
|
String get download {
|
|
return Intl.message(
|
|
'Download',
|
|
name: 'download',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Tutorials`
|
|
String get tutorials {
|
|
return Intl.message(
|
|
'Tutorials',
|
|
name: 'tutorials',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Shop`
|
|
String get shop {
|
|
return Intl.message(
|
|
'Shop',
|
|
name: 'shop',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Blog`
|
|
String get blog {
|
|
return Intl.message(
|
|
'Blog',
|
|
name: 'blog',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Login`
|
|
String get login {
|
|
return Intl.message(
|
|
'Login',
|
|
name: 'login',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
|
|
/// `Logout`
|
|
String get logout {
|
|
return Intl.message(
|
|
'Logout',
|
|
name: 'logout',
|
|
desc: '',
|
|
args: [],
|
|
);
|
|
}
|
|
}
|
|
|
|
class AppLocalizationDelegate extends LocalizationsDelegate<S> {
|
|
const AppLocalizationDelegate();
|
|
|
|
List<Locale> get supportedLocales {
|
|
return const <Locale>[
|
|
Locale.fromSubtags(languageCode: 'en'),
|
|
Locale.fromSubtags(languageCode: 'zh', countryCode: 'CN'),
|
|
];
|
|
}
|
|
|
|
@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) {
|
|
if (locale != null) {
|
|
for (var supportedLocale in supportedLocales) {
|
|
if (supportedLocale.languageCode == locale.languageCode) {
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
} |