Skip to content

fix(ui): use i18n for live preview "Open in new window" tooltip#16038

Open
ruben-hutter wants to merge 1 commit intopayloadcms:mainfrom
ruben-hutter:fix/i18n-live-preview-open-in-new-window
Open

fix(ui): use i18n for live preview "Open in new window" tooltip#16038
ruben-hutter wants to merge 1 commit intopayloadcms:mainfrom
ruben-hutter:fix/i18n-live-preview-open-in-new-window

Conversation

@ruben-hutter
Copy link
Copy Markdown

The "Open in new window" title attribute in the live preview toolbar was hardcoded in English. Replace it with the existing openInNewTab translation key, which is already translated in all 44 supported languages.

The "Open in new window" title attribute in the live preview toolbar
was hardcoded in English. Replace it with the existing `openInNewTab`
translation key, which is already translated in all 44 supported
languages.
@ruben-hutter
Copy link
Copy Markdown
Author

Note: I used the existing openInNewTab key as it's the closest match available. However, the button actually opens a popup window (setPreviewWindowType('popup')), not a new tab. If you prefer a dedicated openInNewWindow key for accuracy, I'm happy to add it to all 44 language files instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant