@etsoo/appscript 1.1.93 → 1.1.94

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.
@@ -322,7 +322,7 @@ class CoreApp {
322
322
  if (regionItem == null || !this.settings.regions.includes(regionId))
323
323
  return;
324
324
  // Save the id to local storage
325
- shared_1.DomUtils.saveCountry(regionId);
325
+ this.storage.setData(shared_1.DomUtils.CountryField, regionId);
326
326
  // Set the currency and culture
327
327
  this._currency = regionItem.currency;
328
328
  this._region = regionId;
@@ -340,7 +340,7 @@ class CoreApp {
340
340
  if (this._culture === name)
341
341
  return;
342
342
  // Save the cultrue to local storage
343
- shared_1.DomUtils.saveCulture(name);
343
+ this.storage.setData(shared_1.DomUtils.CultureField, name);
344
344
  // Change the API's Content-Language header
345
345
  // .net 5 API, UseRequestLocalization, RequestCultureProviders, ContentLanguageHeaderRequestCultureProvider
346
346
  this.api.setContentLanguage(name);
@@ -319,7 +319,7 @@ export class CoreApp {
319
319
  if (regionItem == null || !this.settings.regions.includes(regionId))
320
320
  return;
321
321
  // Save the id to local storage
322
- DomUtils.saveCountry(regionId);
322
+ this.storage.setData(DomUtils.CountryField, regionId);
323
323
  // Set the currency and culture
324
324
  this._currency = regionItem.currency;
325
325
  this._region = regionId;
@@ -337,7 +337,7 @@ export class CoreApp {
337
337
  if (this._culture === name)
338
338
  return;
339
339
  // Save the cultrue to local storage
340
- DomUtils.saveCulture(name);
340
+ this.storage.setData(DomUtils.CultureField, name);
341
341
  // Change the API's Content-Language header
342
342
  // .net 5 API, UseRequestLocalization, RequestCultureProviders, ContentLanguageHeaderRequestCultureProvider
343
343
  this.api.setContentLanguage(name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/appscript",
3
- "version": "1.1.93",
3
+ "version": "1.1.94",
4
4
  "description": "Applications shared TypeScript framework",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -54,7 +54,7 @@
54
54
  "dependencies": {
55
55
  "@etsoo/notificationbase": "^1.0.95",
56
56
  "@etsoo/restclient": "^1.0.63",
57
- "@etsoo/shared": "^1.0.83",
57
+ "@etsoo/shared": "^1.0.84",
58
58
  "@types/crypto-js": "^4.0.2",
59
59
  "crypto-js": "^4.1.1"
60
60
  },
@@ -884,7 +884,7 @@ export abstract class CoreApp<
884
884
  return;
885
885
 
886
886
  // Save the id to local storage
887
- DomUtils.saveCountry(regionId);
887
+ this.storage.setData(DomUtils.CountryField, regionId);
888
888
 
889
889
  // Set the currency and culture
890
890
  this._currency = regionItem.currency;
@@ -906,7 +906,7 @@ export abstract class CoreApp<
906
906
  if (this._culture === name) return;
907
907
 
908
908
  // Save the cultrue to local storage
909
- DomUtils.saveCulture(name);
909
+ this.storage.setData(DomUtils.CultureField, name);
910
910
 
911
911
  // Change the API's Content-Language header
912
912
  // .net 5 API, UseRequestLocalization, RequestCultureProviders, ContentLanguageHeaderRequestCultureProvider