@webiny/i18n 5.40.6 → 5.41.0-beta.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/I18n.d.ts +1 -1
- package/package.json +5 -5
- package/types.d.ts +1 -1
package/I18n.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Formats, I18NDataValues, Modifier, NumberFormat, PriceFormat, Processor, ProcessorResult, Translations, Translator } from "./types";
|
|
2
|
-
export
|
|
2
|
+
export type Translated = ((values: I18NDataValues) => ProcessorResult | null) | ProcessorResult | null;
|
|
3
3
|
/**
|
|
4
4
|
* Main class used for all I18n needs.
|
|
5
5
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/i18n",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.41.0-beta.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"@babel/register": "7.23.7",
|
|
32
32
|
"@types/accounting": "0.4.2",
|
|
33
33
|
"@types/lodash": "4.14.191",
|
|
34
|
-
"@webiny/cli": "5.
|
|
35
|
-
"@webiny/project-utils": "5.
|
|
34
|
+
"@webiny/cli": "5.41.0-beta.0",
|
|
35
|
+
"@webiny/project-utils": "5.41.0-beta.0",
|
|
36
36
|
"glob": "7.2.3",
|
|
37
37
|
"rimraf": "5.0.5",
|
|
38
38
|
"ttypescript": "1.5.15",
|
|
39
|
-
"typescript": "4.
|
|
39
|
+
"typescript": "4.9.5"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"build": "yarn webiny run build",
|
|
47
47
|
"watch": "yarn webiny run watch"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "9ce5e75fc577aa4de2cf08d5ca734b3c98fe65b6"
|
|
50
50
|
}
|
package/types.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface Modifier {
|
|
|
20
20
|
name: string;
|
|
21
21
|
execute: (...args: any[]) => string;
|
|
22
22
|
}
|
|
23
|
-
export
|
|
23
|
+
export type ProcessorResult = string | ReactElement;
|
|
24
24
|
/**
|
|
25
25
|
* @description I18N Processor - used for outputting text.
|
|
26
26
|
*/
|