Skip to content

Commit

Permalink
fix: resolve locale error in custom command.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alioth00 committed Feb 28, 2024
1 parent 9f057bd commit 315f133
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 315f133

Please sign in to comment.