mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-26 00:36:25 +00:00
make i18n debugging an optional env setting
this also reduces output noise in tests
This commit is contained in:
parent
15671a6922
commit
782718c293
3
.env
3
.env
@ -1,3 +1,4 @@
|
||||
VITE_BYPASS_LOGIN=0
|
||||
VITE_BYPASS_TUTORIAL=0
|
||||
VITE_SERVER_URL=http://localhost:8001
|
||||
VITE_SERVER_URL=http://localhost:8001
|
||||
VITE_I18N_DEBUG=0
|
@ -1,3 +1,4 @@
|
||||
VITE_BYPASS_LOGIN=1
|
||||
VITE_BYPASS_TUTORIAL=0
|
||||
VITE_SERVER_URL=http://localhost:8001
|
||||
VITE_SERVER_URL=http://localhost:8001
|
||||
VITE_I18N_DEBUG=1
|
@ -100,7 +100,7 @@ export async function initI18n(): Promise<void> {
|
||||
detection: {
|
||||
lookupLocalStorage: "prLang"
|
||||
},
|
||||
debug: true,
|
||||
debug: Number(import.meta.env.VITE_I18N_DEBUG) === 1,
|
||||
interpolation: {
|
||||
escapeValue: false,
|
||||
},
|
||||
|
1
src/vite.env.d.ts
vendored
1
src/vite.env.d.ts
vendored
@ -5,6 +5,7 @@ interface ImportMetaEnv {
|
||||
readonly VITE_BYPASS_TUTORIAL?: string;
|
||||
readonly VITE_API_BASE_URL?: string;
|
||||
readonly VITE_SERVER_URL?: string;
|
||||
readonly VITE_I18N_DEBUG?: string;
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
|
Loading…
Reference in New Issue
Block a user