mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-12-05 07:43:49 +01:00
Compare commits
2
Commits
0552ac790e
...
158141fdc7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
158141fdc7 | ||
|
|
1d319551e7 |
No files matched your search
@@ -1,7 +1,5 @@
|
|||||||
import { assertSecret } from "@blitzkit/core";
|
import { assertSecret } from "@blitzkit/core";
|
||||||
|
|
||||||
const dev = assertSecret(import.meta.env.DEV);
|
|
||||||
|
|
||||||
export function literals(
|
export function literals(
|
||||||
string: string,
|
string: string,
|
||||||
literals?: Record<string, string | number | undefined>
|
literals?: Record<string, string | number | undefined>
|
||||||
@@ -9,7 +7,7 @@ export function literals(
|
|||||||
for (const key in literals) {
|
for (const key in literals) {
|
||||||
const mutated = string.replaceAll(`{${key}}`, `${literals[key]}`);
|
const mutated = string.replaceAll(`{${key}}`, `${literals[key]}`);
|
||||||
|
|
||||||
if (dev && mutated === string) {
|
if (import.meta.env.DEV && mutated === string) {
|
||||||
console.warn(`Could not find literal {${key}} in string "${string}"`);
|
console.warn(`Could not find literal {${key}} in string "${string}"`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ const methods = [
|
|||||||
camouflageIcons,
|
camouflageIcons,
|
||||||
boosterIcons,
|
boosterIcons,
|
||||||
tankIcons,
|
tankIcons,
|
||||||
blitzkitTankIcons,
|
// blitzkitTankIcons,
|
||||||
// popularTanks,
|
// popularTanks,
|
||||||
glossary,
|
glossary,
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in new issue
Block a user