dochub-sdk 0.1.167 → 0.1.169
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/interfaces/lang.ts +7 -1
- package/package.json +1 -1
package/interfaces/lang.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* События языковых пакетов
|
3
3
|
*/
|
4
|
-
export enum
|
4
|
+
export enum DocHubLangEvents {
|
5
5
|
changeLang = 'dochub-lang-change' // Изменен язык
|
6
6
|
}
|
7
7
|
|
@@ -46,4 +46,10 @@ export interface IDocHubLang {
|
|
46
46
|
* @param path - Путь к языковой константе
|
47
47
|
*/
|
48
48
|
getConst(path: string): any;
|
49
|
+
/**
|
50
|
+
* Отправляет запрос на переключение языка интерфейса
|
51
|
+
* @param lang - Язык на который нужно переключить
|
52
|
+
* @returns - Возвращает действующий язык
|
53
|
+
*/
|
54
|
+
switchTo(lang: string): Promise<string>;
|
49
55
|
}
|