mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 06:33:43 +08:00
l10n: add Japanese
This commit is contained in:
parent
ff07b07cc6
commit
946b465973
@ -17,12 +17,14 @@ import 'package:intl/message_lookup_by_library.dart';
|
||||
import 'package:intl/src/intl_helpers.dart';
|
||||
|
||||
import 'messages_en.dart' as messages_en;
|
||||
import 'messages_ja.dart' as messages_ja;
|
||||
import 'messages_zh_CN.dart' as messages_zh_cn;
|
||||
import 'messages_zh_TW.dart' as messages_zh_tw;
|
||||
|
||||
typedef Future<dynamic> LibraryLoader();
|
||||
Map<String, LibraryLoader> _deferredLibraries = {
|
||||
'en': () => new SynchronousFuture(null),
|
||||
'ja': () => new SynchronousFuture(null),
|
||||
'zh_CN': () => new SynchronousFuture(null),
|
||||
'zh_TW': () => new SynchronousFuture(null),
|
||||
};
|
||||
@ -31,6 +33,8 @@ MessageLookupByLibrary? _findExact(String localeName) {
|
||||
switch (localeName) {
|
||||
case 'en':
|
||||
return messages_en.messages;
|
||||
case 'ja':
|
||||
return messages_ja.messages;
|
||||
case 'zh_CN':
|
||||
return messages_zh_cn.messages;
|
||||
case 'zh_TW':
|
||||
|
31
lib/generated/intl/messages_ja.dart
Normal file
31
lib/generated/intl/messages_ja.dart
Normal file
@ -0,0 +1,31 @@
|
||||
// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart
|
||||
// This is a library that provides messages for a ja 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, avoid_escaping_inner_quotes
|
||||
// ignore_for_file:unnecessary_string_interpolations, unnecessary_string_escapes
|
||||
|
||||
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 => 'ja';
|
||||
|
||||
static String m2(v0, v1) => "SCToolBox V ${v0} ${v1}";
|
||||
|
||||
final messages = _notInlinedMessages(_notInlinedMessages);
|
||||
static Map<String, Function> _notInlinedMessages(_) => <String, Function>{
|
||||
"app_index_version_info": m2,
|
||||
"app_language_code": MessageLookupByLibrary.simpleMessage("ja"),
|
||||
"app_language_name": MessageLookupByLibrary.simpleMessage("日本語")
|
||||
};
|
||||
}
|
@ -3700,6 +3700,7 @@ class AppLocalizationDelegate extends LocalizationsDelegate<S> {
|
||||
List<Locale> get supportedLocales {
|
||||
return const <Locale>[
|
||||
Locale.fromSubtags(languageCode: 'en'),
|
||||
Locale.fromSubtags(languageCode: 'ja'),
|
||||
Locale.fromSubtags(languageCode: 'zh', countryCode: 'CN'),
|
||||
Locale.fromSubtags(languageCode: 'zh', countryCode: 'TW'),
|
||||
];
|
||||
|
9
lib/l10n/intl_ja.arb
Normal file
9
lib/l10n/intl_ja.arb
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"@@locale": "ja",
|
||||
"@auto_translate_locale": "ja",
|
||||
"app_language_name": "日本語",
|
||||
"@app_language_name": {},
|
||||
"app_language_code": "ja",
|
||||
"@app_language_code": {},
|
||||
"app_index_version_info": "SCToolBox V {v0} {v1}"
|
||||
}
|
Loading…
Reference in New Issue
Block a user