fix(i18n): localize automation contextual tour (#12270)
The shared Automation tour copy was rendered without passing through translate(), and the overlay surface hardcoded its default Next and Done labels. Copy is keyed off the step id rather than its position, so inserting a step ahead of them cannot shift the text onto the wrong step. Co-authored-by: 5Hyeons <ohs2251@naver.com>
This commit is contained in:
@@ -30,6 +30,8 @@ export type ContextualTourStepAction = {
|
||||
export type ContextualTourStepPlacement = 'top' | 'right' | 'bottom' | 'left'
|
||||
|
||||
export type ContextualTourStep = {
|
||||
// Stable anchor for localized copy — position-keyed translations shift onto the wrong step when one is inserted.
|
||||
id?: string
|
||||
title: string
|
||||
body: string
|
||||
targetSelector: string
|
||||
@@ -146,14 +148,16 @@ export const CONTEXTUAL_TOURS = [
|
||||
id: 'automations',
|
||||
steps: [
|
||||
{
|
||||
id: 'automations-intro',
|
||||
title: 'What is an automation?',
|
||||
body: 'Automations run agent work on a schedule. Add an automation by clicking this button.',
|
||||
targetSelector: '[data-contextual-tour-target="automations-create"]',
|
||||
requiredForStart: true
|
||||
},
|
||||
{
|
||||
id: 'automations-results',
|
||||
title: 'Find the results',
|
||||
body: 'Runs show when automations executed, what happened, and where to inspect their output.',
|
||||
body: 'Runs show when automations ran, what happened, and where to inspect their output.',
|
||||
targetSelector: '[data-contextual-tour-target="automations-runs"]'
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user