@tolgee/svelte 5.0.0 → 5.0.2
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/CHANGELOG.md +19 -0
- package/T.svelte.d.ts +3 -3
- package/TolgeeProvider.svelte.d.ts +3 -3
- package/getTranslateInternal.js +1 -1
- package/package.json +13 -13
- package/types.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.0.2](https://github.com/tolgee/tolgee-js/compare/v5.0.1...v5.0.2) (2023-01-25)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* make svelte work vite 4 ([#3145](https://github.com/tolgee/tolgee-js/issues/3145)) ([19df629](https://github.com/tolgee/tolgee-js/commit/19df629719b423ee87b873670627f3bf45bc9c23))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [5.0.1](https://github.com/tolgee/tolgee-js/compare/v5.0.0...v5.0.1) (2023-01-17)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @tolgee/svelte
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [5.0.0](https://github.com/tolgee/tolgee-js/compare/v5.0.0-alpha.3...v5.0.0) (2023-01-11)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @tolgee/svelte
|
package/T.svelte.d.ts
CHANGED
|
@@ -13,9 +13,9 @@ declare const __propDef: {
|
|
|
13
13
|
};
|
|
14
14
|
slots: {};
|
|
15
15
|
};
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
16
|
+
export type TProps = typeof __propDef.props;
|
|
17
|
+
export type TEvents = typeof __propDef.events;
|
|
18
|
+
export type TSlots = typeof __propDef.slots;
|
|
19
19
|
export default class T extends SvelteComponentTyped<TProps, TEvents, TSlots> {
|
|
20
20
|
}
|
|
21
21
|
export {};
|
|
@@ -13,9 +13,9 @@ declare const __propDef: {
|
|
|
13
13
|
fallback: {};
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
16
|
+
export type TolgeeProviderProps = typeof __propDef.props;
|
|
17
|
+
export type TolgeeProviderEvents = typeof __propDef.events;
|
|
18
|
+
export type TolgeeProviderSlots = typeof __propDef.slots;
|
|
19
19
|
export default class TolgeeProvider extends SvelteComponentTyped<TolgeeProviderProps, TolgeeProviderEvents, TolgeeProviderSlots> {
|
|
20
20
|
}
|
|
21
21
|
export {};
|
package/getTranslateInternal.js
CHANGED
|
@@ -28,7 +28,7 @@ const getTranslateInternal = (ns) => {
|
|
|
28
28
|
function createTFunction() {
|
|
29
29
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
30
30
|
return (props) => {
|
|
31
|
-
const fallbackNs = props.ns
|
|
31
|
+
const fallbackNs = props.ns ?? namespaces?.[0];
|
|
32
32
|
subscribeToNs(fallbackNs);
|
|
33
33
|
return tolgee.t({ ...props, ns: fallbackNs });
|
|
34
34
|
};
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tolgee/svelte",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@tolgee/web": "5.0.
|
|
5
|
+
"@tolgee/web": "5.0.1"
|
|
6
6
|
},
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@sveltejs/adapter-auto": "1.0.
|
|
9
|
-
"@sveltejs/kit": "1.
|
|
10
|
-
"@sveltejs/package": "1.0.
|
|
8
|
+
"@sveltejs/adapter-auto": "1.0.2",
|
|
9
|
+
"@sveltejs/kit": "1.2.6",
|
|
10
|
+
"@sveltejs/package": "1.0.2",
|
|
11
11
|
"@testing-library/jest-dom": "^5.16.5",
|
|
12
|
-
"@testing-library/svelte": "^3.2.
|
|
12
|
+
"@testing-library/svelte": "^3.2.2",
|
|
13
13
|
"@tolgee/format-icu": "5.0.0",
|
|
14
14
|
"@tolgee/testing": "5.0.0",
|
|
15
15
|
"@tsconfig/svelte": "^3.0.0",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"nodemon": "^2.0.19",
|
|
26
26
|
"prettier": "^2.7.1",
|
|
27
27
|
"prettier-plugin-svelte": "^2.7.0",
|
|
28
|
-
"svelte": "^3.
|
|
29
|
-
"svelte-check": "^
|
|
28
|
+
"svelte": "^3.55.1",
|
|
29
|
+
"svelte-check": "^3.0.3",
|
|
30
30
|
"svelte-jester": "^2.3.2",
|
|
31
|
-
"svelte-preprocess": "^
|
|
32
|
-
"svelte2tsx": "^0.
|
|
31
|
+
"svelte-preprocess": "^5.0.1",
|
|
32
|
+
"svelte2tsx": "^0.6.0",
|
|
33
33
|
"ts-jest": "^28.0.8",
|
|
34
|
-
"tslib": "^2.4.
|
|
35
|
-
"typescript": "^4.
|
|
36
|
-
"vite": "^
|
|
34
|
+
"tslib": "^2.4.1",
|
|
35
|
+
"typescript": "^4.9.4",
|
|
36
|
+
"vite": "^4.0.4"
|
|
37
37
|
},
|
|
38
38
|
"type": "module",
|
|
39
39
|
"publishConfig": {
|
package/types.d.ts
CHANGED