gt-react 9.2.26 → 9.2.27
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 +6 -0
- package/dist/client.d.ts +19 -0
- package/dist/hooks/useGTClass.d.ts +19 -0
- package/dist/hooks/useGTClass.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# gt-react
|
2
2
|
|
3
|
+
## 9.2.27
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#353](https://github.com/generaltranslation/gt/pull/353) [`de17003`](https://github.com/generaltranslation/gt/commit/de170039e51383c8c8f3f59d5d94e93e6ccedeb9) Thanks [@ErnestM1234](https://github.com/ErnestM1234)! - chore: bump versions
|
8
|
+
|
3
9
|
## 9.2.26
|
4
10
|
|
5
11
|
### Patch Changes
|
package/dist/client.d.ts
CHANGED
@@ -552,7 +552,26 @@ declare function useLocaleSelector(locales?: string[]): {
|
|
552
552
|
setLocale: (locale: string) => void;
|
553
553
|
};
|
554
554
|
|
555
|
+
/**
|
556
|
+
* Returns the configured GT class instance.
|
557
|
+
*
|
558
|
+
* @returns {GT} The configured GT class instance.
|
559
|
+
*
|
560
|
+
* @example
|
561
|
+
* const gt = useGTClass();
|
562
|
+
* console.log(gt.getLocaleProperties('en-US'));
|
563
|
+
*/
|
555
564
|
declare function useGTClass(): generaltranslation.GT;
|
565
|
+
/**
|
566
|
+
* Returns the locale properties for the given locale.
|
567
|
+
*
|
568
|
+
* @param {string} locale - The locale to get the properties for.
|
569
|
+
* @returns {LocaleProperties} The locale properties for the given locale.
|
570
|
+
*
|
571
|
+
* @example
|
572
|
+
* const localeProperties = useLocaleProperties('en-US');
|
573
|
+
* console.log(localeProperties);
|
574
|
+
*/
|
556
575
|
declare function useLocaleProperties(locale: string): generaltranslation_types.LocaleProperties;
|
557
576
|
|
558
577
|
export { Branch, ClientProvider, Currency, DateTime, GTContext, GTProvider, LocaleSelector, Num, Plural, T, Var, renderVariable, useDefaultLocale, useTranslations as useDict, useGT, useGTClass, useLocale, useLocaleProperties, useLocaleSelector, useLocales, useRuntimeTranslation, useSetLocale, useTranslations };
|
@@ -1,3 +1,22 @@
|
|
1
|
+
/**
|
2
|
+
* Returns the configured GT class instance.
|
3
|
+
*
|
4
|
+
* @returns {GT} The configured GT class instance.
|
5
|
+
*
|
6
|
+
* @example
|
7
|
+
* const gt = useGTClass();
|
8
|
+
* console.log(gt.getLocaleProperties('en-US'));
|
9
|
+
*/
|
1
10
|
export declare function useGTClass(): import("generaltranslation").GT;
|
11
|
+
/**
|
12
|
+
* Returns the locale properties for the given locale.
|
13
|
+
*
|
14
|
+
* @param {string} locale - The locale to get the properties for.
|
15
|
+
* @returns {LocaleProperties} The locale properties for the given locale.
|
16
|
+
*
|
17
|
+
* @example
|
18
|
+
* const localeProperties = useLocaleProperties('en-US');
|
19
|
+
* console.log(localeProperties);
|
20
|
+
*/
|
2
21
|
export declare function useLocaleProperties(locale: string): import("generaltranslation/types").LocaleProperties;
|
3
22
|
//# sourceMappingURL=useGTClass.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useGTClass.d.ts","sourceRoot":"","sources":["../../src/hooks/useGTClass.ts"],"names":[],"mappings":"AAEA,wBAAgB,UAAU,oCAIzB;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,uDAGjD"}
|
1
|
+
{"version":3,"file":"useGTClass.d.ts","sourceRoot":"","sources":["../../src/hooks/useGTClass.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,UAAU,oCAIzB;AAED;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,uDAGjD"}
|