Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit e05898d

Browse files
Closure Team12wrigja
authored andcommitted
RELNOTES: Add a goog.module for the DateTimePatternsType
PiperOrigin-RevId: 357992472
1 parent 525484e commit e05898d

File tree

2 files changed

+65
-49
lines changed

2 files changed

+65
-49
lines changed

closure/goog/i18n/datetimepatterns.js

Lines changed: 2 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ goog.provide('goog.i18n.DateTimePatterns_zh_HK');
146146
goog.provide('goog.i18n.DateTimePatterns_zh_TW');
147147
goog.provide('goog.i18n.DateTimePatterns_zu');
148148

149+
goog.requireType('goog.i18n.DateTimePatternsType');
150+
149151

150152
/**
151153
* Extended set of localized date/time patterns for locale af.
@@ -2439,55 +2441,6 @@ goog.i18n.DateTimePatterns_zu = {
24392441
};
24402442

24412443

2442-
/**
2443-
* @record
2444-
* @struct
2445-
*/
2446-
goog.i18n.DateTimePatternsType = function() {};
2447-
2448-
/** @type {string} */
2449-
goog.i18n.DateTimePatternsType.prototype.YEAR_FULL;
2450-
2451-
/** @type {string} */
2452-
goog.i18n.DateTimePatternsType.prototype.YEAR_FULL_WITH_ERA;
2453-
2454-
/** @type {string} */
2455-
goog.i18n.DateTimePatternsType.prototype.YEAR_MONTH_ABBR;
2456-
2457-
/** @type {string} */
2458-
goog.i18n.DateTimePatternsType.prototype.YEAR_MONTH_FULL;
2459-
2460-
/** @type {string} */
2461-
goog.i18n.DateTimePatternsType.prototype.YEAR_MONTH_SHORT;
2462-
2463-
/** @type {string} */
2464-
goog.i18n.DateTimePatternsType.prototype.MONTH_DAY_ABBR;
2465-
2466-
/** @type {string} */
2467-
goog.i18n.DateTimePatternsType.prototype.MONTH_DAY_FULL;
2468-
2469-
/** @type {string} */
2470-
goog.i18n.DateTimePatternsType.prototype.MONTH_DAY_SHORT;
2471-
2472-
/** @type {string} */
2473-
goog.i18n.DateTimePatternsType.prototype.MONTH_DAY_MEDIUM;
2474-
2475-
/** @type {string} */
2476-
goog.i18n.DateTimePatternsType.prototype.MONTH_DAY_YEAR_MEDIUM;
2477-
2478-
/** @type {string} */
2479-
goog.i18n.DateTimePatternsType.prototype.WEEKDAY_MONTH_DAY_MEDIUM;
2480-
2481-
/** @type {string} */
2482-
goog.i18n.DateTimePatternsType.prototype.WEEKDAY_MONTH_DAY_YEAR_MEDIUM;
2483-
2484-
/** @type {string} */
2485-
goog.i18n.DateTimePatternsType.prototype.DAY_ABBR;
2486-
2487-
/** @type {string} */
2488-
goog.i18n.DateTimePatternsType.prototype.MONTH_DAY_TIME_ZONE_SHORT;
2489-
2490-
24912444
/**
24922445
* Select date/time pattern by locale.
24932446
* @type {!goog.i18n.DateTimePatternsType}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
/**
2+
* @license
3+
* Copyright The Closure Library Authors.
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/**
8+
* @fileoverview Date/Time patterns data type.
9+
*/
10+
11+
goog.module('goog.i18n.DateTimePatternsType');
12+
13+
/**
14+
* The type definition for date/time patterns.
15+
* @record
16+
*/
17+
class DateTimePatternsType {
18+
constructor() {
19+
/** @type {string} */
20+
this.YEAR_FULL;
21+
22+
/** @type {string} */
23+
this.YEAR_FULL_WITH_ERA;
24+
25+
/** @type {string} */
26+
this.YEAR_MONTH_ABBR;
27+
28+
/** @type {string} */
29+
this.YEAR_MONTH_FULL;
30+
31+
/** @type {string} */
32+
this.YEAR_MONTH_SHORT;
33+
34+
/** @type {string} */
35+
this.MONTH_DAY_ABBR;
36+
37+
/** @type {string} */
38+
this.MONTH_DAY_FULL;
39+
40+
/** @type {string} */
41+
this.MONTH_DAY_SHORT;
42+
43+
/** @type {string} */
44+
this.MONTH_DAY_MEDIUM;
45+
46+
/** @type {string} */
47+
this.MONTH_DAY_YEAR_MEDIUM;
48+
49+
/** @type {string} */
50+
this.WEEKDAY_MONTH_DAY_MEDIUM;
51+
52+
/** @type {string} */
53+
this.WEEKDAY_MONTH_DAY_YEAR_MEDIUM;
54+
55+
/** @type {string} */
56+
this.DAY_ABBR;
57+
58+
/** @type {string} */
59+
this.MONTH_DAY_TIME_ZONE_SHORT;
60+
}
61+
}
62+
63+
exports = DateTimePatternsType;

0 commit comments

Comments
 (0)