Skip to content

Commit

Permalink
fix(docs): use updated translation bundle paths to generate `translat…
Browse files Browse the repository at this point in the history
…ions.json`
  • Loading branch information
jcfranco committed Jan 7, 2025
1 parent 2bd082f commit fe736c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/calcite-components/support/generateT9nDocsJSON.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fe736c2

Please sign in to comment.