Skip to content

Commit d178b97

Browse files
authored
Merge pull request #276 from underctrl-io/fix-build
fix: build issues
2 parents 017a31c + 01d0a4e commit d178b97

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/ai/src/configure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const AIConfig: Required<ConfigureAI> = {
6767
disableBuiltInTools: false,
6868
messageFilter: async (commandkit, message) => {
6969
const prefixOrPrefixes =
70-
await commandkit.config.getMessageCommandPrefix(message);
70+
await commandkit.appConfig.getMessageCommandPrefix(message);
7171

7272
const prefixes = Array.isArray(prefixOrPrefixes)
7373
? prefixOrPrefixes

packages/i18n/src/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function locale(locale?: Locale): CommandLocalizationContext {
3030
const commandkit = context.commandkit;
3131

3232
const i18n = useI18n(commandkit);
33-
const detectedLocale: Locale = locale || commandkit.config.defaultLocale;
33+
const detectedLocale: Locale = locale || commandkit.appConfig.defaultLocale;
3434

3535
return {
3636
t: i18n.getFixedT(detectedLocale, `${context.event}.event`),

packages/i18n/src/i18n.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export class I18nPlugin extends RuntimePlugin<LocalizationPluginOptions> {
197197
}
198198

199199
// Set the default locale for command execution
200-
ctx.commandkit.config.defaultLocale = (this.i18n.language ||
200+
ctx.commandkit.appConfig.defaultLocale = (this.i18n.language ||
201201
'en-US') as Locale;
202202

203203
Logger.info('I18nPlugin has been activated');

0 commit comments

Comments
 (0)