Skip to content

Commit f92c324

Browse files
committed
Update constants.ts
1 parent 43a520a commit f92c324

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/constants.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,26 @@ export const LOCALE_CACHE_KEY = 'cdnLocaleCache_v1'
66
/**
77
* List of CSS selectors to exclude from translation.
88
* Any text node inside an element matching these selectors (or the element itself) will be skipped.
9+
* Test site - look for the text "EXCLUDE-THIS" (testing string: notranslate):
10+
* https://preview.webflow.com/preview/notranslate?preview=1db9e911959b56d89fe51bfa4a4962bb
911
*/
1012
export const EXCLUDED_SELECTORS = [
1113
// Examples:
1214
// '#apple-pie', // ID
1315
// '.top-bar', // Class
1416
// '[data-pop="wow"]', // Attribute
1517
// 'nav.top', // Tag + Class
16-
// Parts in Webflow, especially in the Designer, that should not be translated:
1718
// Webflow Pages
18-
'div.bem-SearchResultPreview',
1919
// Webflow Designer
20+
'div.bem-SearchResultPreview', // SEO Preview
2021
'[data-automation-id="page-list-row-wrapper"] div.bem-List_Cell',
2122
'[data-palette="CMSListItem"]',
2223
'[data-palette="CMSItemsListPanelTitle"]',
2324
'[data-palette="VirtualizedSearchableListGroup"] [data-sc="RowItemLabel"]',
2425
'[data-automation-id="style-rule-token-text"]',
25-
'[data-automation-id="symbol-panel-styles-name"]', // Style Panel > Styles names
26-
'[data-automation-id="style-rule-token-all-styles-tooltip-text"]', // Style Selector > Style names
26+
'[data-automation-id="symbol-panel-styles-name"]', // Style Panel > Styles names
27+
'[data-automation-id="style-rule-token-all-styles-tooltip-text"]', // Style Selector > Style names
2728
'[data-automation-id="components-group-Templates"] span[data-text="true"]',
29+
'[data-automation-id="default-collection-row"]', // Variable Group names
2830
'.CodeMirror-scroll'
2931
];

0 commit comments

Comments
 (0)