diff --git a/package.json b/package.json index 611c8ae..ef44ec3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "payload-enchants", - "version": "1.1.37", + "version": "1.1.38", "private": true, "description": "", "keywords": [], diff --git a/packages/better-localized-fields/package.json b/packages/better-localized-fields/package.json index d46b2fe..f89fd7e 100644 --- a/packages/better-localized-fields/package.json +++ b/packages/better-localized-fields/package.json @@ -1,6 +1,6 @@ { "name": "@payload-enchants/better-localized-fields", - "version": "1.1.37", + "version": "1.1.38", "private": false, "bugs": "https://github.com/r1tsuu/payload-enchants/issues", "repository": "https://github.com/r1tsuu/payload-enchants", diff --git a/packages/better-use-as-title/package.json b/packages/better-use-as-title/package.json index 74a1c61..1e51e8e 100644 --- a/packages/better-use-as-title/package.json +++ b/packages/better-use-as-title/package.json @@ -1,6 +1,6 @@ { "name": "@payload-enchants/better-use-as-title", - "version": "1.1.37", + "version": "1.1.38", "private": false, "bugs": "https://github.com/r1tsuu/payload-enchants/issues", "repository": "https://github.com/r1tsuu/payload-enchants", diff --git a/packages/bump-payload/package.json b/packages/bump-payload/package.json index 64b6bcb..421955c 100644 --- a/packages/bump-payload/package.json +++ b/packages/bump-payload/package.json @@ -1,6 +1,6 @@ { "name": "bump-payload", - "version": "1.1.37", + "version": "1.1.38", "private": false, "bugs": "https://github.com/r1tsuu/payload-enchants/issues", "repository": "https://github.com/r1tsuu/payload-enchants", diff --git a/packages/cached-local-api/package.json b/packages/cached-local-api/package.json index 6769994..51fdccf 100644 --- a/packages/cached-local-api/package.json +++ b/packages/cached-local-api/package.json @@ -1,6 +1,6 @@ { "name": "@payload-enchants/cached-local-api", - "version": "1.1.37", + "version": "1.1.38", "private": false, "bugs": "https://github.com/r1tsuu/payload-enchants/issues", "repository": "https://github.com/r1tsuu/payload-enchants", diff --git a/packages/docs-reorder/package.json b/packages/docs-reorder/package.json index 6bb8aeb..9476044 100644 --- a/packages/docs-reorder/package.json +++ b/packages/docs-reorder/package.json @@ -1,6 +1,6 @@ { "name": "@payload-enchants/docs-reorder", - "version": "1.1.37", + "version": "1.1.38", "private": false, "bugs": "https://github.com/r1tsuu/payload-enchants/issues", "repository": "https://github.com/r1tsuu/payload-enchants", diff --git a/packages/seo/package.json b/packages/seo/package.json index 61760dd..5c1d3c9 100644 --- a/packages/seo/package.json +++ b/packages/seo/package.json @@ -1,6 +1,6 @@ { "name": "@payload-enchants/seo", - "version": "1.1.37", + "version": "1.1.38", "private": false, "bugs": "https://github.com/r1tsuu/payload-enchants/issues", "repository": "https://github.com/r1tsuu/payload-enchants", diff --git a/packages/translator/package.json b/packages/translator/package.json index 5227ad3..58258e7 100644 --- a/packages/translator/package.json +++ b/packages/translator/package.json @@ -1,6 +1,6 @@ { "name": "@payload-enchants/translator", - "version": "1.1.37", + "version": "1.1.38", "private": false, "bugs": "https://github.com/r1tsuu/payload-enchants/issues", "repository": "https://github.com/r1tsuu/payload-enchants", diff --git a/packages/translator/src/translate/traverseFields.ts b/packages/translator/src/translate/traverseFields.ts index b6dff5b..b7e4530 100644 --- a/packages/translator/src/translate/traverseFields.ts +++ b/packages/translator/src/translate/traverseFields.ts @@ -186,7 +186,7 @@ export const traverseFields = ({ case 'textarea': if (field.custom && typeof field.custom === 'object' && field.custom.translatorSkip) return; - if (!field.localized && !localizedParent && isEmpty(siblingDataFrom[field.name])) return; + if (!field.localized || !localizedParent || isEmpty(siblingDataFrom[field.name])) return; if (emptyOnly && siblingDataTranslated[field.name]) return; // do not translate the block ID or admin-facing label diff --git a/test/package.json b/test/package.json index d9efbd3..e6f0c47 100644 --- a/test/package.json +++ b/test/package.json @@ -1,6 +1,6 @@ { "name": "test", - "version": "1.1.37", + "version": "1.1.38", "private": true, "type": "module", "scripts": {