@stemy/ngx-utils 19.0.0 → 19.0.1

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.
@@ -3461,7 +3461,8 @@ class LanguageService extends StaticLanguageService {
3461
3461
  loadDictionary() {
3462
3462
  const lang = this.currentLanguage;
3463
3463
  this.translationRequests[lang] = this.translationRequests[lang] || new Promise(resolve => {
3464
- this.httpClient.get(`${this.config.translationUrl}${lang}`).toPromise().then(response => {
3464
+ const ext = this.config.translationExt || ``;
3465
+ this.httpClient.get(`${this.config.translationUrl}${lang}${ext}`).toPromise().then(response => {
3465
3466
  response = response || {};
3466
3467
  resolve(Object.keys(response).reduce((result, key) => {
3467
3468
  result[key.toLocaleLowerCase()] = response[key];
@@ -3474,7 +3475,8 @@ class LanguageService extends StaticLanguageService {
3474
3475
  return this.translationRequests[lang];
3475
3476
  }
3476
3477
  loadSettings() {
3477
- this.settingsPromise = this.settingsPromise || (this.client.get(`${this.config.translationUrl}languageSettings`).toPromise())
3478
+ const ext = this.config.translationExt || ``;
3479
+ this.settingsPromise = this.settingsPromise || (this.client.get(`${this.config.translationUrl}languageSettings${ext}`).toPromise())
3478
3480
  .then((settings) => {
3479
3481
  return settings;
3480
3482
  }, () => {