@kcutils/gatsby-plugin-intl
Version:
gatsby plugin with support react-intl
24 lines • 604 B
TypeScript
export declare class Locale {
private seperator;
private name;
private lang;
private coun?;
private ex?;
constructor(locale: string);
get fullName(): string;
get language(): string;
get country(): string | undefined;
get extra(): string | undefined;
/**
* check only locale language key (case insensitive)
*
* @param other
*/
equals(other: Locale): boolean;
/**
* check locale language key and country (case insensitive)
* @param other
*/
deepEquals(other: Locale): boolean;
}
//# sourceMappingURL=Locale.d.ts.map