From fe736c229d5f10d2a8bec859ac55423a2bb12be8 Mon Sep 17 00:00:00 2001 From: JC Franco Date: Tue, 7 Jan 2025 12:08:56 -0800 Subject: [PATCH] fix(docs): use updated translation bundle paths to generate `translations.json` --- packages/calcite-components/support/generateT9nDocsJSON.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/calcite-components/support/generateT9nDocsJSON.ts b/packages/calcite-components/support/generateT9nDocsJSON.ts index 0a75052b505..9427cb7ec13 100755 --- a/packages/calcite-components/support/generateT9nDocsJSON.ts +++ b/packages/calcite-components/support/generateT9nDocsJSON.ts @@ -24,7 +24,7 @@ Object.keys(messagesFileMain).forEach((key) => (data[component][key] = {})); const messagesFilenames = (await readdir(t9nPath, { withFileTypes: true })).map((dirent) => dirent.name); - const messagesFilenameRegex = new RegExp(`${component}\\.t9n\\.(.*)\\.json`); + const messagesFilenameRegex = new RegExp(`messages\\.(.*)\\.json`); for (const messagesFilename of messagesFilenames) { const messagesFilenameMatch = messagesFilename.match(messagesFilenameRegex);