Some checks failed
CI/CD Pipeline / unit-tests (push) Failing after 1m16s
CI/CD Pipeline / integration-tests (push) Failing after 2m32s
CI/CD Pipeline / lint (push) Successful in 5m22s
CI/CD Pipeline / e2e-tests (push) Has been skipped
CI/CD Pipeline / build (push) Has been skipped
38 lines
782 B
TypeScript
38 lines
782 B
TypeScript
import type { Localize } from "../../types.js";
|
|
type hiLocaleNumberType =
|
|
| "\u0967"
|
|
| "\u0968"
|
|
| "\u0969"
|
|
| "\u096A"
|
|
| "\u096B"
|
|
| "\u096C"
|
|
| "\u096D"
|
|
| "\u096E"
|
|
| "\u096F"
|
|
| "\u0966";
|
|
type enLocaleNumberType =
|
|
| "1"
|
|
| "2"
|
|
| "3"
|
|
| "4"
|
|
| "5"
|
|
| "6"
|
|
| "7"
|
|
| "8"
|
|
| "9"
|
|
| "0";
|
|
type enHiLocaleNumberType = {
|
|
[enNumber in enLocaleNumberType]: hiLocaleNumberType;
|
|
};
|
|
type hiLocaleEnNumberType = {
|
|
[hiNumber in hiLocaleNumberType]: enLocaleNumberType;
|
|
};
|
|
export interface hiLocaleNumberValuesType {
|
|
locale: enHiLocaleNumberType;
|
|
number: hiLocaleEnNumberType;
|
|
}
|
|
export declare function localeToNumber(locale: string): number;
|
|
export declare function numberToLocale(enNumber: number): string;
|
|
export declare const localize: Localize;
|
|
export {};
|