@gameap/debug 0.2.16 → 0.2.17
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/index.html +3 -10
- package/package.json +8 -8
- package/vite.config.ts +0 -3
package/index.html
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
// Initialize language detection
|
|
31
31
|
(function() {
|
|
32
32
|
function detectLanguage() {
|
|
33
|
+
// Check localStorage first for user preference
|
|
33
34
|
try {
|
|
34
35
|
const settings = localStorage.getItem('gameap_ui_settings');
|
|
35
36
|
if (settings) {
|
|
@@ -47,16 +48,8 @@
|
|
|
47
48
|
console.error('Failed to load language from localStorage:', e);
|
|
48
49
|
}
|
|
49
50
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return browserLang.split('-')[0].toLowerCase();
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
const htmlLang = document.documentElement.lang;
|
|
56
|
-
if (htmlLang) {
|
|
57
|
-
return htmlLang;
|
|
58
|
-
}
|
|
59
|
-
|
|
51
|
+
// In debug mode, default to 'en' instead of browser language
|
|
52
|
+
// This prevents unexpected language changes based on system settings
|
|
60
53
|
return 'en';
|
|
61
54
|
}
|
|
62
55
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gameap/debug",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Debug harness for GameAP plugin development with mock API",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite",
|
|
8
|
+
"build": "vue-tsc && vite build",
|
|
9
|
+
"preview": "vite preview",
|
|
10
|
+
"msw:init": "npx msw init ../../public --save",
|
|
11
|
+
"sync:translations": "cp ../../../internal/i18n/en.json src/mocks/translations-en.json && cp ../../../internal/i18n/ru.json src/mocks/translations-ru.json"
|
|
12
|
+
},
|
|
6
13
|
"bin": {
|
|
7
14
|
"gameap-debug": "./bin/cli.js"
|
|
8
15
|
},
|
|
@@ -17,13 +24,6 @@
|
|
|
17
24
|
"postcss.config.cjs",
|
|
18
25
|
"empty-plugin"
|
|
19
26
|
],
|
|
20
|
-
"scripts": {
|
|
21
|
-
"dev": "vite",
|
|
22
|
-
"build": "vue-tsc && vite build",
|
|
23
|
-
"preview": "vite preview",
|
|
24
|
-
"msw:init": "npx msw init ../../public --save",
|
|
25
|
-
"sync:translations": "cp ../../../internal/i18n/en.json src/mocks/translations-en.json && cp ../../../internal/i18n/ru.json src/mocks/translations-ru.json"
|
|
26
|
-
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@gameap/plugin-sdk": "^0.2.0",
|
|
29
29
|
"@gameap/frontend": "4.1.0-dev8",
|