We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11783e5 commit 2e1ad4cCopy full SHA for 2e1ad4c
src/script/translation.ts
@@ -5,6 +5,11 @@ import { stringArray } from '@APF/lib/helper';
5
export default class Translation {
6
i18next: i18n;
7
8
+ //#region Class reference helpers
9
+ // Can be overridden in children classes
10
+ get Class() { return (this.constructor as typeof Translation); }
11
+ //#endregion
12
+
13
constructor(namespaces: string|string[] = [], language: string = 'en') {
14
namespaces = stringArray(namespaces);
15
this.i18next = i18next;
0 commit comments