@ekyc_qoobiss/qbs-ect-cmp 3.6.30 → 3.6.31

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.
@@ -589,22 +589,16 @@ class TranslationsController {
589
589
  }
590
590
  async fetchTranslations() {
591
591
  const locale = this.getLocale();
592
- const existingTranslations = JSON.parse(sessionStorage.getItem(`i18n.${locale}`));
593
- if (existingTranslations && Object.keys(existingTranslations).length > 0) {
594
- return existingTranslations;
595
- }
596
- else {
597
- try {
598
- const result = this.apiCall.GetTranslations(locale);
599
- if (result) {
600
- sessionStorage.setItem(`i18n.${locale}`, JSON.stringify(result));
601
- return result;
602
- }
603
- }
604
- catch (exception) {
605
- console.error(`Error loading locale: ${locale}`, exception);
592
+ try {
593
+ const result = this.apiCall.GetTranslations(locale);
594
+ if (result) {
595
+ return result;
606
596
  }
607
597
  }
598
+ catch (exception) {
599
+ console.error(`Error loading locale: ${locale}`, exception);
600
+ return null;
601
+ }
608
602
  }
609
603
  }
610
604
  const Translations = new TranslationsController();
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-41696e0e.js');
6
- const TranslationUtils = require('./TranslationUtils-e23d3c71.js');
6
+ const TranslationUtils = require('./TranslationUtils-05fc03bc.js');
7
7
 
8
8
  var MobileOS;
9
9
  (function (MobileOS) {
@@ -5541,7 +5541,7 @@ function v4(options, buf, offset) {
5541
5541
  }
5542
5542
 
5543
5543
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5544
- const version$1 = "3.6.30";
5544
+ const version$1 = "3.6.31";
5545
5545
  const description = "Person Identification Component";
5546
5546
  const main = "./dist/index.cjs.js";
5547
5547
  const module$1 = "./dist/index.js";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-41696e0e.js');
6
- const TranslationUtils = require('./TranslationUtils-e23d3c71.js');
6
+ const TranslationUtils = require('./TranslationUtils-05fc03bc.js');
7
7
 
8
8
  const randomActionsCss = "";
9
9
 
@@ -24,22 +24,16 @@ class TranslationsController {
24
24
  }
25
25
  async fetchTranslations() {
26
26
  const locale = this.getLocale();
27
- const existingTranslations = JSON.parse(sessionStorage.getItem(`i18n.${locale}`));
28
- if (existingTranslations && Object.keys(existingTranslations).length > 0) {
29
- return existingTranslations;
30
- }
31
- else {
32
- try {
33
- const result = this.apiCall.GetTranslations(locale);
34
- if (result) {
35
- sessionStorage.setItem(`i18n.${locale}`, JSON.stringify(result));
36
- return result;
37
- }
38
- }
39
- catch (exception) {
40
- console.error(`Error loading locale: ${locale}`, exception);
27
+ try {
28
+ const result = this.apiCall.GetTranslations(locale);
29
+ if (result) {
30
+ return result;
41
31
  }
42
32
  }
33
+ catch (exception) {
34
+ console.error(`Error loading locale: ${locale}`, exception);
35
+ return null;
36
+ }
43
37
  }
44
38
  }
45
39
  export const Translations = new TranslationsController();
@@ -587,22 +587,16 @@ class TranslationsController {
587
587
  }
588
588
  async fetchTranslations() {
589
589
  const locale = this.getLocale();
590
- const existingTranslations = JSON.parse(sessionStorage.getItem(`i18n.${locale}`));
591
- if (existingTranslations && Object.keys(existingTranslations).length > 0) {
592
- return existingTranslations;
593
- }
594
- else {
595
- try {
596
- const result = this.apiCall.GetTranslations(locale);
597
- if (result) {
598
- sessionStorage.setItem(`i18n.${locale}`, JSON.stringify(result));
599
- return result;
600
- }
601
- }
602
- catch (exception) {
603
- console.error(`Error loading locale: ${locale}`, exception);
590
+ try {
591
+ const result = this.apiCall.GetTranslations(locale);
592
+ if (result) {
593
+ return result;
604
594
  }
605
595
  }
596
+ catch (exception) {
597
+ console.error(`Error loading locale: ${locale}`, exception);
598
+ return null;
599
+ }
606
600
  }
607
601
  }
608
602
  const Translations = new TranslationsController();
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-cf54a432.js';
2
- import { A as ApiCall, s as state, F as FlowMoments, a as FlowSteps, T as Translations, b as FlowStatus, S as SessionKeys, I as IdCaptureValues, O as OrderStatuses, c as SelfieCaptureValues } from './TranslationUtils-7c1f0f39.js';
2
+ import { A as ApiCall, s as state, F as FlowMoments, a as FlowSteps, T as Translations, b as FlowStatus, S as SessionKeys, I as IdCaptureValues, O as OrderStatuses, c as SelfieCaptureValues } from './TranslationUtils-2450f38e.js';
3
3
 
4
4
  var MobileOS;
5
5
  (function (MobileOS) {
@@ -5537,7 +5537,7 @@ function v4(options, buf, offset) {
5537
5537
  }
5538
5538
 
5539
5539
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5540
- const version$1 = "3.6.30";
5540
+ const version$1 = "3.6.31";
5541
5541
  const description = "Person Identification Component";
5542
5542
  const main = "./dist/index.cjs.js";
5543
5543
  const module = "./dist/index.js";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-cf54a432.js';
2
- import { T as Translations } from './TranslationUtils-7c1f0f39.js';
2
+ import { T as Translations } from './TranslationUtils-2450f38e.js';
3
3
 
4
4
  const randomActionsCss = "";
5
5