@kvaser/canking-api
Version:
CanKing API to communicate with the CanKing service using Node.js.
23 lines (22 loc) • 539 B
TypeScript
/**
* Localized strings interface
*/
export interface ILocalizedStrings {
getString(key: string, ...args: Array<number | string>): string;
}
/**
* A string map type.
*/
export type StringsMap = {
[key: string]: string;
};
/**
* @internal
* Default ILocalizedStrings implementation.
*/
export declare class LocalizedStrings implements ILocalizedStrings {
private language;
private strings;
constructor(language: string, strings: StringsMap);
getString(key: string, ...args: Array<number | string>): string;
}