chronos-ts 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.d.mts +2291 -0
- package/dist/index.d.ts +2272 -31
- package/dist/index.js +5387 -150
- package/dist/index.mjs +5313 -0
- package/package.json +4 -3
- package/dist/core/chronos.d.ts +0 -460
- package/dist/core/chronos.js +0 -1259
- package/dist/core/index.d.ts +0 -9
- package/dist/core/index.js +0 -19
- package/dist/core/interval.d.ts +0 -289
- package/dist/core/interval.js +0 -689
- package/dist/core/period-collection.d.ts +0 -205
- package/dist/core/period-collection.js +0 -562
- package/dist/core/period.d.ts +0 -429
- package/dist/core/period.js +0 -1062
- package/dist/core/timezone.d.ts +0 -290
- package/dist/core/timezone.js +0 -679
- package/dist/locales/index.d.ts +0 -66
- package/dist/locales/index.js +0 -847
- package/dist/types/index.d.ts +0 -428
- package/dist/types/index.js +0 -71
- package/dist/utils/index.d.ts +0 -127
- package/dist/utils/index.js +0 -658
package/dist/locales/index.d.ts
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Locale configuration for Chronos
|
|
3
|
-
* @module locales
|
|
4
|
-
*/
|
|
5
|
-
import { LocaleConfig } from '../types';
|
|
6
|
-
export type { LocaleConfig } from '../types';
|
|
7
|
-
/**
|
|
8
|
-
* English (US) locale configuration
|
|
9
|
-
*/
|
|
10
|
-
export declare const en: LocaleConfig;
|
|
11
|
-
/**
|
|
12
|
-
* French locale configuration
|
|
13
|
-
*/
|
|
14
|
-
export declare const fr: LocaleConfig;
|
|
15
|
-
/**
|
|
16
|
-
* Spanish locale configuration
|
|
17
|
-
*/
|
|
18
|
-
export declare const es: LocaleConfig;
|
|
19
|
-
/**
|
|
20
|
-
* Italian locale configuration
|
|
21
|
-
*/
|
|
22
|
-
export declare const it: LocaleConfig;
|
|
23
|
-
/**
|
|
24
|
-
* Arabic locale configuration (Modern Standard Arabic)
|
|
25
|
-
*/
|
|
26
|
-
export declare const ar: LocaleConfig;
|
|
27
|
-
/**
|
|
28
|
-
* Russian locale configuration
|
|
29
|
-
*/
|
|
30
|
-
export declare const ru: LocaleConfig;
|
|
31
|
-
/**
|
|
32
|
-
* German locale configuration
|
|
33
|
-
*/
|
|
34
|
-
export declare const de: LocaleConfig;
|
|
35
|
-
/**
|
|
36
|
-
* Japanese locale configuration
|
|
37
|
-
*/
|
|
38
|
-
export declare const ja: LocaleConfig;
|
|
39
|
-
/**
|
|
40
|
-
* Chinese (Simplified) locale configuration
|
|
41
|
-
*/
|
|
42
|
-
export declare const zh: LocaleConfig;
|
|
43
|
-
/**
|
|
44
|
-
* Portuguese (Brazil) locale configuration
|
|
45
|
-
*/
|
|
46
|
-
export declare const pt: LocaleConfig;
|
|
47
|
-
/**
|
|
48
|
-
* All available locales
|
|
49
|
-
*/
|
|
50
|
-
export declare const locales: Record<string, LocaleConfig>;
|
|
51
|
-
/**
|
|
52
|
-
* Default locale
|
|
53
|
-
*/
|
|
54
|
-
export declare const defaultLocale: LocaleConfig;
|
|
55
|
-
/**
|
|
56
|
-
* Get a locale by code
|
|
57
|
-
*/
|
|
58
|
-
export declare function getLocale(code: string): LocaleConfig;
|
|
59
|
-
/**
|
|
60
|
-
* Register a new locale
|
|
61
|
-
*/
|
|
62
|
-
export declare function registerLocale(config: LocaleConfig): void;
|
|
63
|
-
/**
|
|
64
|
-
* Get available locale codes
|
|
65
|
-
*/
|
|
66
|
-
export declare function getAvailableLocales(): string[];
|