@botonic/plugin-contentful
Version:
Botonic Plugin Contentful is one of the **[available](https://github.com/hubtype/botonic/tree/master/packages)** plugins for Botonic. **[Contentful](http://www.contentful.com)** is a CMS (Content Management System) which manages contents of a great variet
35 lines (34 loc) • 1.35 kB
TypeScript
export type Locale = string;
export declare const SPANISH = "es";
export declare const CATALAN = "ca";
export declare const ENGLISH = "en";
export declare const PORTUGUESE = "pt";
export declare const POLISH = "pl";
export declare const RUSSIAN = "ru";
export declare const TURKISH = "tr";
export declare const ITALIAN = "it";
export declare const FRENCH = "fr";
export declare const GERMAN = "de";
export declare const ROMANIAN = "ro";
export declare const GREEK = "el";
export declare const CZECH = "cs";
export declare const UKRAINIAN = "uk";
export declare const CROATIAN = "hr";
export declare const SLOVAK = "sk";
export declare const SLOVENIAN = "sl";
export declare const HUNGARIAN = "hu";
export declare const DUTCH = "nl";
export declare const BULGARIAN = "bg";
export declare const SUPPORTED_LOCALES: string[];
export declare function checkLocale(locale: Locale): Locale;
export declare function languageFromLocale(locale: Locale): string;
/**
* @return "" when no country available
*/
export declare function countryFromLocale(locale: Locale): string;
export declare function fixLocale(locale: Locale): Locale;
export declare function buildLocale(lang: string, country: string | undefined): Locale;
/**
* Converts to lowercase, trims and removes accents
*/
export declare function preprocess(_locale: Locale, text: string): string;