gt-node 0.4.9 → 0.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/CHANGELOG.md +21 -0
- package/dist/async-i18n-manager/AsyncStorageI18nManager.d.ts +2 -2
- package/dist/async-i18n-manager/singleton-operations.d.ts +3 -1
- package/dist/index.cjs.min.cjs +2 -2
- package/dist/index.cjs.min.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.min.mjs +3 -3
- package/dist/index.esm.min.mjs.map +1 -1
- package/dist/internal.cjs.min.cjs.map +1 -1
- package/dist/internal.d.ts +5 -3
- package/dist/internal.esm.min.mjs.map +1 -1
- package/dist/setup/types.d.ts +2 -2
- package/dist/types.d.ts +2 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# gt-node
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1173](https://github.com/generaltranslation/gt/pull/1173) [`6b0b56b`](https://github.com/generaltranslation/gt/commit/6b0b56b2253e389913fe67eb19f0ba6ebf2c7a53) Thanks [@ErnestM1234](https://github.com/ErnestM1234)! - add context derivation
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`6b0b56b`](https://github.com/generaltranslation/gt/commit/6b0b56b2253e389913fe67eb19f0ba6ebf2c7a53)]:
|
|
12
|
+
- gt-i18n@0.8.0
|
|
13
|
+
|
|
14
|
+
## 0.4.10
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [#1158](https://github.com/generaltranslation/gt/pull/1158) [`5b85ccd`](https://github.com/generaltranslation/gt/commit/5b85ccd80b93b91eae9c873b258a13b6a57443c8) Thanks [@ErnestM1234](https://github.com/ErnestM1234)! - add auto injection for jsx translation
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [[`5b85ccd`](https://github.com/generaltranslation/gt/commit/5b85ccd80b93b91eae9c873b258a13b6a57443c8)]:
|
|
21
|
+
- generaltranslation@8.2.2
|
|
22
|
+
- gt-i18n@0.7.10
|
|
23
|
+
|
|
3
24
|
## 0.4.9
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { I18nManager } from 'gt-i18n/internal';
|
|
2
2
|
import { AsyncStorageAdapter } from './AsyncStorageAdapter';
|
|
3
|
-
import { I18nManagerConstructorParams } from 'gt-i18n/internal
|
|
3
|
+
import { I18nManagerConstructorParams } from 'gt-i18n/internal/types';
|
|
4
4
|
/**
|
|
5
5
|
* I18nManager implementation that uses AsyncStorage as the storage adapter.
|
|
6
6
|
*/
|
|
7
|
-
export declare class AsyncStorageI18nManager extends I18nManager<AsyncStorageAdapter> {
|
|
7
|
+
export declare class AsyncStorageI18nManager extends I18nManager<AsyncStorageAdapter, string> {
|
|
8
8
|
/**
|
|
9
9
|
* Creates an instance of AsyncStorageI18nManager.
|
|
10
10
|
* @param {I18nManagerConstructorParams<AsyncStorageAdapter>} config - The configuration for the AsyncStorageI18nManager
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { I18nManager, StorageAdapter } from 'gt-i18n/internal';
|
|
2
2
|
import { AsyncStorageAdapter } from './AsyncStorageAdapter';
|
|
3
|
+
import { Translation } from 'gt-i18n/types';
|
|
3
4
|
/**
|
|
4
5
|
* @description Get the singleton instance of I18nManager.
|
|
5
6
|
* @returns The singleton instance of I18nManager
|
|
6
7
|
*
|
|
8
|
+
* Node only does string translation
|
|
7
9
|
*/
|
|
8
|
-
export declare function getI18nManager(): I18nManager<AsyncStorageAdapter> | I18nManager<StorageAdapter>;
|
|
10
|
+
export declare function getI18nManager(): I18nManager<AsyncStorageAdapter, string> | I18nManager<StorageAdapter, string> | I18nManager<AsyncStorageAdapter, Translation> | I18nManager<StorageAdapter, Translation>;
|
|
9
11
|
/**
|
|
10
12
|
* Set the singleton instance of I18nManager
|
|
11
13
|
* @param {I18nManager<AsyncStorageAdapter>} i18nManager - The I18nManager instance
|