@betorigami/game-ui-shared 8.2.0 → 8.3.0

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.
Files changed (39) hide show
  1. package/dist/components/shared/GameProviderWrapper.d.ts +3 -0
  2. package/dist/index.mjs +2128 -2055
  3. package/dist/locales/ar.js +4 -0
  4. package/dist/locales/de.js +4 -0
  5. package/dist/locales/en-soc.js +4 -0
  6. package/dist/locales/es.js +4 -0
  7. package/dist/locales/fi.js +4 -0
  8. package/dist/locales/fr.js +4 -0
  9. package/dist/locales/hi.js +4 -0
  10. package/dist/locales/id.js +4 -0
  11. package/dist/locales/ja.js +4 -0
  12. package/dist/locales/ko.js +4 -0
  13. package/dist/locales/pl.js +4 -0
  14. package/dist/locales/pt.js +4 -0
  15. package/dist/locales/ru.js +4 -0
  16. package/dist/locales/tr.js +4 -0
  17. package/dist/locales/vi.js +4 -0
  18. package/dist/locales/zh.js +4 -0
  19. package/dist/localization/generated/locale-codes.d.ts +13 -0
  20. package/dist/localization/localization.d.ts +6 -0
  21. package/dist/translations/ar.json.d.ts +1 -0
  22. package/dist/translations/de.json.d.ts +1 -0
  23. package/dist/translations/en-soc.json.d.ts +1 -0
  24. package/dist/translations/en.json.d.ts +1 -0
  25. package/dist/translations/es.json.d.ts +1 -0
  26. package/dist/translations/fi.json.d.ts +1 -0
  27. package/dist/translations/fr.json.d.ts +1 -0
  28. package/dist/translations/hi.json.d.ts +1 -0
  29. package/dist/translations/id.json.d.ts +1 -0
  30. package/dist/translations/index.d.ts +17 -0
  31. package/dist/translations/ja.json.d.ts +1 -0
  32. package/dist/translations/ko.json.d.ts +1 -0
  33. package/dist/translations/pl.json.d.ts +1 -0
  34. package/dist/translations/pt.json.d.ts +1 -0
  35. package/dist/translations/ru.json.d.ts +1 -0
  36. package/dist/translations/tr.json.d.ts +1 -0
  37. package/dist/translations/vi.json.d.ts +1 -0
  38. package/dist/translations/zh.json.d.ts +1 -0
  39. package/package.json +7 -3
@@ -0,0 +1,4 @@
1
+ const t = {};
2
+ export {
3
+ t as templates
4
+ };
@@ -0,0 +1,4 @@
1
+ const t = {};
2
+ export {
3
+ t as templates
4
+ };
@@ -0,0 +1,4 @@
1
+ const t = {};
2
+ export {
3
+ t as templates
4
+ };
@@ -0,0 +1,4 @@
1
+ const t = {};
2
+ export {
3
+ t as templates
4
+ };
@@ -0,0 +1,4 @@
1
+ const t = {};
2
+ export {
3
+ t as templates
4
+ };
@@ -0,0 +1,4 @@
1
+ const t = {};
2
+ export {
3
+ t as templates
4
+ };
@@ -0,0 +1,4 @@
1
+ const t = {};
2
+ export {
3
+ t as templates
4
+ };
@@ -0,0 +1,4 @@
1
+ const t = {};
2
+ export {
3
+ t as templates
4
+ };
@@ -0,0 +1,4 @@
1
+ const t = {};
2
+ export {
3
+ t as templates
4
+ };
@@ -0,0 +1,4 @@
1
+ const t = {};
2
+ export {
3
+ t as templates
4
+ };
@@ -0,0 +1,4 @@
1
+ const t = {};
2
+ export {
3
+ t as templates
4
+ };
@@ -0,0 +1,4 @@
1
+ const t = {};
2
+ export {
3
+ t as templates
4
+ };
@@ -0,0 +1,4 @@
1
+ const t = {};
2
+ export {
3
+ t as templates
4
+ };
@@ -0,0 +1,4 @@
1
+ const t = {};
2
+ export {
3
+ t as templates
4
+ };
@@ -0,0 +1,4 @@
1
+ const t = {};
2
+ export {
3
+ t as templates
4
+ };
@@ -0,0 +1,4 @@
1
+ const t = {};
2
+ export {
3
+ t as templates
4
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The locale code that templates in this source code are written in.
3
+ */
4
+ export declare const sourceLocale = "en";
5
+ /**
6
+ * The other locale codes that this application is localized into. Sorted
7
+ * lexicographically.
8
+ */
9
+ export declare const targetLocales: readonly ["ar", "de", "en-soc", "es", "fi", "fr", "hi", "id", "ja", "ko", "pl", "pt", "ru", "tr", "vi", "zh"];
10
+ /**
11
+ * All valid project locale codes. Sorted lexicographically.
12
+ */
13
+ export declare const allLocales: readonly ["ar", "de", "en", "en-soc", "es", "fi", "fr", "hi", "id", "ja", "ko", "pl", "pt", "ru", "tr", "vi", "zh"];
@@ -0,0 +1,6 @@
1
+ export declare const getLocale: (() => string) & {
2
+ _LIT_LOCALIZE_GET_LOCALE_?: never;
3
+ }, setLocale: ((newLocale: string) => Promise<void>) & {
4
+ _LIT_LOCALIZE_SET_LOCALE_?: never;
5
+ };
6
+ export declare const setLanguage: (language: string) => Promise<void>;
@@ -76,6 +76,7 @@ declare const _default: {
76
76
  "provablyFair": "عادل يمكن إثباته",
77
77
  "risk": "مخاطرة",
78
78
  "roundId": "معرّف الجولة",
79
+ "rows": "الصفوف",
79
80
  "saveChanges": "حفظ التغييرات",
80
81
  "shareReplay": "مشاركة الإعادة",
81
82
  "siteInformation": "معلومات اللعبة",
@@ -76,6 +76,7 @@ declare const _default: {
76
76
  "provablyFair": "Nachweislich fair",
77
77
  "risk": "Risiko",
78
78
  "roundId": "Runden-ID",
79
+ "rows": "Reihen",
79
80
  "saveChanges": "Änderungen speichern",
80
81
  "shareReplay": "Replay teilen",
81
82
  "siteInformation": "Spielinformationen",
@@ -76,6 +76,7 @@ declare const _default: {
76
76
  "provablyFair": "Provably Fair",
77
77
  "risk": "Risk",
78
78
  "roundId": "Round ID",
79
+ "rows": "Rows",
79
80
  "saveChanges": "Save Changes",
80
81
  "shareReplay": "Share Replay",
81
82
  "siteInformation": "Game Information",
@@ -77,6 +77,7 @@ declare const _default: {
77
77
  "provablyFair": "Provably Fair",
78
78
  "risk": "Risk",
79
79
  "roundId": "Round ID",
80
+ "rows": "Rows",
80
81
  "saveChanges": "Save Changes",
81
82
  "shareReplay": "Share Replay",
82
83
  "siteInformation": "Game Information",
@@ -76,6 +76,7 @@ declare const _default: {
76
76
  "provablyFair": "Demostrablemente Justo",
77
77
  "risk": "Riesgo",
78
78
  "roundId": "ID de ronda",
79
+ "rows": "Filas",
79
80
  "saveChanges": "Guardar cambios",
80
81
  "shareReplay": "Compartir repetición",
81
82
  "siteInformation": "Información del juego",
@@ -76,6 +76,7 @@ declare const _default: {
76
76
  "provablyFair": "Todistettavasti reilu",
77
77
  "risk": "Riski",
78
78
  "roundId": "Kierroksen ID",
79
+ "rows": "Rivit",
79
80
  "saveChanges": "Tallenna muutokset",
80
81
  "shareReplay": "Jaa uudelleenpeluu",
81
82
  "siteInformation": "Pelitiedot",
@@ -76,6 +76,7 @@ declare const _default: {
76
76
  "provablyFair": "Prouvé équitable",
77
77
  "risk": "Risque",
78
78
  "roundId": "ID de round",
79
+ "rows": "Rangées",
79
80
  "saveChanges": "Enregistrer les modifications",
80
81
  "shareReplay": "Partager la rediffusion",
81
82
  "siteInformation": "Informations sur le jeu",
@@ -76,6 +76,7 @@ declare const _default: {
76
76
  "provablyFair": "सिद्ध रूप से निष्पक्ष",
77
77
  "risk": "जोखिम",
78
78
  "roundId": "राउंड ID",
79
+ "rows": "पंक्तियाँ",
79
80
  "saveChanges": "परिवर्तन सहेजें",
80
81
  "shareReplay": "रीप्ले साझा करें",
81
82
  "siteInformation": "खेल जानकारी",
@@ -76,6 +76,7 @@ declare const _default: {
76
76
  "provablyFair": "Terbukti Adil",
77
77
  "risk": "Risiko",
78
78
  "roundId": "ID Putaran",
79
+ "rows": "Baris",
79
80
  "saveChanges": "Simpan Perubahan",
80
81
  "shareReplay": "Bagikan Ulang",
81
82
  "siteInformation": "Informasi Permainan",
@@ -87,6 +87,7 @@ export declare const translations: {
87
87
  provablyFair: string;
88
88
  risk: string;
89
89
  roundId: string;
90
+ rows: string;
90
91
  saveChanges: string;
91
92
  shareReplay: string;
92
93
  siteInformation: string;
@@ -492,6 +493,7 @@ export declare const translations: {
492
493
  provablyFair: string;
493
494
  risk: string;
494
495
  roundId: string;
496
+ rows: string;
495
497
  saveChanges: string;
496
498
  shareReplay: string;
497
499
  siteInformation: string;
@@ -898,6 +900,7 @@ export declare const translations: {
898
900
  provablyFair: string;
899
901
  risk: string;
900
902
  roundId: string;
903
+ rows: string;
901
904
  saveChanges: string;
902
905
  shareReplay: string;
903
906
  siteInformation: string;
@@ -1305,6 +1308,7 @@ export declare const translations: {
1305
1308
  provablyFair: string;
1306
1309
  risk: string;
1307
1310
  roundId: string;
1311
+ rows: string;
1308
1312
  saveChanges: string;
1309
1313
  shareReplay: string;
1310
1314
  siteInformation: string;
@@ -1710,6 +1714,7 @@ export declare const translations: {
1710
1714
  provablyFair: string;
1711
1715
  risk: string;
1712
1716
  roundId: string;
1717
+ rows: string;
1713
1718
  saveChanges: string;
1714
1719
  shareReplay: string;
1715
1720
  siteInformation: string;
@@ -2115,6 +2120,7 @@ export declare const translations: {
2115
2120
  provablyFair: string;
2116
2121
  risk: string;
2117
2122
  roundId: string;
2123
+ rows: string;
2118
2124
  saveChanges: string;
2119
2125
  shareReplay: string;
2120
2126
  siteInformation: string;
@@ -2520,6 +2526,7 @@ export declare const translations: {
2520
2526
  provablyFair: string;
2521
2527
  risk: string;
2522
2528
  roundId: string;
2529
+ rows: string;
2523
2530
  saveChanges: string;
2524
2531
  shareReplay: string;
2525
2532
  siteInformation: string;
@@ -2925,6 +2932,7 @@ export declare const translations: {
2925
2932
  provablyFair: string;
2926
2933
  risk: string;
2927
2934
  roundId: string;
2935
+ rows: string;
2928
2936
  saveChanges: string;
2929
2937
  shareReplay: string;
2930
2938
  siteInformation: string;
@@ -3330,6 +3338,7 @@ export declare const translations: {
3330
3338
  provablyFair: string;
3331
3339
  risk: string;
3332
3340
  roundId: string;
3341
+ rows: string;
3333
3342
  saveChanges: string;
3334
3343
  shareReplay: string;
3335
3344
  siteInformation: string;
@@ -3735,6 +3744,7 @@ export declare const translations: {
3735
3744
  provablyFair: string;
3736
3745
  risk: string;
3737
3746
  roundId: string;
3747
+ rows: string;
3738
3748
  saveChanges: string;
3739
3749
  shareReplay: string;
3740
3750
  siteInformation: string;
@@ -4140,6 +4150,7 @@ export declare const translations: {
4140
4150
  provablyFair: string;
4141
4151
  risk: string;
4142
4152
  roundId: string;
4153
+ rows: string;
4143
4154
  saveChanges: string;
4144
4155
  shareReplay: string;
4145
4156
  siteInformation: string;
@@ -4545,6 +4556,7 @@ export declare const translations: {
4545
4556
  provablyFair: string;
4546
4557
  risk: string;
4547
4558
  roundId: string;
4559
+ rows: string;
4548
4560
  saveChanges: string;
4549
4561
  shareReplay: string;
4550
4562
  siteInformation: string;
@@ -4950,6 +4962,7 @@ export declare const translations: {
4950
4962
  provablyFair: string;
4951
4963
  risk: string;
4952
4964
  roundId: string;
4965
+ rows: string;
4953
4966
  saveChanges: string;
4954
4967
  shareReplay: string;
4955
4968
  siteInformation: string;
@@ -5355,6 +5368,7 @@ export declare const translations: {
5355
5368
  provablyFair: string;
5356
5369
  risk: string;
5357
5370
  roundId: string;
5371
+ rows: string;
5358
5372
  saveChanges: string;
5359
5373
  shareReplay: string;
5360
5374
  siteInformation: string;
@@ -5760,6 +5774,7 @@ export declare const translations: {
5760
5774
  provablyFair: string;
5761
5775
  risk: string;
5762
5776
  roundId: string;
5777
+ rows: string;
5763
5778
  saveChanges: string;
5764
5779
  shareReplay: string;
5765
5780
  siteInformation: string;
@@ -6165,6 +6180,7 @@ export declare const translations: {
6165
6180
  provablyFair: string;
6166
6181
  risk: string;
6167
6182
  roundId: string;
6183
+ rows: string;
6168
6184
  saveChanges: string;
6169
6185
  shareReplay: string;
6170
6186
  siteInformation: string;
@@ -6570,6 +6586,7 @@ export declare const translations: {
6570
6586
  provablyFair: string;
6571
6587
  risk: string;
6572
6588
  roundId: string;
6589
+ rows: string;
6573
6590
  saveChanges: string;
6574
6591
  shareReplay: string;
6575
6592
  siteInformation: string;
@@ -76,6 +76,7 @@ declare const _default: {
76
76
  "provablyFair": "証明可能な公正",
77
77
  "risk": "リスク",
78
78
  "roundId": "ラウンドID",
79
+ "rows": "行数",
79
80
  "saveChanges": "変更を保存",
80
81
  "shareReplay": "リプレイを共有",
81
82
  "siteInformation": "ゲーム情報",
@@ -76,6 +76,7 @@ declare const _default: {
76
76
  "provablyFair": "입증 가능하게 공정",
77
77
  "risk": "위험",
78
78
  "roundId": "라운드 ID",
79
+ "rows": "줄 수",
79
80
  "saveChanges": "변경사항 저장",
80
81
  "shareReplay": "리플레이 공유",
81
82
  "siteInformation": "게임 정보",
@@ -76,6 +76,7 @@ declare const _default: {
76
76
  "provablyFair": "Niezaprzeczalnie uczciwe",
77
77
  "risk": "Ryzyko",
78
78
  "roundId": "ID Rundy",
79
+ "rows": "Rzędy",
79
80
  "saveChanges": "Zapisz zmiany",
80
81
  "shareReplay": "Udostępnij powtórkę",
81
82
  "siteInformation": "Informacje o grze",
@@ -76,6 +76,7 @@ declare const _default: {
76
76
  "provablyFair": "Comprovadamente Justo",
77
77
  "risk": "Risco",
78
78
  "roundId": "ID da Rodada",
79
+ "rows": "Linhas",
79
80
  "saveChanges": "Salvar alterações",
80
81
  "shareReplay": "Compartilhar Replay",
81
82
  "siteInformation": "Informações do Jogo",
@@ -76,6 +76,7 @@ declare const _default: {
76
76
  "provablyFair": "Доказуемо честно",
77
77
  "risk": "Риск",
78
78
  "roundId": "ID раунда",
79
+ "rows": "Ряды",
79
80
  "saveChanges": "Сохранить изменения",
80
81
  "shareReplay": "Поделиться повтором",
81
82
  "siteInformation": "Информация об игре",
@@ -76,6 +76,7 @@ declare const _default: {
76
76
  "provablyFair": "Kanıtlanabilir Adil",
77
77
  "risk": "Risk",
78
78
  "roundId": "Tur Roundu ID",
79
+ "rows": "Sıra Sayısı",
79
80
  "saveChanges": "Değişiklikleri Kaydet",
80
81
  "shareReplay": "Yeniden Oynatımı Paylaş",
81
82
  "siteInformation": "Oyun Bilgileri",
@@ -76,6 +76,7 @@ declare const _default: {
76
76
  "provablyFair": "Công bằng có thể kiểm chứng",
77
77
  "risk": "Rủi ro",
78
78
  "roundId": "ID Vòng",
79
+ "rows": "Số hàng",
79
80
  "saveChanges": "Lưu thay đổi",
80
81
  "shareReplay": "Chia sẻ phát lại",
81
82
  "siteInformation": "Thông tin trò chơi",
@@ -76,6 +76,7 @@ declare const _default: {
76
76
  "provablyFair": "可验证公平",
77
77
  "risk": "风险",
78
78
  "roundId": "回合ID",
79
+ "rows": "行数",
79
80
  "saveChanges": "保存更改",
80
81
  "shareReplay": "分享回放",
81
82
  "siteInformation": "游戏信息",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betorigami/game-ui-shared",
3
- "version": "8.2.0",
3
+ "version": "8.3.0",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "The Lit components, controllers, translations and wire types shared by every Origami game UI",
@@ -21,6 +21,7 @@
21
21
  },
22
22
  "peerDependencies": {
23
23
  "@lit/context": "^1.1.5",
24
+ "@lit/localize": "^0.12.2",
24
25
  "big.js": "^7.0.1",
25
26
  "lit": "^3.3.0"
26
27
  },
@@ -28,12 +29,14 @@
28
29
  "@betorigami/guard": "^2.0.7",
29
30
  "web-haptics": "^0.0.6",
30
31
  "zod": "4.3.6",
31
- "@betorigami/game-calculations": "13.0.0",
32
+ "@betorigami/game-calculations": "14.0.0",
32
33
  "@betorigami/money": "0.5.1"
33
34
  },
34
35
  "devDependencies": {
35
36
  "@hey-api/openapi-ts": "0.99.0",
36
37
  "@lit/context": "^1.1.5",
38
+ "@lit/localize": "0.12.2",
39
+ "@lit/localize-tools": "0.8.2",
37
40
  "@types/big.js": "^6.2.2",
38
41
  "@types/node": "^26.4.1",
39
42
  "big.js": "^7.0.1",
@@ -45,7 +48,8 @@
45
48
  },
46
49
  "scripts": {
47
50
  "tsc": "tsc",
48
- "build": "vite build",
51
+ "build": "pnpm run build:locales && vite build",
52
+ "build:locales": "node scripts/build-locales.mjs",
49
53
  "watch": "vite build --watch",
50
54
  "test": "vitest run",
51
55
  "test:watch": "vitest",