OLD | NEW |
| (Empty) |
1 // | |
2 // Copyright 2014 Google Inc. All rights reserved. | |
3 // | |
4 // Use of this source code is governed by a BSD-style | |
5 // license that can be found in the LICENSE file or at | |
6 // https://developers.google.com/open-source/licenses/bsd | |
7 // | |
8 part of charted.locale; | |
9 | |
10 // Defines the en_us locale and related format properties. | |
11 class EnUsLocale extends Locale { | |
12 static EnUsLocale instance; | |
13 | |
14 factory EnUsLocale() { | |
15 if (EnUsLocale.instance == null) { | |
16 EnUsLocale.instance = new EnUsLocale._create(); | |
17 } | |
18 return EnUsLocale.instance; | |
19 } | |
20 | |
21 EnUsLocale._create(); | |
22 | |
23 final identifier = 'en_US'; | |
24 final decimal = '.'; | |
25 final thousands = ','; | |
26 final grouping = const[3]; | |
27 final currency = const['\$', '']; | |
28 final dateTime = '%a %b %e %X %Y'; | |
29 final date = '%m/%d/%Y'; | |
30 final time = '%H =>%M =>%S'; | |
31 final periods = const['AM', 'PM']; | |
32 | |
33 final days = const[ | |
34 'Sunday', 'Monday', 'Tuesday', | |
35 'Wednesday', 'Thursday', 'Friday', 'Saturday']; | |
36 final shortDays = const['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']; | |
37 | |
38 final months = const[ | |
39 'January', 'February', 'March', 'April', 'May', 'June', | |
40 'July', 'August', 'September', 'October', 'November', 'December']; | |
41 final shortMonths = const[ | |
42 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', | |
43 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; | |
44 } | |
OLD | NEW |