gt-react 9.2.0-alpha.6 → 9.2.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/client.d.ts CHANGED
@@ -253,7 +253,7 @@ declare function useDefaultLocale(): string;
253
253
  * const d = useDict();
254
254
  * console.log(d('hello')); // Translates item 'hello'
255
255
  */
256
- declare function useDict(id: string): (id: string, options?: DictionaryTranslationOptions) => React__default.ReactNode;
256
+ declare function useDict(id?: string): (id: string, options?: DictionaryTranslationOptions) => React__default.ReactNode;
257
257
 
258
258
  /**
259
259
  * Retrieves the user's locale from the `<GTProvider>` context.
@@ -13,5 +13,5 @@ import { DictionaryTranslationOptions } from '../../types/types';
13
13
  * const d = useDict();
14
14
  * console.log(d('hello')); // Translates item 'hello'
15
15
  */
16
- export default function useDict(id: string): (id: string, options?: DictionaryTranslationOptions) => React.ReactNode;
16
+ export default function useDict(id?: string): (id: string, options?: DictionaryTranslationOptions) => React.ReactNode;
17
17
  //# sourceMappingURL=useDict.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useDict.d.ts","sourceRoot":"","sources":["../../../src/translation/hooks/useDict.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAEjE;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,EAAE,EAAE,MAAM,GACT,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,4BAA4B,KAAK,KAAK,CAAC,SAAS,CAqCzE"}
1
+ {"version":3,"file":"useDict.d.ts","sourceRoot":"","sources":["../../../src/translation/hooks/useDict.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAEjE;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,EAAE,CAAC,EAAE,MAAM,GACV,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,4BAA4B,KAAK,KAAK,CAAC,SAAS,CAqCzE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gt-react",
3
- "version": "9.2.0-alpha.6",
3
+ "version": "9.2.0",
4
4
  "description": "A React library for automatic internationalization.",
5
5
  "main": "./dist/index.cjs.min.cjs",
6
6
  "module": "./dist/index.esm.min.mjs",