File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ export function applyTranslation(
317317
318318 if ( blocks ) {
319319 traverse ( blocks ) . forEach ( function ( el ) {
320- if ( el && el . id && el . component ?. name === 'Symbol' ) {
320+ if ( el && el . id && el . component ?. name === 'Symbol' && ! el . meta ?. excludeFromTranslation ) {
321321 const symbolInputs = Object . entries ( el . component ?. options ?. symbol ?. data ) || [ ] ;
322322 if ( symbolInputs . length ) {
323323 const transformedMeta = { } ;
Original file line number Diff line number Diff line change @@ -534,7 +534,7 @@ const initializeSmartlingPlugin = async () => {
534534 }
535535 const element = elements [ 0 ] ;
536536 const instructions = element . meta ?. get ( 'instructions' ) ;
537- if ( instructions ) {
537+ if ( instructions !== undefined ) {
538538 const newInstructions = await appState . dialogs . prompt ( {
539539 placeholderText : 'Enter new string instructions for translation' ,
540540 defaultValue : instructions ,
You can’t perform that action at this time.
0 commit comments