@trackunit/i18n-library-translation 0.0.30 → 0.0.31

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/index.js CHANGED
@@ -51,8 +51,6 @@ const registerTranslations = (resource) => {
51
51
  * A function used to initialize i18next with all registered translations.
52
52
  * This function is to be used in Iris App extensions and the manager, after registerTranslations has been called for all libraries.
53
53
  * Pass the apps/extensions TranslationResource to this function for them to be available as well.
54
- *
55
- * @param initialResource {TranslationResource}
56
54
  */
57
55
  const initializeTranslationsForApp = () => {
58
56
  var _a, _b, _c, _d;
@@ -117,7 +115,7 @@ const initializeTranslationsForApp = () => {
117
115
  *
118
116
  * @param namespace namespace to get translations from
119
117
  * @param options options to send to i18next
120
- * @returns useTranslation with custom t function
118
+ * @returns {[TransForLibs, i18n, boolean]} useTranslation with custom t function
121
119
  */
122
120
  const useNamespaceTranslation = (namespace, options) => {
123
121
  const customUseTranslation = useTranslation(namespace, options);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@trackunit/i18n-library-translation",
3
3
  "repository": "https://github.com/Trackunit/manager",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
- "version": "0.0.30",
5
+ "version": "0.0.31",
6
6
  "module": "./index.js",
7
7
  "main": "./index.js",
8
8
  "type": "module",
@@ -13,7 +13,7 @@
13
13
  "i18next": "21.10.0",
14
14
  "i18next-browser-languagedetector": "6.1.8",
15
15
  "i18next-resources-to-backend": "1.1.0",
16
- "@trackunit/iris-app-api": "0.0.79",
16
+ "@trackunit/iris-app-api": "0.0.80",
17
17
  "@sentry/browser": "7.24.2"
18
18
  },
19
19
  "peerDependencies": {}
@@ -15,7 +15,5 @@ export declare const registerTranslations: (resource: TranslationResource<string
15
15
  * A function used to initialize i18next with all registered translations.
16
16
  * This function is to be used in Iris App extensions and the manager, after registerTranslations has been called for all libraries.
17
17
  * Pass the apps/extensions TranslationResource to this function for them to be available as well.
18
- *
19
- * @param initialResource {TranslationResource}
20
18
  */
21
19
  export declare const initializeTranslationsForApp: () => void;
@@ -7,7 +7,7 @@ export type TransForLibs<LibKeys> = (key: LibKeys, arg2?: string | TOptions, arg
7
7
  *
8
8
  * @param namespace namespace to get translations from
9
9
  * @param options options to send to i18next
10
- * @returns useTranslation with custom t function
10
+ * @returns {[TransForLibs, i18n, boolean]} useTranslation with custom t function
11
11
  */
12
12
  export declare const useNamespaceTranslation: <TranslationKeys extends string>(namespace: string, options?: UseTranslationOptions) => [TransForLibs<TranslationKeys>, i18n, boolean] & {
13
13
  t: TransForLibs<TranslationKeys>;