@dragonaxe/i18n
Version:
A tool for i18n content.
26 lines (25 loc) • 1.06 kB
TypeScript
import { IUnilangualValueCdnService } from '..';
import { PrismicMultilangualCdnService } from '../../multilangual/prismic';
export declare class PrimicUnilangualValueCdnService implements IUnilangualValueCdnService {
private readonly _prismicMultilangualService;
private readonly _defaultLocale;
constructor(_prismicMultilangualService: PrismicMultilangualCdnService, _defaultLocale: string);
/**
* @description
* format of the key to get the field: type.uid.fieldName
* format of the key to get the document: type.uid
*/
getString(key: string): Promise<string | undefined>;
/**
* @description
* format of the key to get the field: type.uid.fieldName
* format of the key to get the document: type.uid
*/
getResources<T>(key: string, limit?: number | undefined): Promise<T[]>;
/**
* @description
* format of the key to get the field: type.uid.fieldName
* format of the key to get the document: type.uid
*/
getResource<T>(key: string): Promise<T | undefined>;
}