-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlocalization.d.ts
More file actions
28 lines (18 loc) · 944 Bytes
/
localization.d.ts
File metadata and controls
28 lines (18 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// @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;
}