mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 16:26:25 +00:00
Merge pull request #2692 from flx-sta/feature/i18n-debugging
[Feature][ENV] make i18n debugging an optional env setting
This commit is contained in:
commit
fc4b97d7ca
1
.env
1
.env
@ -3,3 +3,4 @@ VITE_BYPASS_TUTORIAL=0
|
||||
VITE_SERVER_URL=http://localhost:8001
|
||||
VITE_DISCORD_CLIENT_ID=1248062921129459756
|
||||
VITE_GOOGLE_CLIENT_ID=955345393540-2k6lfftf0fdnb0krqmpthjnqavfvvf73.apps.googleusercontent.com
|
||||
VITE_I18N_DEBUG=0
|
||||
|
@ -3,3 +3,4 @@ VITE_BYPASS_TUTORIAL=0
|
||||
VITE_SERVER_URL=https://api.beta.pokerogue.net
|
||||
VITE_DISCORD_CLIENT_ID=1248062921129459756
|
||||
VITE_GOOGLE_CLIENT_ID=955345393540-2k6lfftf0fdnb0krqmpthjnqavfvvf73.apps.googleusercontent.com
|
||||
VITE_I18N_DEBUG=1
|
||||
|
@ -3,3 +3,4 @@ VITE_BYPASS_TUTORIAL=0
|
||||
VITE_SERVER_URL=http://localhost:8001
|
||||
VITE_DISCORD_CLIENT_ID=1234567890
|
||||
VITE_GOOGLE_CLIENT_ID=1234567890
|
||||
VITE_I18N_DEBUG=1
|
||||
|
@ -3,3 +3,4 @@ VITE_BYPASS_TUTORIAL=0
|
||||
VITE_SERVER_URL=https://api.pokerogue.net
|
||||
VITE_DISCORD_CLIENT_ID=1248062921129459756
|
||||
VITE_GOOGLE_CLIENT_ID=955345393540-2k6lfftf0fdnb0krqmpthjnqavfvvf73.apps.googleusercontent.com
|
||||
VITE_I18N_DEBUG=0
|
@ -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
@ -7,6 +7,7 @@ interface ImportMetaEnv {
|
||||
readonly VITE_SERVER_URL?: string;
|
||||
readonly VITE_DISCORD_CLIENT_ID?: string;
|
||||
readonly VITE_GOOGLE_CLIENT_ID?: string;
|
||||
readonly VITE_I18N_DEBUG?: string;
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
|
Loading…
Reference in New Issue
Block a user