Unverified Commit e23a6586 authored by Alexander Aprelev's avatar Alexander Aprelev Committed by GitHub

Rev dependencies up and regenerate stock_messages. (#15469)

This fixes https://github.com/flutter/flutter/issues/15458.
parent d682259e
...@@ -16,7 +16,7 @@ dependencies: ...@@ -16,7 +16,7 @@ dependencies:
crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -29,7 +29,7 @@ dev_dependencies: ...@@ -29,7 +29,7 @@ dev_dependencies:
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
file: 2.3.7 # TRANSITIVE DEPENDENCY file: 2.3.7 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -21,12 +21,12 @@ dependencies: ...@@ -21,12 +21,12 @@ dependencies:
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
dart_style: 1.0.10 # TRANSITIVE DEPENDENCY dart_style: 1.0.10 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
intl: 0.15.2 # TRANSITIVE DEPENDENCY intl: 0.15.2 # TRANSITIVE DEPENDENCY
intl_translation: 0.16.2 # TRANSITIVE DEPENDENCY intl_translation: 0.16.3 # TRANSITIVE DEPENDENCY
io: 0.3.2+1 # TRANSITIVE DEPENDENCY io: 0.3.2+1 # TRANSITIVE DEPENDENCY
isolate: 1.1.0 # TRANSITIVE DEPENDENCY isolate: 1.1.0 # TRANSITIVE DEPENDENCY
js: 0.6.1 # TRANSITIVE DEPENDENCY js: 0.6.1 # TRANSITIVE DEPENDENCY
......
...@@ -22,7 +22,7 @@ dev_dependencies: ...@@ -22,7 +22,7 @@ dev_dependencies:
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
file: 2.3.7 # TRANSITIVE DEPENDENCY file: 2.3.7 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -33,7 +33,7 @@ dev_dependencies: ...@@ -33,7 +33,7 @@ dev_dependencies:
crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -19,7 +19,7 @@ dependencies: ...@@ -19,7 +19,7 @@ dependencies:
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
file: 2.3.7 # TRANSITIVE DEPENDENCY file: 2.3.7 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -19,7 +19,7 @@ dependencies: ...@@ -19,7 +19,7 @@ dependencies:
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
file: 2.3.7 # TRANSITIVE DEPENDENCY file: 2.3.7 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -19,7 +19,7 @@ dependencies: ...@@ -19,7 +19,7 @@ dependencies:
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
file: 2.3.7 # TRANSITIVE DEPENDENCY file: 2.3.7 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -19,7 +19,7 @@ dependencies: ...@@ -19,7 +19,7 @@ dependencies:
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
file: 2.3.7 # TRANSITIVE DEPENDENCY file: 2.3.7 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -27,7 +27,7 @@ dev_dependencies: ...@@ -27,7 +27,7 @@ dev_dependencies:
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
file: 2.3.7 # TRANSITIVE DEPENDENCY file: 2.3.7 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -19,7 +19,7 @@ dev_dependencies: ...@@ -19,7 +19,7 @@ dev_dependencies:
crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -25,7 +25,7 @@ dev_dependencies: ...@@ -25,7 +25,7 @@ dev_dependencies:
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
file: 2.3.7 # TRANSITIVE DEPENDENCY file: 2.3.7 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
io: 0.3.2+1 # TRANSITIVE DEPENDENCY io: 0.3.2+1 # TRANSITIVE DEPENDENCY
......
...@@ -25,7 +25,7 @@ dev_dependencies: ...@@ -25,7 +25,7 @@ dev_dependencies:
crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -23,7 +23,7 @@ dev_dependencies: ...@@ -23,7 +23,7 @@ dev_dependencies:
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
file: 2.3.7 # TRANSITIVE DEPENDENCY file: 2.3.7 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -34,7 +34,7 @@ dev_dependencies: ...@@ -34,7 +34,7 @@ dev_dependencies:
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
file: 2.3.7 # TRANSITIVE DEPENDENCY file: 2.3.7 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -16,7 +16,7 @@ dependencies: ...@@ -16,7 +16,7 @@ dependencies:
crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -19,7 +19,7 @@ dev_dependencies: ...@@ -19,7 +19,7 @@ dev_dependencies:
crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -18,7 +18,7 @@ dev_dependencies: ...@@ -18,7 +18,7 @@ dev_dependencies:
crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -22,7 +22,7 @@ dev_dependencies: ...@@ -22,7 +22,7 @@ dev_dependencies:
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
file: 2.3.7 # TRANSITIVE DEPENDENCY file: 2.3.7 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -22,7 +22,7 @@ dev_dependencies: ...@@ -22,7 +22,7 @@ dev_dependencies:
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
file: 2.3.7 # TRANSITIVE DEPENDENCY file: 2.3.7 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -15,7 +15,7 @@ dependencies: ...@@ -15,7 +15,7 @@ dependencies:
crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -6,6 +6,7 @@ import 'dart:async'; ...@@ -6,6 +6,7 @@ import 'dart:async';
import 'package:intl/intl.dart'; import 'package:intl/intl.dart';
import 'package:intl/message_lookup_by_library.dart'; import 'package:intl/message_lookup_by_library.dart';
// ignore: implementation_imports
import 'package:intl/src/intl_helpers.dart'; import 'package:intl/src/intl_helpers.dart';
import 'stock_messages_en.dart' as messages_en; import 'stock_messages_en.dart' as messages_en;
...@@ -29,21 +30,27 @@ MessageLookupByLibrary _findExact(localeName) { ...@@ -29,21 +30,27 @@ MessageLookupByLibrary _findExact(localeName) {
} }
/// User programs should call this before using [localeName] for messages. /// User programs should call this before using [localeName] for messages.
Future initializeMessages(String localeName) { Future<bool> initializeMessages(String localeName) async {
var lib = _deferredLibraries[Intl.canonicalizedLocale(localeName)]; var availableLocale = Intl.verifiedLocale(
var load = lib == null ? new Future.value(false) : lib(); localeName,
return load.then((_) { (locale) => _deferredLibraries[locale] != null,
initializeInternalMessageLookup(() => new CompositeMessageLookup()); onFailure: (_) => null);
messageLookup.addLocale(localeName, _findGeneratedMessagesFor); if (availableLocale == null) {
}); return new Future.value(false);
}
var lib = _deferredLibraries[availableLocale];
await (lib == null ? new Future.value(false) : lib());
initializeInternalMessageLookup(() => new CompositeMessageLookup());
messageLookup.addLocale(availableLocale, _findGeneratedMessagesFor);
return new Future.value(true);
} }
bool _messagesExistFor(String locale) { bool _messagesExistFor(String locale) {
var messages;
try { try {
messages = _findExact(locale); return _findExact(locale) != null;
} catch (e) {} } catch (e) {
return messages != null; return false;
}
} }
MessageLookupByLibrary _findGeneratedMessagesFor(locale) { MessageLookupByLibrary _findGeneratedMessagesFor(locale) {
......
...@@ -8,13 +8,17 @@ import 'package:intl/message_lookup_by_library.dart'; ...@@ -8,13 +8,17 @@ import 'package:intl/message_lookup_by_library.dart';
final messages = new MessageLookup(); final messages = new MessageLookup();
// ignore: unused_element
final _keepAnalysisHappy = Intl.defaultLocale; final _keepAnalysisHappy = Intl.defaultLocale;
// ignore: non_constant_identifier_names
typedef MessageIfAbsent(String message_str, List args);
class MessageLookup extends MessageLookupByLibrary { class MessageLookup extends MessageLookupByLibrary {
get localeName => 'en'; get localeName => 'en';
final messages = _notInlinedMessages(_notInlinedMessages); final messages = _notInlinedMessages(_notInlinedMessages);
static _notInlinedMessages(_) => { static _notInlinedMessages(_) => <String, Function> {
"market" : MessageLookupByLibrary.simpleMessage("MARKET"), "market" : MessageLookupByLibrary.simpleMessage("MARKET"),
"portfolio" : MessageLookupByLibrary.simpleMessage("PORTFOLIO"), "portfolio" : MessageLookupByLibrary.simpleMessage("PORTFOLIO"),
"title" : MessageLookupByLibrary.simpleMessage("Stocks") "title" : MessageLookupByLibrary.simpleMessage("Stocks")
......
...@@ -8,13 +8,17 @@ import 'package:intl/message_lookup_by_library.dart'; ...@@ -8,13 +8,17 @@ import 'package:intl/message_lookup_by_library.dart';
final messages = new MessageLookup(); final messages = new MessageLookup();
// ignore: unused_element
final _keepAnalysisHappy = Intl.defaultLocale; final _keepAnalysisHappy = Intl.defaultLocale;
// ignore: non_constant_identifier_names
typedef MessageIfAbsent(String message_str, List args);
class MessageLookup extends MessageLookupByLibrary { class MessageLookup extends MessageLookupByLibrary {
get localeName => 'es'; get localeName => 'es';
final messages = _notInlinedMessages(_notInlinedMessages); final messages = _notInlinedMessages(_notInlinedMessages);
static _notInlinedMessages(_) => { static _notInlinedMessages(_) => <String, Function> {
"market" : MessageLookupByLibrary.simpleMessage("MERCADO"), "market" : MessageLookupByLibrary.simpleMessage("MERCADO"),
"portfolio" : MessageLookupByLibrary.simpleMessage("CARTERA"), "portfolio" : MessageLookupByLibrary.simpleMessage("CARTERA"),
"title" : MessageLookupByLibrary.simpleMessage("Acciones") "title" : MessageLookupByLibrary.simpleMessage("Acciones")
......
...@@ -5,7 +5,7 @@ dependencies: ...@@ -5,7 +5,7 @@ dependencies:
flutter_localizations: flutter_localizations:
sdk: flutter sdk: flutter
intl: 0.15.2 intl: 0.15.2
intl_translation: 0.16.2 intl_translation: 0.16.3
http: 0.11.3+16 http: 0.11.3+16
isolate: 1.1.0 isolate: 1.1.0
...@@ -28,7 +28,7 @@ dev_dependencies: ...@@ -28,7 +28,7 @@ dev_dependencies:
dart_style: 1.0.10 # TRANSITIVE DEPENDENCY dart_style: 1.0.10 # TRANSITIVE DEPENDENCY
file: 2.3.7 # TRANSITIVE DEPENDENCY file: 2.3.7 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
io: 0.3.2+1 # TRANSITIVE DEPENDENCY io: 0.3.2+1 # TRANSITIVE DEPENDENCY
......
...@@ -29,7 +29,7 @@ dev_dependencies: ...@@ -29,7 +29,7 @@ dev_dependencies:
crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
io: 0.3.2+1 # TRANSITIVE DEPENDENCY io: 0.3.2+1 # TRANSITIVE DEPENDENCY
......
...@@ -34,7 +34,7 @@ dev_dependencies: ...@@ -34,7 +34,7 @@ dev_dependencies:
crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -22,7 +22,7 @@ dev_dependencies: ...@@ -22,7 +22,7 @@ dev_dependencies:
crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http: 0.11.3+16 # TRANSITIVE DEPENDENCY http: 0.11.3+16 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
......
...@@ -35,7 +35,7 @@ dependencies: ...@@ -35,7 +35,7 @@ dependencies:
crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY crypto: 2.0.2+1 # TRANSITIVE DEPENDENCY
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
io: 0.3.2+1 # TRANSITIVE DEPENDENCY io: 0.3.2+1 # TRANSITIVE DEPENDENCY
......
...@@ -54,7 +54,7 @@ dev_dependencies: ...@@ -54,7 +54,7 @@ dev_dependencies:
convert: 2.0.1 # TRANSITIVE DEPENDENCY convert: 2.0.1 # TRANSITIVE DEPENDENCY
csslib: 0.14.1 # TRANSITIVE DEPENDENCY csslib: 0.14.1 # TRANSITIVE DEPENDENCY
glob: 1.1.5 # TRANSITIVE DEPENDENCY glob: 1.1.5 # TRANSITIVE DEPENDENCY
html: 0.13.2+2 # TRANSITIVE DEPENDENCY html: 0.13.3 # TRANSITIVE DEPENDENCY
http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY http_multi_server: 2.0.4 # TRANSITIVE DEPENDENCY
http_parser: 3.1.1 # TRANSITIVE DEPENDENCY http_parser: 3.1.1 # TRANSITIVE DEPENDENCY
io: 0.3.2+1 # TRANSITIVE DEPENDENCY io: 0.3.2+1 # TRANSITIVE DEPENDENCY
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment