Skip to content

Commit 315f133

Browse files
committed
fix: resolve locale error in custom command.
1 parent 9f057bd commit 315f133

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.changeset/dirty-buttons-poke.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@alita/plugins': patch
3+
---
4+
5+
fix: resolve locale error in custom command.

packages/plugins/src/max/locale.ts

-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ import localePlugin from '@umijs/plugins/dist/locale';
33
import { logger } from '@umijs/utils';
44

55
export default (api: AlitaApi) => {
6-
if (!['dev', 'build', 'dev-config', 'preview', 'setup'].includes(api.name))
7-
return;
8-
96
api.onStart(() => {
107
logger.info('Using Locale Plugin');
118
});

0 commit comments

Comments
 (0)