UNPKG

@particular.cloud/i18n-js

Version:

The i18n javascript and typescript sdk of particular.cloud

7 lines (6 loc) 452 B
import { Key, LangCodeOrLocale, Locale, Text, TextValue } from './types'; import type { LanguageSource } from './utils'; export declare function storeInCache(key: Key, language: LangCodeOrLocale, value: TextValue): Promise<void>; export declare function storeAll(texts: Text[]): Promise<void>; declare function query(key: Key, language?: LangCodeOrLocale, source?: LanguageSource): Promise<[TextValue, Locale] | undefined>; export default query;