@salla.sa/twilight-components 1.6.4 → 1.6.5

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.
@@ -21014,11 +21014,9 @@ const SallaSocialShare = class {
21014
21014
  window.a2a_config = window.a2a_config || {};
21015
21015
  window.a2a_config.linkurl = that.url ? that.url : window.location.href;
21016
21016
  window.a2a_config.linkname = that.urlName ? that.urlName : document.title;
21017
+ window.a2a_config.locale = salla.config.get('user.language_code', salla.lang.getLocale());
21017
21018
  };
21018
21019
  document.body.appendChild(script);
21019
- salla.lang.onLoaded(() => {
21020
- window.a2a_config.locale = salla.lang.locale;
21021
- });
21022
21020
  }
21023
21021
  /**
21024
21022
  * Activate or open the share menu.
@@ -43,11 +43,9 @@ export class SallaSocialShare {
43
43
  window.a2a_config = window.a2a_config || {};
44
44
  window.a2a_config.linkurl = that.url ? that.url : window.location.href;
45
45
  window.a2a_config.linkname = that.urlName ? that.urlName : document.title;
46
+ window.a2a_config.locale = salla.config.get('user.language_code', salla.lang.getLocale());
46
47
  };
47
48
  document.body.appendChild(script);
48
- salla.lang.onLoaded(() => {
49
- window.a2a_config.locale = salla.lang.locale;
50
- });
51
49
  }
52
50
  /**
53
51
  * Activate or open the share menu.
@@ -87,11 +87,9 @@ const SallaSocialShare$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
87
87
  window.a2a_config = window.a2a_config || {};
88
88
  window.a2a_config.linkurl = that.url ? that.url : window.location.href;
89
89
  window.a2a_config.linkname = that.urlName ? that.urlName : document.title;
90
+ window.a2a_config.locale = salla.config.get('user.language_code', salla.lang.getLocale());
90
91
  };
91
92
  document.body.appendChild(script);
92
- salla.lang.onLoaded(() => {
93
- window.a2a_config.locale = salla.lang.locale;
94
- });
95
93
  }
96
94
  /**
97
95
  * Activate or open the share menu.
@@ -21010,11 +21010,9 @@ const SallaSocialShare = class {
21010
21010
  window.a2a_config = window.a2a_config || {};
21011
21011
  window.a2a_config.linkurl = that.url ? that.url : window.location.href;
21012
21012
  window.a2a_config.linkname = that.urlName ? that.urlName : document.title;
21013
+ window.a2a_config.locale = salla.config.get('user.language_code', salla.lang.getLocale());
21013
21014
  };
21014
21015
  document.body.appendChild(script);
21015
- salla.lang.onLoaded(() => {
21016
- window.a2a_config.locale = salla.lang.locale;
21017
- });
21018
21016
  }
21019
21017
  /**
21020
21018
  * Activate or open the share menu.