@everymatrix/general-logout 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/general-logout",
3
- "version": "1.12.0",
3
+ "version": "1.12.2",
4
4
  "main": "dist/general-logout.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": "5ba32db088ec6ebf8eb6110b6172d8c9409b9f70"
38
+ "gitHead": "22bb69e504862fb909bc5d21d62ba4178aaefe3d"
39
39
  }
@@ -4,7 +4,7 @@
4
4
  import { getDevice } from 'rvhelper';
5
5
  import { logOutIcon } from './../icons/iconService';
6
6
  import { _, addNewMessages, setLocale, setupI18n } from './i18n';
7
- import { GeneralLogoutTranslations } from './translations';
7
+ import { TRANSLATIONS } from './translations';
8
8
 
9
9
  export let endpoint:string = '';
10
10
  export let session:string = '';
@@ -38,8 +38,8 @@
38
38
  });
39
39
  }
40
40
 
41
- Object.keys(GeneralLogoutTranslations).forEach((item:any) => {
42
- addNewMessages(item, GeneralLogoutTranslations[item]);
41
+ Object.keys(TRANSLATIONS).forEach((item:any) => {
42
+ addNewMessages(item, TRANSLATIONS[item]);
43
43
  });
44
44
 
45
45
  const logout = () => {
@@ -117,12 +117,12 @@
117
117
  <svg id="bbfaf345-72af-4296-bf4b-2fd41fc03d5d" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 150 150"><defs><style>.a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emfe-w-color-white, #FFFFFF);}</style></defs><path class="a88316b4-2478-4a69-b2eb-d32a5fb419dd" d="M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"/><path class="a88316b4-2478-4a69-b2eb-d32a5fb419dd" d="M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"/></svg>
118
118
  </span>
119
119
  {#if !isMobile}
120
- <span class="PlayerLogoutText" part="PlayerLogoutText">{$_('logout.logoutButton')}</span>
120
+ <span class="PlayerLogoutText" part="PlayerLogoutText">{$_('logoutButton')}</span>
121
121
  {/if}
122
122
  </p>
123
123
  {:else}
124
124
  <div class="GeneralLogout" part="GeneralLogout">
125
- <button on:click={() => logout()}><span>{$_('logout.logoutButton')}</span></button>
125
+ <button on:click={() => logout()}><span>{$_('logoutButton')}</span></button>
126
126
  </div>
127
127
  {/if}
128
128
  </div>
@@ -1,37 +1,23 @@
1
- export const GeneralLogoutTranslations = {
2
- en: {
3
- logout: {
4
- logoutButton: 'Logout',
5
- }
1
+ export const TRANSLATIONS = {
2
+ "en": {
3
+ "logoutButton": "Logout"
6
4
  },
7
- 'zh-hk': {
8
- logout: {
9
- logoutButton: '登出',
10
- }
5
+ "zh-hk": {
6
+ "logoutButton": "登出"
11
7
  },
12
- fr: {
13
- logout: {
14
- logoutButton: 'Déconnexion',
15
- }
8
+ "fr": {
9
+ "logoutButton": "Déconnexion"
16
10
  },
17
- tr: {
18
- logout: {
19
- logoutButton: 'Çıkış Yap',
20
- }
11
+ "tr": {
12
+ "logoutButton": "Çıkış Yap"
21
13
  },
22
- ro: {
23
- logout: {
24
- logoutButton: 'Iesire',
25
- }
14
+ "ro": {
15
+ "logoutButton": "Iesire"
26
16
  },
27
- es: {
28
- logout: {
29
- logoutButton: 'Cerrar sesión',
30
- }
17
+ "es": {
18
+ "logoutButton": "Cerrar sesión"
31
19
  },
32
- pt: {
33
- logout: {
34
- logoutButton: 'Sair',
35
- }
36
- },
37
- };
20
+ "pt": {
21
+ "logoutButton": "Sair"
22
+ }
23
+ }