@n8n/i18n 1.21.0 → 1.22.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/index.cjs +3793 -7543
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +3794 -7544
- package/dist/index.js.map +1 -1
- package/dist/{types-BEthcX4W.d.cts → types-j8rdQ8e5.d.ts} +7 -2
- package/dist/{types-me2l4Lvz.d.ts → types-wNLLPlzG.d.cts} +7 -2
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/{utils-Ct4O795q.js → utils-h8Z6_NUG.js} +2 -2
- package/dist/{utils-Ct4O795q.js.map → utils-h8Z6_NUG.js.map} +1 -1
- package/dist/utils.js +1 -1
- package/package.json +4 -4
|
@@ -126,6 +126,7 @@ declare const _exports: {
|
|
|
126
126
|
"generic.list.clearSelection": string;
|
|
127
127
|
"generic.list.selected": string;
|
|
128
128
|
"generic.project": string;
|
|
129
|
+
"generic.projects": string;
|
|
129
130
|
"generic.your": string;
|
|
130
131
|
"generic.apiKey": string;
|
|
131
132
|
"about.aboutN8n": string;
|
|
@@ -752,6 +753,9 @@ declare const _exports: {
|
|
|
752
753
|
"dataMapping.schemaView.disabled": string;
|
|
753
754
|
"dataMapping.schemaView.noMatches": string;
|
|
754
755
|
"dataMapping.schemaView.preview": string;
|
|
756
|
+
"dataMapping.schemaView.previewLastExecution": string;
|
|
757
|
+
"dataMapping.schemaView.previewLastExecution.executePreviousNodes": string;
|
|
758
|
+
"dataMapping.schemaView.preview.executeNode": string;
|
|
755
759
|
"dataMapping.schemaView.previewExtraFields": string;
|
|
756
760
|
"dataMapping.schemaView.previewNode": string;
|
|
757
761
|
"dataMapping.schemaView.variablesContextTitle": string;
|
|
@@ -2011,6 +2015,7 @@ declare const _exports: {
|
|
|
2011
2015
|
"resourceMapper.staleDataWarning.notice": string;
|
|
2012
2016
|
"resourceMapper.attemptToConvertTypes.displayName": string;
|
|
2013
2017
|
"resourceMapper.attemptToConvertTypes.description": string;
|
|
2018
|
+
"runData.pinData.insertedExecutionData": string;
|
|
2014
2019
|
"runData.openSubExecutionSingle": string;
|
|
2015
2020
|
"runData.openSubExecutionWithId": string;
|
|
2016
2021
|
"runData.openParentExecution": string;
|
|
@@ -3809,5 +3814,5 @@ interface INodeTranslationHeaders {
|
|
|
3809
3814
|
};
|
|
3810
3815
|
}
|
|
3811
3816
|
//#endregion
|
|
3812
|
-
export {
|
|
3813
|
-
//# sourceMappingURL=types-
|
|
3817
|
+
export { LocaleMessages as i, GetBaseTextKey as n, INodeTranslationHeaders as r, BaseTextKey as t };
|
|
3818
|
+
//# sourceMappingURL=types-j8rdQ8e5.d.ts.map
|
|
@@ -126,6 +126,7 @@ declare const _exports: {
|
|
|
126
126
|
"generic.list.clearSelection": string;
|
|
127
127
|
"generic.list.selected": string;
|
|
128
128
|
"generic.project": string;
|
|
129
|
+
"generic.projects": string;
|
|
129
130
|
"generic.your": string;
|
|
130
131
|
"generic.apiKey": string;
|
|
131
132
|
"about.aboutN8n": string;
|
|
@@ -752,6 +753,9 @@ declare const _exports: {
|
|
|
752
753
|
"dataMapping.schemaView.disabled": string;
|
|
753
754
|
"dataMapping.schemaView.noMatches": string;
|
|
754
755
|
"dataMapping.schemaView.preview": string;
|
|
756
|
+
"dataMapping.schemaView.previewLastExecution": string;
|
|
757
|
+
"dataMapping.schemaView.previewLastExecution.executePreviousNodes": string;
|
|
758
|
+
"dataMapping.schemaView.preview.executeNode": string;
|
|
755
759
|
"dataMapping.schemaView.previewExtraFields": string;
|
|
756
760
|
"dataMapping.schemaView.previewNode": string;
|
|
757
761
|
"dataMapping.schemaView.variablesContextTitle": string;
|
|
@@ -2011,6 +2015,7 @@ declare const _exports: {
|
|
|
2011
2015
|
"resourceMapper.staleDataWarning.notice": string;
|
|
2012
2016
|
"resourceMapper.attemptToConvertTypes.displayName": string;
|
|
2013
2017
|
"resourceMapper.attemptToConvertTypes.description": string;
|
|
2018
|
+
"runData.pinData.insertedExecutionData": string;
|
|
2014
2019
|
"runData.openSubExecutionSingle": string;
|
|
2015
2020
|
"runData.openSubExecutionWithId": string;
|
|
2016
2021
|
"runData.openParentExecution": string;
|
|
@@ -3809,5 +3814,5 @@ interface INodeTranslationHeaders {
|
|
|
3809
3814
|
};
|
|
3810
3815
|
}
|
|
3811
3816
|
//#endregion
|
|
3812
|
-
export {
|
|
3813
|
-
//# sourceMappingURL=types-
|
|
3817
|
+
export { LocaleMessages as i, GetBaseTextKey as n, INodeTranslationHeaders as r, BaseTextKey as t };
|
|
3818
|
+
//# sourceMappingURL=types-wNLLPlzG.d.cts.map
|
package/dist/types.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as LocaleMessages, n as GetBaseTextKey, r as INodeTranslationHeaders, t as BaseTextKey } from "./types-wNLLPlzG.cjs";
|
|
2
2
|
export { BaseTextKey, GetBaseTextKey, INodeTranslationHeaders, LocaleMessages };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as LocaleMessages, n as GetBaseTextKey, r as INodeTranslationHeaders, t as BaseTextKey } from "./types-j8rdQ8e5.js";
|
|
2
2
|
export { BaseTextKey, GetBaseTextKey, INodeTranslationHeaders, LocaleMessages };
|
|
@@ -47,5 +47,5 @@ const insertOptionsAndValues = (pathSegments) => {
|
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
//#endregion
|
|
50
|
-
export {
|
|
51
|
-
//# sourceMappingURL=utils-
|
|
50
|
+
export { normalize as i, insertOptionsAndValues as n, isNestedInCollectionLike as r, deriveMiddleKey as t };
|
|
51
|
+
//# sourceMappingURL=utils-h8Z6_NUG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils-
|
|
1
|
+
{"version":3,"file":"utils-h8Z6_NUG.js","names":[],"sources":["../src/utils.ts"],"sourcesContent":["/**\n * Derive the middle key, i.e. the segment of the render key located between\n * the initial key (path to parameters root) and the property to render.\n *\n * Used by `nodeText()` to handle nested params.\n *\n * Location: `n8n-nodes-base.nodes.github.nodeView.<middleKey>.placeholder`\n */\nexport function deriveMiddleKey(path: string, parameter: { name: string; type?: string }) {\n\tlet middleKey = parameter.name;\n\n\tif (isTopLevelCollection(path, parameter) || isNestedInCollectionLike(path)) {\n\t\tconst pathSegments = normalize(path).split('.');\n\t\tmiddleKey = insertOptionsAndValues(pathSegments).join('.');\n\t}\n\n\tif (isNestedCollection(path, parameter) || isFixedCollection(path, parameter)) {\n\t\tconst pathSegments = [...normalize(path).split('.'), parameter.name];\n\t\tmiddleKey = insertOptionsAndValues(pathSegments).join('.');\n\t}\n\n\treturn middleKey;\n}\n\n/**\n * Check if a param path is for a param nested inside a `collection` or\n * `fixedCollection` param.\n */\nexport const isNestedInCollectionLike = (path: string) => path.split('.').length >= 3;\n\nconst isTopLevelCollection = (path: string, parameter: { type?: string }) =>\n\tpath.split('.').length === 2 && parameter.type === 'collection';\n\nconst isNestedCollection = (path: string, parameter: { type?: string }) =>\n\tpath.split('.').length > 2 && parameter.type === 'collection';\n\n/**\n * Check if the param is a normal `fixedCollection`, i.e. a FC other than the wrapper\n * that sits at the root of a node's top-level param and contains all of them.\n */\nconst isFixedCollection = (path: string, parameter: { type?: string }) =>\n\tparameter.type === 'fixedCollection' && path !== 'parameters';\n\n/**\n * Remove all indices and the `parameters.` prefix from a parameter path.\n *\n * Example: `parameters.a[0].b` → `a.b`\n */\nexport const normalize = (path: string) => path.replace(/\\[.*?\\]/g, '').replace('parameters.', '');\n\n/**\n * Insert `'options'` and `'values'` on an alternating basis in a string array of\n * indefinite length. Helper to create a valid render key for a collection-like param.\n *\n * Example: `['a', 'b', 'c']` → `['a', 'options', 'b', 'values', 'c']`\n */\nexport const insertOptionsAndValues = (pathSegments: string[]) => {\n\treturn pathSegments.reduce<string[]>((acc, cur, i) => {\n\t\tacc.push(cur);\n\n\t\tif (i === pathSegments.length - 1) return acc;\n\n\t\tacc.push(i % 2 === 0 ? 'options' : 'values');\n\n\t\treturn acc;\n\t}, []);\n};\n"],"mappings":";;;;;;;;;AAQA,SAAgB,gBAAgB,MAAc,WAA4C;CACzF,IAAI,YAAY,UAAU;AAE1B,KAAI,qBAAqB,MAAM,UAAU,IAAI,yBAAyB,KAAK,CAE1E,aAAY,uBADS,UAAU,KAAK,CAAC,MAAM,IAAI,CACC,CAAC,KAAK,IAAI;AAG3D,KAAI,mBAAmB,MAAM,UAAU,IAAI,kBAAkB,MAAM,UAAU,CAE5E,aAAY,uBADS,CAAC,GAAG,UAAU,KAAK,CAAC,MAAM,IAAI,EAAE,UAAU,KAAK,CACpB,CAAC,KAAK,IAAI;AAG3D,QAAO;;;;;;AAOR,MAAa,4BAA4B,SAAiB,KAAK,MAAM,IAAI,CAAC,UAAU;AAEpF,MAAM,wBAAwB,MAAc,cAC3C,KAAK,MAAM,IAAI,CAAC,WAAW,KAAK,UAAU,SAAS;AAEpD,MAAM,sBAAsB,MAAc,cACzC,KAAK,MAAM,IAAI,CAAC,SAAS,KAAK,UAAU,SAAS;;;;;AAMlD,MAAM,qBAAqB,MAAc,cACxC,UAAU,SAAS,qBAAqB,SAAS;;;;;;AAOlD,MAAa,aAAa,SAAiB,KAAK,QAAQ,YAAY,GAAG,CAAC,QAAQ,eAAe,GAAG;;;;;;;AAQlG,MAAa,0BAA0B,iBAA2B;AACjE,QAAO,aAAa,QAAkB,KAAK,KAAK,MAAM;AACrD,MAAI,KAAK,IAAI;AAEb,MAAI,MAAM,aAAa,SAAS,EAAG,QAAO;AAE1C,MAAI,KAAK,IAAI,MAAM,IAAI,YAAY,SAAS;AAE5C,SAAO;IACL,EAAE,CAAC"}
|
package/dist/utils.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as normalize, n as insertOptionsAndValues, r as isNestedInCollectionLike, t as deriveMiddleKey } from "./utils-h8Z6_NUG.js";
|
|
2
2
|
|
|
3
3
|
export { deriveMiddleKey, insertOptionsAndValues, isNestedInCollectionLike, normalize };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/i18n",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.22.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
7
7
|
"LICENSE.md",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"vue-i18n": "^11.1.2",
|
|
27
|
-
"n8n-workflow": "1.
|
|
27
|
+
"n8n-workflow": "1.115.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@testing-library/jest-dom": "^6.6.3",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"vite": "npm:rolldown-vite@latest",
|
|
40
40
|
"vitest": "^3.1.3",
|
|
41
41
|
"vue-tsc": "^2.2.8",
|
|
42
|
+
"@n8n/eslint-config": "0.0.1",
|
|
42
43
|
"@n8n/vitest-config": "1.5.0",
|
|
43
|
-
"@n8n/typescript-config": "1.3.0"
|
|
44
|
-
"@n8n/eslint-config": "0.0.1"
|
|
44
|
+
"@n8n/typescript-config": "1.3.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"vue": "^3.5.13"
|