payload icon indicating copy to clipboard operation
payload copied to clipboard

fix(translations): correct i18n dynamic variable name for 'movingFromFolder'

Open anyuj opened this issue 8 months ago • 0 comments

The i18n namespace movingFromFolder's second dynamic variable name should be {{fromFolder}}, but lots of locales use {{folderName}}, and it will fail to get the value, because it is supposed to be fromFolder.

https://github.com/payloadcms/payload/blob/8199a7d32a06a3771f93b8ccf55a8ce288814617/packages/ui/src/elements/FolderView/Drawers/MoveToFolder/index.tsx#L360-L363

There is also some minor optimization for Folder related translation of zh.ts included inside.

anyuj avatar Jun 01 '25 04:06 anyuj