Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: pkg/intl/date_format.dart

Issue 10917069: Async initialization for DateFormat (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/intl/date_format.dart
===================================================================
--- pkg/intl/date_format.dart (revision 11781)
+++ pkg/intl/date_format.dart (working copy)
@@ -157,11 +157,10 @@
#library('date_format');
#import('dart:math');
-
#import('intl.dart');
-#import('date_time_patterns.dart');
#import('date_symbols.dart');
-#import('date_symbol_data.dart');
+#import('lib/intl_helpers.dart');
+#import('lib/date_format_internal.dart');
#source('lib/date_format_field.dart');
#source('lib/date_format_helpers.dart');
@@ -255,6 +254,11 @@
String get locale() => _locale;
/**
+ * Returns a list of all locales for which we have date formatting information.
Emily Fortuna 2012/09/04 20:14:42 80 char. :-P
Alan Knight 2012/09/04 23:39:03 Done.
+ */
+ static List<String> allLocalesWithSymbols() => dateTimeSymbols.getKeys();
+
+ /**
* Constructors for a set of predefined formats for which
* internationalized forms are known. These can be specified
* either as ICU constants, or as skeletons.

Powered by Google App Engine
This is Rietveld 408576698