Fix: Forget to create a dir before writing files

This commit is contained in:
Joseph Garrone 2024-09-22 22:53:13 +02:00
parent 26b8dd9cda
commit 890f8bc2d5

View File

@ -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")