From 3f179dbc0b29f9be6ff94bee6828eac17ce196ea Mon Sep 17 00:00:00 2001 From: yamada28go Date: Tue, 5 May 2015 13:41:45 +0900 Subject: [PATCH] fix locales --- xdate/xdate.d.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/xdate/xdate.d.ts b/xdate/xdate.d.ts index bd1cd8e8ef..b291191d99 100644 --- a/xdate/xdate.d.ts +++ b/xdate/xdate.d.ts @@ -12,6 +12,16 @@ interface formatters_info vvv?: (xdate : XDate , useutc : boolean ) => string; } +interface locale_detail +{ + monthNames? : string []; + monthNamesShort?: string []; + dayNames?: string[]; + dayNamesShort?: string []; + amDesignator?: string; + pmDesignator?: string; +} + declare class XDate { @@ -354,7 +364,7 @@ declare class XDate { public static UTC(year : number , month : number , date : number , hours : number, minutes : number , seconds : number , milliseconds : number ) : XDate; - public static locales : Object; + public static locales : { [key: string]: locale_detail; }; public static defaultLocale : string; public static formatters : formatters_info;