This commit is contained in:
2020-12-23 00:43:59 -05:00
parent 0fd880f57b
commit 86c845b49b
54 changed files with 3638 additions and 107 deletions

View File

@@ -16,16 +16,20 @@ import 'package:intl/message_lookup_by_library.dart';
import 'package:intl/src/intl_helpers.dart';
import 'messages_en.dart' as messages_en;
import 'messages_zh_CN.dart' as messages_zh_cn;
typedef Future<dynamic> LibraryLoader();
Map<String, LibraryLoader> _deferredLibraries = {
'en': () => new Future.value(null),
'zh_CN': () => new Future.value(null),
};
MessageLookupByLibrary _findExact(String localeName) {
switch (localeName) {
case 'en':
return messages_en.messages;
case 'zh_CN':
return messages_zh_cn.messages;
default:
return null;
}

View File

@@ -21,6 +21,35 @@ class MessageLookup extends MessageLookupByLibrary {
final messages = _notInlinedMessages(_notInlinedMessages);
static _notInlinedMessages(_) => <String, Function> {
"about" : MessageLookupByLibrary.simpleMessage("About"),
"about_us" : MessageLookupByLibrary.simpleMessage("About us"),
"blog" : MessageLookupByLibrary.simpleMessage("Blog"),
"contact_us" : MessageLookupByLibrary.simpleMessage("Contact us"),
"developer_of" : MessageLookupByLibrary.simpleMessage("Developers of"),
"download" : MessageLookupByLibrary.simpleMessage("Download"),
"home" : MessageLookupByLibrary.simpleMessage("Home"),
"information" : MessageLookupByLibrary.simpleMessage("Information"),
"learn_more" : MessageLookupByLibrary.simpleMessage("Learn more..."),
"license_agreement" : MessageLookupByLibrary.simpleMessage("License agreement"),
"loading_please_wait" : MessageLookupByLibrary.simpleMessage("Loading, please wait..."),
"login" : MessageLookupByLibrary.simpleMessage("Login"),
"logout" : MessageLookupByLibrary.simpleMessage("Logout"),
"main_content_1" : MessageLookupByLibrary.simpleMessage("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."),
"minipos" : MessageLookupByLibrary.simpleMessage("MiniPOS"),
"navigation" : MessageLookupByLibrary.simpleMessage("Navigation"),
"point_of_sale_system_solution" : MessageLookupByLibrary.simpleMessage("Point of sale system solution"),
"privacy_policy" : MessageLookupByLibrary.simpleMessage("Privacy policy"),
"recalculating" : MessageLookupByLibrary.simpleMessage("Recalculating..."),
"renew_license" : MessageLookupByLibrary.simpleMessage("Renew license"),
"return_policy" : MessageLookupByLibrary.simpleMessage("Return policy"),
"service_policy" : MessageLookupByLibrary.simpleMessage("Service policy"),
"shop" : MessageLookupByLibrary.simpleMessage("Shop"),
"submitting" : MessageLookupByLibrary.simpleMessage("Submitting..."),
"submitting_please_wait" : MessageLookupByLibrary.simpleMessage("Submitting, please wait..."),
"support" : MessageLookupByLibrary.simpleMessage("Support"),
"support_ticket" : MessageLookupByLibrary.simpleMessage("Support ticket"),
"tap_back_again_to_exit" : MessageLookupByLibrary.simpleMessage("Tap back again to exit"),
"tutorials" : MessageLookupByLibrary.simpleMessage("Tutorials"),
"wiki" : MessageLookupByLibrary.simpleMessage("Wiki")
};
}

View File

@@ -0,0 +1,55 @@
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
// This is a library that provides messages for a zh_CN locale. All the
// messages from the main program should be duplicated here with the same
// function name.
// Ignore issues from commonly used lints in this file.
// ignore_for_file:unnecessary_brace_in_string_interps, unnecessary_new
// ignore_for_file:prefer_single_quotes,comment_references, directives_ordering
// ignore_for_file:annotate_overrides,prefer_generic_function_type_aliases
// ignore_for_file:unused_import, file_names
import 'package:intl/intl.dart';
import 'package:intl/message_lookup_by_library.dart';
final messages = new MessageLookup();
typedef String MessageIfAbsent(String messageStr, List<dynamic> args);
class MessageLookup extends MessageLookupByLibrary {
String get localeName => 'zh_CN';
final messages = _notInlinedMessages(_notInlinedMessages);
static _notInlinedMessages(_) => <String, Function> {
"about" : MessageLookupByLibrary.simpleMessage("关于"),
"about_us" : MessageLookupByLibrary.simpleMessage("关于我们"),
"blog" : MessageLookupByLibrary.simpleMessage("博客"),
"contact_us" : MessageLookupByLibrary.simpleMessage("联系我们"),
"developer_of" : MessageLookupByLibrary.simpleMessage("开发者"),
"download" : MessageLookupByLibrary.simpleMessage("下载"),
"home" : MessageLookupByLibrary.simpleMessage("首页"),
"information" : MessageLookupByLibrary.simpleMessage("信息"),
"learn_more" : MessageLookupByLibrary.simpleMessage("了解更多..."),
"license_agreement" : MessageLookupByLibrary.simpleMessage("许可协议"),
"loading_please_wait" : MessageLookupByLibrary.simpleMessage("装载中,清稍候..."),
"login" : MessageLookupByLibrary.simpleMessage("登入"),
"logout" : MessageLookupByLibrary.simpleMessage("登出"),
"main_content_1" : MessageLookupByLibrary.simpleMessage("自从1999年来我们一直致力于开发完整的强大的销售系统帮助了上千小企业平滑的处理销售业务。当前我们有两个主要的产品。"),
"minipos" : MessageLookupByLibrary.simpleMessage("MiniPOS"),
"navigation" : MessageLookupByLibrary.simpleMessage("导航"),
"point_of_sale_system_solution" : MessageLookupByLibrary.simpleMessage("收款系统方案"),
"privacy_policy" : MessageLookupByLibrary.simpleMessage("私隐条款"),
"recalculating" : MessageLookupByLibrary.simpleMessage("运算中..."),
"renew_license" : MessageLookupByLibrary.simpleMessage("证书续期"),
"return_policy" : MessageLookupByLibrary.simpleMessage("退货条款"),
"service_policy" : MessageLookupByLibrary.simpleMessage("服务条款"),
"shop" : MessageLookupByLibrary.simpleMessage("线上购买"),
"submitting" : MessageLookupByLibrary.simpleMessage("提交中..."),
"submitting_please_wait" : MessageLookupByLibrary.simpleMessage("提交中,清稍候..."),
"support" : MessageLookupByLibrary.simpleMessage("技术支持"),
"support_ticket" : MessageLookupByLibrary.simpleMessage("客户提问"),
"tap_back_again_to_exit" : MessageLookupByLibrary.simpleMessage("再次点击返回退出"),
"tutorials" : MessageLookupByLibrary.simpleMessage("教程"),
"wiki" : MessageLookupByLibrary.simpleMessage("维基")
};
}

View File

@@ -35,7 +35,305 @@ class S {
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> {
@@ -44,6 +342,7 @@ class AppLocalizationDelegate extends LocalizationsDelegate<S> {
List<Locale> get supportedLocales {
return const <Locale>[
Locale.fromSubtags(languageCode: 'en'),
Locale.fromSubtags(languageCode: 'zh', countryCode: 'CN'),
];
}