@everymatrix/cashier-method-details 1.33.4 → 1.34.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/cashier-method-details",
3
- "version": "1.33.4",
3
+ "version": "1.34.0",
4
4
  "main": "index.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "7b7b435a1448d5f306a0637a95304a725cf34a73"
38
+ "gitHead": "c9ad96fd45d67455a049f61462d8b4523a78ba54"
39
39
  }
@@ -505,7 +505,7 @@
505
505
  window.postMessage({type: 'ErrorResponseCode', errorResponseCode}, window.location.href);
506
506
  }
507
507
  const setConfirmModalInfo = () => {
508
- window.postMessage({type:'ShowConfirmModal', showConfirmModal, editedAmount}, window.location.href);
508
+ window.postMessage({type:'ShowConfirmModal', showConfirmModal, editedAmount, hideAmountField: selectedPaymentMethod.HideAmountField}, window.location.href);
509
509
  }
510
510
  const setRedirectInfo = () => {
511
511
  window.postMessage({type: 'RedirectInfo', redirectMode, redirectUrl}, window.location.href);
package/src/i18n.js CHANGED
@@ -1,10 +1,15 @@
1
1
  import {
2
2
  dictionary,
3
3
  locale,
4
+ init,
4
5
  addMessages,
5
6
  _
6
7
  } from 'svelte-i18n';
7
8
 
9
+ init({
10
+ fallbackLocale: 'en'
11
+ });
12
+
8
13
  function setupI18n({ withLocale: _locale, translations }) {
9
14
  locale.subscribe((data) => {
10
15
  if (data == null) {