We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a108956 commit 2e8adb8Copy full SHA for 2e8adb8
1 file changed
src/dev/i18n/extract_default_translations.js
@@ -67,15 +67,12 @@ export async function matchEntriesWithExctractors(inputPath, options = {}) {
67
absolute,
68
});
69
70
- const { codeEntries } = entries.reduce(
71
- (paths, entry) => {
72
- const resolvedPath = path.resolve(inputPath, entry);
73
- paths.codeEntries.push(resolvedPath);
74
-
75
- return paths;
76
- },
77
- { codeEntries: [] }
78
- );
+ const codeEntries = entries.reduce((paths, entry) => {
+ const resolvedPath = path.resolve(inputPath, entry);
+ paths.push(resolvedPath);
+
+ return paths;
+ }, []);
79
80
return [[codeEntries, extractCodeMessages]];
81
}
0 commit comments