Skip to content

Commit

Permalink
console log to test filename bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pettinarip committed Dec 10, 2022
1 parent d411fce commit 471d9b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scripts/scanTranslations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const input = ["./src/**/*.{ts,tsx}"]
const output = "./i18n"

function getNamespaceFromFilename(filename: string) {
console.log({ filename })
const file = path.parse(filename)
const dir = file.dir.slice(filename.indexOf("src/"))
const namespace = dir.replaceAll("/", "-") + "-" + file.name
Expand Down

0 comments on commit 471d9b6

Please sign in to comment.