First build

This commit is contained in:
Lucid Kobold
2025-02-19 11:11:47 -05:00
43 changed files with 4061 additions and 7177 deletions

View File

@@ -1,15 +1,15 @@
import type { Context } from '#root/bot/context.js'
import path from 'node:path'
import process from 'node:process'
import { I18n } from '@grammyjs/i18n'
import type { Context } from "#root/bot/context.js";
import path from "node:path";
import process from "node:process";
import { I18n } from "@grammyjs/i18n";
export const i18n = new I18n<Context>({
defaultLocale: 'en',
directory: path.resolve(process.cwd(), 'locales'),
defaultLocale: "en",
directory: path.resolve(process.cwd(), "locales"),
useSession: true,
fluentBundleOptions: {
useIsolating: false,
},
})
useIsolating: false
}
});
export const isMultipleLocales = i18n.locales.length > 1
export const isMultipleLocales = i18n.locales.length > 1;