Skip to content

Commit

Permalink
fixed bot locale ???
Browse files Browse the repository at this point in the history
  • Loading branch information
GhomKrosmonaute committed Jun 26, 2024
1 parent a379d05 commit 77c8a0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ export async function checkUpdates() {
}
}

const locale = env.BOT_LOCALE
const locale = env?.BOT_LOCALE ?? "en"

import(`dayjs/locale/${locale ?? "en"}.js`)
.then(() => dayjs.locale(locale ?? "en"))
import(`dayjs/locale/${locale}.js`)
.then(() => dayjs.locale(locale))
.catch(() =>
logger.warn(
`The ${chalk.bold(
Expand Down

0 comments on commit 77c8a0e

Please sign in to comment.