22 lines
752 B
TypeScript
22 lines
752 B
TypeScript
|
import { I18n } from "i18n";
|
||
|
import { ILocaleConfig } from "../models/spt/config/ILocaleConfig";
|
||
|
import { ILogger } from "../models/spt/utils/ILogger";
|
||
|
import { LocaleService } from "./LocaleService";
|
||
|
/**
|
||
|
* Handles translating server text into different langauges
|
||
|
*/
|
||
|
export declare class LocalisationService {
|
||
|
protected logger: ILogger;
|
||
|
protected localeService: LocaleService;
|
||
|
protected localeConfig: ILocaleConfig;
|
||
|
protected i18n: I18n;
|
||
|
constructor(logger: ILogger, localeService: LocaleService);
|
||
|
/**
|
||
|
* Get a localised value using the passed in key
|
||
|
* @param key Key to loop up locale for
|
||
|
* @param args optional arguments
|
||
|
* @returns Localised string
|
||
|
*/
|
||
|
getText(key: string, args?: any): string;
|
||
|
}
|