adecksibility-widget 2.5.19 → 2.5.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -11,7 +11,7 @@ Premium standalone accessibility widget bundle for WordPress and non-WordPress s
11
11
  platform: "standalone"
12
12
  };
13
13
  </script>
14
- <script src="https://cdn.jsdelivr.net/npm/adecksibility-widget@2.5.19/dist/adecksibility-widget-pro.umd.js" defer></script>
14
+ <script src="https://cdn.jsdelivr.net/npm/adecksibility-widget@2.5.20/dist/adecksibility-widget-pro.umd.js" defer></script>
15
15
  ```
16
16
 
17
17
  ## Notes
@@ -1397,14 +1397,11 @@ function init(options) {
1397
1397
  }
1398
1398
 
1399
1399
  function buildVoiceUnavailableMessage(lang) {
1400
- var localeMessages = getLocaleMessages(lang);
1401
- var isEnglish = normalizeLanguage(lang, i18n) === 'en';
1402
- var template = localeMessages.voice_unavailable || (isEnglish
1403
- ? 'Read Aloud voice for {language} is unavailable on this device.'
1404
- : 'Suara Bacakan Teks untuk {language} tidak tersedia di perangkat ini.');
1405
- var hint = localeMessages.voice_hint || (isEnglish
1406
- ? 'Install additional language voices in your browser or OS settings for better results.'
1407
- : 'Pasang voice bahasa tambahan di browser atau pengaturan sistem untuk hasil yang lebih baik.');
1400
+ var englishMessages = i18n.en || {};
1401
+ var template = englishMessages.voice_unavailable
1402
+ || 'Read Aloud voice for {language} is unavailable on this device.';
1403
+ var hint = englishMessages.voice_hint
1404
+ || 'Install additional language voices in your browser or OS settings for better results.';
1408
1405
  var message = template.replace('{language}', getLanguageLabel(lang));
1409
1406
  return hint ? (message + ' ' + hint) : message;
1410
1407
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adecksibility-widget",
3
- "version": "2.5.19",
3
+ "version": "2.5.20",
4
4
  "description": "Premium standalone accessibility widget bundle for WordPress and non-WordPress sites.",
5
5
  "homepage": "https://adeck.top/adecksibility/",
6
6
  "bugs": {