[test] add test for i18n currentLocale

This commit is contained in:
LouisLam
2021-10-08 13:35:04 +08:00
parent 288e87bb3d
commit 11abc1f1e0
7 changed files with 33 additions and 14 deletions

View File

@@ -74,7 +74,7 @@ class TimeLogger {
this.startTime = dayjs().valueOf();
}
print(name) {
if (exports.isDev && process && process.env.TIMELOGGER === "1") {
if (exports.isDev && process.env.TIMELOGGER === "1") {
console.log(name + ": " + (dayjs().valueOf() - this.startTime) + "ms");
}
}