Skip to content

Commit

Permalink
🐛 fix: Fix glob path in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Dec 15, 2023
1 parent aa1c227 commit f5fb6fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lobe-i18n/src/utils/getEntryFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const getEntryFile = (config: I18nConfig): LocaleObj | void => {

export const getEntryFolderFiles = (config: I18nConfig): LocaleFolderObj | void => {
const entryPath = config.entry.replaceAll('*', '').replaceAll('*.json', '');
const files = globSync(join(entryPath, '**/*.json'), { nodir: true });
const files = globSync(join(entryPath, '**/*.json').replaceAll('\\', '/'), { nodir: true });

const obj: LocaleFolderObj = {};

Expand Down

0 comments on commit f5fb6fb

Please sign in to comment.