@everymatrix/player-account-controller-nd 1.37.5

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.
@@ -0,0 +1,5 @@
1
+ export type OmWidgets = {
2
+ init: Function;
3
+ updateAuthMethod: Function;
4
+ getWebWidgetsConfig: Function;
5
+ };
package/src/i18n.js ADDED
@@ -0,0 +1,27 @@
1
+ import {
2
+ dictionary,
3
+ locale,
4
+ addMessages,
5
+ _
6
+ } from 'svelte-i18n';
7
+
8
+ function setupI18n({ withLocale: _locale, translations }) {
9
+ locale.subscribe((data) => {
10
+ if (data == null) {
11
+ dictionary.set(translations);
12
+ locale.set(_locale);
13
+ }
14
+ }); // maybe we will need this to make sure that the i18n is set up only once
15
+ /*dictionary.set(translations);
16
+ locale.set(_locale);*/
17
+ }
18
+
19
+ function addNewMessages(lang, dict) {
20
+ addMessages(lang, dict);
21
+ }
22
+
23
+ function setLocale(_locale) {
24
+ locale.set(_locale);
25
+ }
26
+
27
+ export { _, setupI18n, addNewMessages, setLocale };
package/src/index.ts ADDED
@@ -0,0 +1,4 @@
1
+ import PlayerAccountController from './PlayerAccountController.svelte';
2
+
3
+ !customElements.get('player-account-controller-nd') && customElements.define('player-account-controller-nd', PlayerAccountController);
4
+ export default PlayerAccountController;
@@ -0,0 +1,102 @@
1
+ export const TRANSLATIONS = {
2
+ "en": {
3
+ "profileUpdateSuccess": "Profile updated!",
4
+ "timeoutSuccess": "Timeout active",
5
+ "selfExclusionSuccess": "Self exclusion active",
6
+ "accountClosureSuccess": "Account closed",
7
+ "limitsUpdateSuccess": "Limits updated",
8
+ "limitsDeleteSuccess": "Limits deleted",
9
+ "passwordChangedSuccess": "Password changed successfully",
10
+ "realityCheckSuccess": "Reality check options saved"
11
+ },
12
+ "zh-hk": {
13
+ "profileUpdateSuccess": "資料更新!",
14
+ "timeoutSuccess": "超時有效",
15
+ "selfExclusionSuccess": "自我排斥活躍",
16
+ "accountClosureSuccess": "賬戶關閉",
17
+ "limitsUpdateSuccess": "限制已更新",
18
+ "limitsDeleteSuccess": "已刪除限制",
19
+ "passwordChangedSuccess": "密碼修改成功",
20
+ "realityCheckSuccess": "現實檢查選項已保存"
21
+ },
22
+ "fr": {
23
+ "profileUpdateSuccess": "Mise à jour du profil!",
24
+ "timeoutSuccess": "Délai d'attente actif",
25
+ "selfExclusionSuccess": "Auto exclusion active",
26
+ "accountClosureSuccess": "Compte fermé",
27
+ "limitsUpdateSuccess": "Limites des mises à jour",
28
+ "limitsDeleteSuccess": "Limites supprimées",
29
+ "passwordChangedSuccess": "Le mot de passe a été modifié avec succés",
30
+ "realityCheckSuccess": "Options de contrôle de la réalité sauvegardées"
31
+ },
32
+ "ro": {
33
+ "profileUpdateSuccess": "Profil updatat!",
34
+ "timeoutSuccess": "Timeout activ",
35
+ "selfExclusionSuccess": "Auto-excludere activa",
36
+ "accountClosureSuccess": "Cont inchis",
37
+ "limitsUpdateSuccess": "Limite updatate",
38
+ "limitsDeleteSuccess": "Limite sterse",
39
+ "passwordChangedSuccess": "Parola schimbata cu success",
40
+ "realityCheckSuccess": "Optiunile de verificare de timp salvate"
41
+ },
42
+ "es": {
43
+ "profileUpdateSuccess": "Perfil actualizado!",
44
+ "timeoutSuccess": "Pausa activa",
45
+ "selfExclusionSuccess": "Auto Exclusión activa.",
46
+ "accountClosureSuccess": "Cuenta cerrada",
47
+ "limitsUpdateSuccess": "Limites actualizados",
48
+ "limitsDeleteSuccess": "Limites delegados",
49
+ "passwordChangedSuccess": "Cambio de Contraseña satisfactorio",
50
+ "realityCheckSuccess": "Opciones de verificación de realidad guardadas"
51
+ },
52
+ "pt": {
53
+ "profileUpdateSuccess": "Perfil atualizado!",
54
+ "timeoutSuccess": "Tempo Limite ativo",
55
+ "selfExclusionSuccess": "Autoexclusão ativa",
56
+ "accountClosureSuccess": "Conta encerrada",
57
+ "limitsUpdateSuccess": "Limites atualizados",
58
+ "limitsDeleteSuccess": "Limites excluídos",
59
+ "passwordChangedSuccess": "Senha alterada com sucesso",
60
+ "realityCheckSuccess": "Opções de verificação de realidade salvas"
61
+ },
62
+ "hr": {
63
+ "profileUpdateSuccess": "Profil ažuriran!",
64
+ "timeoutSuccess": "Pauza je aktivna",
65
+ "selfExclusionSuccess": "Aktivno samoisključivanje",
66
+ "accountClosureSuccess": "Račun zatvoren",
67
+ "limitsUpdateSuccess": "Ograničenja ažurirana",
68
+ "limitsDeleteSuccess": "Ograničenja izbrisana",
69
+ "passwordChangedSuccess": "Lozinka je uspješno promijenjena",
70
+ "realityCheckSuccess": "Opcije provjere stvarnosti spremljene"
71
+ },
72
+ "pt-br": {
73
+ "profileUpdateSuccess": "Perfil aceito!",
74
+ "timeoutSuccess": "Pausa ativa",
75
+ "selfExclusionSuccess": "Autoexclusão ativa",
76
+ "accountClosureSuccess": "Conta encerrada",
77
+ "limitsUpdateSuccess": "Limites atualizados",
78
+ "limitsDeleteSuccess": "Limites apagados",
79
+ "PasswordChangedSuccess": "Senha alterada com sucesso",
80
+ "realityCheckSuccess": "Opções de verificação da realidade salvas"
81
+ },
82
+ "es-mx": {
83
+ "profileUpdateSuccess": "Perfil aceptado!",
84
+ "timeoutSuccess": "Pausa activa",
85
+ "selfExclusionSuccess": "Auto-exclusión activa",
86
+ "accountClosureSuccess": "Cuenta cerrada",
87
+ "limitsUpdateSuccess": "Límites actualizados",
88
+ "limitsDeleteSuccess": "Límites borrados",
89
+ "PasswordChangedSuccess": "Password cambiada con éxito",
90
+ "realityCheckSuccess": "Opciones de control de realidad guardadas"
91
+ },
92
+ "tr": {
93
+ "profileUpdateSuccess": "Profil güncellendi!",
94
+ "timeoutSuccess": "Zaman aşımı etkin",
95
+ "selfExclusionSuccess": "Kendini dışlama etkin",
96
+ "accountClosureSuccess": "Hesap kapatıldı",
97
+ "limitsUpdateSuccess": "Sınırlar güncellendi",
98
+ "limitsDeleteSuccess": "Sınırlar silindi",
99
+ "passwordChangedSuccess": "parola başarıyla değiştirildi",
100
+ "realityCheckSuccess": "Gerçeklik kontrolü seçenekleri kaydedildi"
101
+ }
102
+ }
@@ -0,0 +1,13 @@
1
+ import { html } from 'lit-element';
2
+
3
+ import PlayerAccountController from '../src/PlayerAccountController';
4
+
5
+ // This default export determines where your story goes in the story list
6
+ export default {
7
+ title: 'PlayerAccountController',
8
+ };
9
+
10
+ // 👇 We create a “template” of how args map to rendering
11
+ const PlayerAccountController = ({ aProperty }) => html`<player-account-controller></player-account-controller>`;
12
+
13
+ export const FirstStory = PlayerAccountController.bind({});
package/tsconfig.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "extends": "@tsconfig/svelte/tsconfig.json",
3
+
4
+ "include": ["src/**/*"],
5
+ "exclude": ["node_modules/*", "__sapper__/*", "public/*"]
6
+ }