@selldone/sdk-storefront
Version:
A TypeScript SDK to connect to your shop and build a fully functional storefront and website by simply developing a frontend web application. All backend operations are seamlessly managed by the serverless Selldone solution.
56 lines (55 loc) • 1.88 kB
TypeScript
import { Calendar } from "./Calendar";
/**
* Interface representing the structure of a language configuration.
*/
export interface ILanguage {
/**
* The ISO language code, typically a 2-letter code (e.g., 'en' for English).
*/
code: string;
/**
* A localized version of the language code.
* For most languages, this will be the same as `code`.
*/
locale: string;
/**
* The country or region code corresponding to the language (e.g., 'US' for United States).
*/
flag: string;
/**
* The text direction of the language.
* - 'ltr' stands for left-to-right (like English).
* - 'rtl' stands for right-to-left (like Arabic).
*/
dir: "ltr" | "rtl";
/**
* The full, human-readable name of the language (e.g., 'English').
*/
title: string;
/**
* The type of calendar used by the language.
* This is presumed to reference a type within a `Calendar` object.
*/
calendar: typeof Calendar.gregory;
/**
* A fuller, more localized version of the language code combined with a country or region code.
* This is used for more specific regional settings (e.g., 'en-US' for American English).
*/
full_locale: string;
/**
* A list of country or region codes where this language is primarily spoken or recognized.
*/
countries: string[];
/**
* Optional flag indicating if the language should be prioritized or highlighted
* in UI elements, e.g., because of being VIP or frequently used.
*/
vip?: boolean;
/**
* Optional flag indicating if the language's translation is done by a human.
* If `true`, it signifies that the translation is likely of higher quality
* compared to machine translations.
*/
human?: boolean;
}
export declare const Language: Record<string, ILanguage>;