Skip to content

Commit

Permalink
fix: resolve locale error in custom command.
Browse files Browse the repository at this point in the history
fix: resolve locale error in custom command.
  • Loading branch information
xiaohuoni authored Mar 1, 2024
2 parents 9f057bd + 315f133 commit 840f537
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/dirty-buttons-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@alita/plugins': patch
---

fix: resolve locale error in custom command.
3 changes: 0 additions & 3 deletions packages/plugins/src/max/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ import localePlugin from '@umijs/plugins/dist/locale';
import { logger } from '@umijs/utils';

export default (api: AlitaApi) => {
if (!['dev', 'build', 'dev-config', 'preview', 'setup'].includes(api.name))
return;

api.onStart(() => {
logger.info('Using Locale Plugin');
});
Expand Down

0 comments on commit 840f537

Please sign in to comment.