refactor(i18n): use JSON with flattened key and namespace (#30114)

Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Stephen Zhou
2025-12-29 14:52:32 +08:00
committed by GitHub
parent 09be869f58
commit 6d0e36479b
2552 changed files with 111159 additions and 142972 deletions

View File

@ -71,7 +71,7 @@ const VariableInspectTrigger: FC = () => {
setShowVariableInspectPanel(true)
}}
>
{t('workflow.debug.variableInspect.trigger.normal')}
{t('debug.variableInspect.trigger.normal', { ns: 'workflow' })}
</div>
)}
{!isRunning && currentVars.length > 0 && (
@ -84,7 +84,7 @@ const VariableInspectTrigger: FC = () => {
setShowVariableInspectPanel(true)
}}
>
{t('workflow.debug.variableInspect.trigger.cached')}
{t('debug.variableInspect.trigger.cached', { ns: 'workflow' })}
</div>
<div
className={cn('system-xs-medium flex h-6 cursor-pointer items-center rounded-md border-[0.5px] border-effects-highlight bg-components-actionbar-bg px-1 text-text-tertiary shadow-lg backdrop-blur-sm hover:bg-components-actionbar-bg-accent hover:text-text-accent', nodesReadOnly && 'cursor-not-allowed text-text-disabled hover:bg-transparent hover:text-text-disabled')}
@ -94,7 +94,7 @@ const VariableInspectTrigger: FC = () => {
handleClearAll()
}}
>
{t('workflow.debug.variableInspect.trigger.clear')}
{t('debug.variableInspect.trigger.clear', { ns: 'workflow' })}
</div>
</>
)}
@ -105,11 +105,11 @@ const VariableInspectTrigger: FC = () => {
onClick={() => setShowVariableInspectPanel(true)}
>
<RiLoader2Line className="h-4 w-4 animate-spin" />
<span className="text-text-accent">{t('workflow.debug.variableInspect.trigger.running')}</span>
<span className="text-text-accent">{t('debug.variableInspect.trigger.running', { ns: 'workflow' })}</span>
</div>
{isPreviewRunning && (
<Tooltip
popupContent={t('workflow.debug.variableInspect.trigger.stop')}
popupContent={t('debug.variableInspect.trigger.stop', { ns: 'workflow' })}
>
<div
className="flex h-6 cursor-pointer items-center rounded-md border-[0.5px] border-effects-highlight bg-components-actionbar-bg px-1 shadow-lg backdrop-blur-sm hover:bg-components-actionbar-bg-accent"