import { TranslateService } from "@ngx-translate/core"; /** * Wrapper on top of ngx-translate to provide consistent Translations and other * i18n infrastructure to Salaxy components and web sites using them. NOTE: If * you need new methods from ngx-translate, you may add them here. Also, the * idea is to always uyse this service instead of using ngx-translate * TranslateService directly, so that later we may move to another translations * framework. Note that views may use the Translate pipe directly (e.g. * "{{'SETTINGS.GeneralSettingsPageTitle' | translate}}") We can then later * easily change how this pipe is resolved. */ export declare class NgTranslations { private translateSrv; /** Creates a new instance of CalculationRepository with dependency injection. */ constructor(translateSrv: TranslateService); /** * Gets the translated value of a key (or an array of keys) synchronously * Main point here is that we do not use the async promise infrastructure * of ngx-translate as it is obsolete for us. The translations must be * loaded as the app loads: It does not make sense to allow loading them * from server asyncronously. * @param key * @param interpolateParams * @returns the translated key, or an object of translated keys */ get(key: string | string[], interpolateParams?: object): any; /** * Adds a dictionary to the current module. The dictionary translations * are merged to any existing translations already in the module. * @param lang - ISO language code for the dictionary to be added: fi, en or sv * @param translations - A translations object in ngx-translate format */ addDictionaryToModule(lang: string, translations: object): void; /** * Set the language of the current user interface to the given language. * Should be called at least once at the beginning of the App. * @param lang - ISO language code for the language of the UI: fi (default), en or sv */ setLanguage(lang: string): void; }