@everymatrix/player-transaction-history 1.12.0 → 1.12.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/player-transaction-history",
3
- "version": "1.12.0",
3
+ "version": "1.12.2",
4
4
  "main": "dist/player-transaction-history",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "5ba32db088ec6ebf8eb6110b6172d8c9409b9f70"
38
+ "gitHead": "22bb69e504862fb909bc5d21d62ba4178aaefe3d"
39
39
  }
@@ -2,7 +2,7 @@
2
2
  <script lang="ts">
3
3
  import { getDevice } from 'rvhelper';
4
4
  import { _, addNewMessages, setLocale } from './i18n';
5
- import { PlayerTransactionHistoryTranslations } from './translations';
5
+ import { TRANSLATIONS } from './translations';
6
6
 
7
7
  export let endpoint:string = '';
8
8
  export let session:string = '';
@@ -32,8 +32,8 @@
32
32
  });
33
33
  }
34
34
 
35
- Object.keys(PlayerTransactionHistoryTranslations).forEach((item:any) => {
36
- addNewMessages(item, PlayerTransactionHistoryTranslations[item]);
35
+ Object.keys(TRANSLATIONS).forEach((item:any) => {
36
+ addNewMessages(item, TRANSLATIONS[item]);
37
37
  });
38
38
 
39
39
  const toggleScreen = ():void => {
@@ -103,12 +103,12 @@
103
103
  <path class="aaa" d="M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z" transform="translate(15 15) rotate(180)"/>
104
104
  </g></g>
105
105
  </svg>
106
- <h2 class="TransactionHistoryTitleMobile" part="TransactionHistoryTitleMobile">{$_('transactionHistory.title')}</h2>
106
+ <h2 class="TransactionHistoryTitleMobile" part="TransactionHistoryTitleMobile">{$_('title')}</h2>
107
107
  </div>
108
108
  {/if}
109
- <h2 class="TransactionHistoryTitle {isMobile ? 'TransactionHistoryTitleNone' : ''}" part="TransactionHistoryTitle {isMobile ? 'TransactionHistoryTitleNone' : ''}">{$_('transactionHistory.title')}</h2>
109
+ <h2 class="TransactionHistoryTitle {isMobile ? 'TransactionHistoryTitleNone' : ''}" part="TransactionHistoryTitle {isMobile ? 'TransactionHistoryTitleNone' : ''}">{$_('title')}</h2>
110
110
  {#if isLoading}
111
- <p>{$_('transactionHistory.loading')}</p>
111
+ <p>{$_('loading')}</p>
112
112
  {:else}
113
113
  <div class="TransactionHistoryIframeWrapper" part="TransactionHistoryIframeWrapper">
114
114
  <iframe src={iframeUrl} title="Transaction History Iframe"></iframe>
@@ -1,38 +1,26 @@
1
- export const PlayerTransactionHistoryTranslations = {
2
- en: {
3
- transactionHistory: {
4
- title: `Transaction History`,
5
- loading: `Loading, please wait ...`
6
- }
1
+ export const TRANSLATIONS = {
2
+ "en": {
3
+ "title": "Transaction History",
4
+ "loading": "Loading, please wait ..."
7
5
  },
8
- 'zh-hk': {
9
- transactionHistory: {
10
- title: `交易記錄`,
11
- loading: `加載請稍候…`
12
- }
6
+ "zh-hk": {
7
+ "title": "交易記錄",
8
+ "loading": "加載請稍候…"
13
9
  },
14
- fr: {
15
- transactionHistory: {
16
- title: `Historique des transactions`,
17
- loading: `Chargement, veuillez patienter ...`
18
- }
10
+ "fr": {
11
+ "title": "Historique des transactions",
12
+ "loading": "Chargement, veuillez patienter ..."
19
13
  },
20
- ro: {
21
- transactionHistory: {
22
- title: `Istoric tranzacții`,
23
- loading: `Se încarcă...`
24
- }
14
+ "ro": {
15
+ "title": "Istoric tranzacții",
16
+ "loading": "Se încarcă..."
25
17
  },
26
- es: {
27
- transactionHistory: {
28
- title: `Historial de transacciones`,
29
- loading: `Cargando ... Por favor espere ...`
30
- }
18
+ "es": {
19
+ "title": "Historial de transacciones",
20
+ "loading": "Cargando ... Por favor espere ..."
31
21
  },
32
- pt: {
33
- transactionHistory: {
34
- title: `Histórico de transações`,
35
- loading: `Carregando, por favor espere ...`
36
- }
37
- },
38
- };
22
+ "pt": {
23
+ "title": "Histórico de transações",
24
+ "loading": "Carregando, por favor espere ..."
25
+ }
26
+ }