2023-03-09 20:34:32 +00:00
|
|
|
declare module Locale {
|
|
|
|
type ShortBoolean = 0 | 1 | boolean;
|
|
|
|
|
|
|
|
type Locale = {
|
|
|
|
name: string,
|
2024-03-21 10:29:02 +00:00
|
|
|
/**
|
|
|
|
* @deprecated
|
|
|
|
* There was no use case for this variable.
|
|
|
|
* For more details, see https://github.com/espruino/BangleApps/issues/3269
|
|
|
|
*/
|
2023-03-09 20:34:32 +00:00
|
|
|
currencySym: string,
|
|
|
|
dow(date: Date, short?: ShortBoolean): string,
|
|
|
|
month(date: Date, short?: ShortBoolean): string,
|
|
|
|
number(n: number): string,
|
2024-03-21 10:29:02 +00:00
|
|
|
/**
|
|
|
|
* @deprecated
|
|
|
|
* There was no use case for this method.
|
|
|
|
* For more details, see https://github.com/espruino/BangleApps/issues/3269
|
|
|
|
*/
|
2023-03-09 20:34:32 +00:00
|
|
|
currency(c: number): string,
|
|
|
|
distance(d: number): string,
|
|
|
|
speed(s: number): string,
|
|
|
|
temp(t: number): string,
|
|
|
|
translate(s: string): string,
|
|
|
|
date(date: Date, short?: ShortBoolean): string,
|
|
|
|
time(date: Date, short?: ShortBoolean): string,
|
|
|
|
meridian(date: Date): string,
|
|
|
|
}
|
|
|
|
}
|