| @@ -356,9 +356,9 @@ | ||
| 356 | 356 | defaultStrings = {} |
| 357 | 357 | }) { |
| 358 | 358 | return (key, ...args) => { |
| 359 | 359 | const appConfig = window.elementorAppConfig; |
| 360 | - const remoteStrings = appConfig?.[configKey]?.translations; | |
| 360 | + const remoteStrings = Object.fromEntries(Object.entries(appConfig?.[configKey]?.translations ?? {}).filter(([, value]) => 'string' === typeof value && '' !== value.trim())); | |
| 361 | 361 | const strings = { |
| 362 | 362 | ...defaultStrings, |
| 363 | 363 | ...remoteStrings |
| 364 | 364 | }; |