@themost/web
Version:
MOST Web Framework 2.0 - Web Server Module
29 lines (18 loc) • 944 B
TypeScript
// @themost-framework 2.0 Codename Blueshift Copyright (c) 2017-2025, THEMOST LP All rights reserved
import {HttpApplicationService} from "./types";
export declare abstract class LocalizationStrategy extends HttpApplicationService {
abstract getCultures(): Array<string>;
abstract getDefaultCulture(): string;
hasCulture(culture: string): boolean;
abstract getLocaleString(locale: string, ...str: Array<any>): string;
abstract setLocaleString(locale: string, data: any, shouldMerge?: boolean);
}
export declare class DefaultLocalizationStrategy extends LocalizationStrategy {
getCultures(): Array<string>;
getDefaultCulture(): string;
getLocaleString(locale: string, ...str: Array<any>): string;
setLocaleString(locale: string, data: any, shouldMerge?: boolean);
}
export declare class I18nLocalizationStrategy extends DefaultLocalizationStrategy {
resolveLocalePath(locale: string): string;
}