chore: add i18n namespace to various components in the workflow for consistency

This commit is contained in:
twwu
2025-12-30 10:18:31 +08:00
parent bf6a2c22eb
commit 501c3bcc94
6 changed files with 14 additions and 2 deletions

View File

@ -32,7 +32,8 @@ const HumanInputContent = ({
{showEmailTip && isEmailDebugMode && (
<div className="system-xs-regular text-text-secondary">
<Trans
i18nKey="workflow.common.humanInputEmailTipInDebugMode"
i18nKey="common.humanInputEmailTipInDebugMode"
ns="workflow"
components={{ email: <span className="system-xs-semibold"></span> }}
values={{ email }}
/>

View File

@ -37,6 +37,7 @@ const Placeholder = ({
<div className="flex flex-wrap items-center leading-5">
<Trans
i18nKey={`${i18nPrefix}.prePopulateFieldPlaceholder`}
ns="workflow"
components={{
staticContent: <TagLabel type="edit" className="mx-1" onClick={() => onTypeClick(false)}>{t(`${i18nPrefix}.staticContent`, { ns: 'workflow' })}</TagLabel>,
variable: (