@ikas/storefront 0.0.162-alpha.3 → 0.0.162-alpha.5
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/build/index.es.js +1 -1
- package/build/index.js +1 -1
- package/build/utils/i18n.d.ts +1 -1
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -33277,7 +33277,7 @@ function t(pathString, params) {
|
|
|
33277
33277
|
}
|
|
33278
33278
|
return pathString;
|
|
33279
33279
|
}
|
|
33280
|
-
function useTranslation() {
|
|
33280
|
+
function useTranslation(namespace) {
|
|
33281
33281
|
return {
|
|
33282
33282
|
t: t,
|
|
33283
33283
|
};
|
package/build/index.js
CHANGED
|
@@ -33256,7 +33256,7 @@ function t(pathString, params) {
|
|
|
33256
33256
|
}
|
|
33257
33257
|
return pathString;
|
|
33258
33258
|
}
|
|
33259
|
-
function useTranslation() {
|
|
33259
|
+
function useTranslation(namespace) {
|
|
33260
33260
|
return {
|
|
33261
33261
|
t: t,
|
|
33262
33262
|
};
|
package/build/utils/i18n.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare class I18NFileReader {
|
|
|
7
7
|
private readLocaleFile;
|
|
8
8
|
}
|
|
9
9
|
declare function t(pathString: string, params?: Record<string, any>): any;
|
|
10
|
-
export declare function useTranslation(): {
|
|
10
|
+
export declare function useTranslation(namespace?: string | string[]): {
|
|
11
11
|
t: typeof t;
|
|
12
12
|
};
|
|
13
13
|
export {};
|