dochub-sdk 0.1.172 → 0.1.174

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,7 @@ export class DocHubComponentProto extends Vue {
10
10
  */
11
11
  remountLangPackage() {
12
12
  this.lang = DocHub.lang.getConst(this.getLangPackageID());
13
+ this.onLangSwitch();
13
14
  }
14
15
 
15
16
  mounted() {
@@ -30,4 +31,9 @@ export class DocHubComponentProto extends Vue {
30
31
  return 'dochub';
31
32
  }
32
33
 
34
+ /**
35
+ * Событие переключения языкового пакета
36
+ */
37
+ onLangSwitch() {}
38
+
33
39
  }
@@ -87,6 +87,13 @@ export class DocHubDocumentProto extends DocHubComponentProto implements IDocHub
87
87
  return {};
88
88
  }
89
89
 
90
+ /**
91
+ * Обрабатываем событие переключения языкового пакета
92
+ */
93
+ onLangSwitch() {
94
+ this.onRefresh();
95
+ }
96
+
90
97
  /**
91
98
  * Для переопределения
92
99
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dochub-sdk",
3
- "version": "0.1.172",
3
+ "version": "0.1.174",
4
4
  "description": "The DocHub System Development Kit.",
5
5
  "private": false,
6
6
  "main": "index.ts",