@ogs-gmbh/ngx-translate
Version:
A lightweight, REST-based Angular i18n library designed for seamless internationalization with minimal setup. It supports dynamic language switching & flexible translation management via RESTful APIs.
7 lines (6 loc) • 668 B
TypeScript
import { SpecificTranslateConfig } from "../public-api";
import { MultiScopedFile, ScopedFile } from "../types/store.type";
export declare const translateTokenByScopedFile: (scopedFile: ScopedFile, token: string) => string | undefined;
export declare const translateTokenByScopedFiles: (scopedFiles: ScopedFile[], token: string) => string | undefined;
export declare const translateTokenByMultiScopedFile: (multiScopedFile: MultiScopedFile, scopeName: string | null, token: string) => string | undefined;
export declare function resolveScope<T extends ReadonlyArray<string | null> | string | null>(translationConfig: SpecificTranslateConfig | null, scopeName?: T): T;