Skip to content

fix: build issues #276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/ai/src/configure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const AIConfig: Required<ConfigureAI> = {
disableBuiltInTools: false,
messageFilter: async (commandkit, message) => {
const prefixOrPrefixes =
await commandkit.config.getMessageCommandPrefix(message);
await commandkit.appConfig.getMessageCommandPrefix(message);

const prefixes = Array.isArray(prefixOrPrefixes)
? prefixOrPrefixes
Expand Down
2 changes: 1 addition & 1 deletion packages/i18n/src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function locale(locale?: Locale): CommandLocalizationContext {
const commandkit = context.commandkit;

const i18n = useI18n(commandkit);
const detectedLocale: Locale = locale || commandkit.config.defaultLocale;
const detectedLocale: Locale = locale || commandkit.appConfig.defaultLocale;

return {
t: i18n.getFixedT(detectedLocale, `${context.event}.event`),
Expand Down
2 changes: 1 addition & 1 deletion packages/i18n/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export class I18nPlugin extends RuntimePlugin<LocalizationPluginOptions> {
}

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

Logger.info('I18nPlugin has been activated');
Expand Down