Skip to content

Commit d9a7656

Browse files
committed
write last data with end method
1 parent c696d96 commit d9a7656

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,7 @@ export default class I18nextPlugin {
244244
const keys = _.sortedUniq(_.sortBy(_.keys(values)));
245245
stream.write("{\n");
246246
stream.write(_.map(keys, key => `\t"${key}": "${key}"`).join(",\n"));
247-
stream.write("\n}");
248-
247+
stream.end("\n}");
249248
stream.on("close", () => resolve());
250249

251250
compilation.warnings.push(`missing translation ${_.size(values)} keys in ${lng}/${ns}`);

0 commit comments

Comments
 (0)