| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * This library provides internationalization and localization. This includes | 6 * This library provides internationalization and localization. This includes |
| 7 * message formatting and replacement, date and number formatting and parsing, | 7 * message formatting and replacement, date and number formatting and parsing, |
| 8 * and utilities for working with Bidirectional text. | 8 * and utilities for working with Bidirectional text. |
| 9 * | 9 * |
| 10 * ## Installing ## | 10 * ## Installing ## |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 * libraries. See the class comments for more details. | 25 * libraries. See the class comments for more details. |
| 26 * | 26 * |
| 27 * There is also a simple example application that can be found in the | 27 * There is also a simple example application that can be found in the |
| 28 * `example/basic` directory. | 28 * `example/basic` directory. |
| 29 * | 29 * |
| 30 * [pub]: http://pub.dartlang.org | 30 * [pub]: http://pub.dartlang.org |
| 31 */ | 31 */ |
| 32 library intl; | 32 library intl; |
| 33 | 33 |
| 34 import 'dart:collection'; | 34 import 'dart:collection'; |
| 35 import 'dart:convert'; |
| 36 import 'package:meta/meta.dart'; |
| 35 import 'src/intl_helpers.dart'; | 37 import 'src/intl_helpers.dart'; |
| 36 import 'dart:math'; | 38 import 'dart:math'; |
| 37 import 'date_symbols.dart'; | 39 import 'date_symbols.dart'; |
| 38 import 'src/date_format_internal.dart'; | 40 import 'src/date_format_internal.dart'; |
| 39 import "number_symbols.dart"; | 41 import "number_symbols.dart"; |
| 40 import "number_symbols_data.dart"; | 42 import "number_symbols_data.dart"; |
| 41 | 43 |
| 42 part 'date_format.dart'; | 44 part 'date_format.dart'; |
| 43 part 'src/date_format_field.dart'; | 45 part 'src/date_format_field.dart'; |
| 44 part 'src/date_format_helpers.dart'; | 46 part 'src/date_format_helpers.dart'; |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 * unless for some reason this gets called inside a message that resets the | 363 * unless for some reason this gets called inside a message that resets the |
| 362 * locale. | 364 * locale. |
| 363 */ | 365 */ |
| 364 static String getCurrentLocale() { | 366 static String getCurrentLocale() { |
| 365 if (defaultLocale == null) defaultLocale = systemLocale; | 367 if (defaultLocale == null) defaultLocale = systemLocale; |
| 366 return defaultLocale; | 368 return defaultLocale; |
| 367 } | 369 } |
| 368 | 370 |
| 369 toString() => "Intl($locale)"; | 371 toString() => "Intl($locale)"; |
| 370 } | 372 } |
| OLD | NEW |