@tolgee/core 4.4.0 → 4.5.0
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/dist/tolgee.cjs.js +15 -13
- package/dist/tolgee.cjs.js.map +1 -1
- package/dist/tolgee.cjs.min.js +1 -1
- package/dist/tolgee.cjs.min.js.map +1 -1
- package/dist/tolgee.esm.js +1 -1
- package/dist/tolgee.esm.js.map +1 -1
- package/dist/tolgee.umd.js +15 -13
- package/dist/tolgee.umd.js.map +1 -1
- package/dist/tolgee.umd.min.js +1 -1
- package/dist/tolgee.umd.min.js.map +1 -1
- package/lib/Properties.d.ts +2 -1
- package/lib/TolgeeConfig.d.ts +7 -1
- package/package.json +3 -3
package/lib/Properties.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { TolgeeConfig } from './TolgeeConfig';
|
|
2
|
-
import { Scope } from './types';
|
|
2
|
+
import { Mode, Scope } from './types';
|
|
3
3
|
export declare class Properties {
|
|
4
4
|
config: TolgeeConfig;
|
|
5
5
|
scopes?: Scope[];
|
|
6
6
|
projectId?: number;
|
|
7
7
|
permittedLanguageIds?: number[];
|
|
8
|
+
mode?: Mode;
|
|
8
9
|
_currentLanguage?: string;
|
|
9
10
|
get currentLanguage(): string;
|
|
10
11
|
set currentLanguage(language: string);
|
package/lib/TolgeeConfig.d.ts
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { TreeTranslationsData } from './types';
|
|
2
3
|
import { ModifierKey } from './Constants/ModifierKey';
|
|
4
|
+
import { Mode } from 'fs';
|
|
3
5
|
declare type UiConstructor = new (...args: any[]) => any;
|
|
4
6
|
interface UiLibInterface {
|
|
5
7
|
UI: UiConstructor;
|
|
6
8
|
}
|
|
7
9
|
declare type UiType = UiConstructor | UiLibInterface | Promise<UiConstructor> | Promise<UiLibInterface>;
|
|
8
10
|
export declare class TolgeeConfig {
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated This option won't have any effect,
|
|
13
|
+
* because mode is now automatically detected when apiKey + apiUrl are set
|
|
14
|
+
*/
|
|
9
15
|
mode?: Mode;
|
|
10
16
|
apiUrl?: string;
|
|
11
17
|
apiKey?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tolgee/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"description": "Library providing ability to translate messages directly in context of developed application.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "./dist/tolgee.esm.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@types/intl-messageformat": "^3.0.0",
|
|
49
49
|
"@types/jest": "^27.0.2",
|
|
50
50
|
"@types/node": "^17.0.8",
|
|
51
|
-
"concurrently": "7.
|
|
51
|
+
"concurrently": "7.1.0",
|
|
52
52
|
"intl-messageformat": "^9.9.1",
|
|
53
53
|
"jest": "^27.2.4",
|
|
54
54
|
"jest-fetch-mock": "^3.0.3",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"require": "./dist/tolgee.cjs.js",
|
|
66
66
|
"import": "./dist/tolgee.esm.js"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "19b44f5cee5e7db61a62f6a86a8ae81ac217b48c",
|
|
69
69
|
"publishConfig": {
|
|
70
70
|
"access": "public"
|
|
71
71
|
}
|