Fix: Forget to create a dir before writing files
This commit is contained in:
parent
26b8dd9cda
commit
890f8bc2d5
@ -418,6 +418,8 @@ export function generateMessageProperties(params: {
|
|||||||
""
|
""
|
||||||
].join("\n");
|
].join("\n");
|
||||||
|
|
||||||
|
fs.mkdirSync(messageDirPath, { recursive: true });
|
||||||
|
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
pathJoin(messageDirPath, `messages_${languageTag}.properties`),
|
pathJoin(messageDirPath, `messages_${languageTag}.properties`),
|
||||||
Buffer.from(propertiesFileSource, "utf8")
|
Buffer.from(propertiesFileSource, "utf8")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user