mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 17:38:04 +08:00
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:
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user