Skip to content

Commit

Permalink
fix: load i18n source without cache
Browse files Browse the repository at this point in the history
close #1480
  • Loading branch information
JounQin authored Oct 15, 2024
1 parent bc68277 commit 7a75a69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/node/runtimeModule/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const DEFAULT_I18N_SOURCE = join(process.cwd(), 'i18n.json');
export function getI18nData(docConfig: UserConfig) {
const { i18nSourcePath = DEFAULT_I18N_SOURCE } = docConfig;
try {
delete require.cache[i18nSourcePath];
// eslint-disable-next-line import/no-dynamic-require
const i18nSource = require(i18nSourcePath);
return i18nSource;
Expand Down

0 comments on commit 7a75a69

Please sign in to comment.