@dvhb/react-intl-messages
Version:
Library for parsing source files and extract react-intl messages
25 lines (24 loc) • 830 B
TypeScript
import { Provider } from './provider';
import { Message } from '../types';
declare type LocizeKeys = {
[key: string]: string;
};
export declare class Locize implements Provider {
private defaultLocale;
private projectId?;
private apiKey?;
private version?;
private namespace?;
locizeKeys: {
[locale: string]: LocizeKeys;
};
newMessages: string[];
private static getHeaders;
constructor(defaultLocale: string, projectId?: string | undefined, apiKey?: string | undefined, version?: string | undefined, namespace?: string | undefined);
private formatMessages;
getKeys(locales: string[]): Promise<void>;
getMessage(locale: string, id: string): string;
uploadMessages(messages: Message[], locale?: string): Promise<void>;
getNewMessages(): string[];
}
export {};