Skip to content

Commit

Permalink
Fix path to i18n module build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
pavinduLakshan committed Feb 15, 2025
1 parent eb16e20 commit 3dbd534
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/scripts/detect-broken-i18n.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const getPropertyAccessChain = async (args) => {

/* Script logic begins here */

const i18nEnUsLangBundlePath = path.resolve(__dirname, "..", "modules", "i18n", "dist", "bundle", "en-US", "portals");
const i18nEnUsLangBundlePath = path.resolve(__dirname, "..", "..", "..", "modules", "i18n", "dist", "bundle", "en-US", "portals");

// get file path as cmd argument.
let filePathsFromArg = process.argv[2]
Expand Down Expand Up @@ -153,7 +153,6 @@ for(const relativeFilePath of filePathsFromArg) {
console.log(`Found t("") call in ${filePath}:`);

const args = call.getArguments();
console.log(args[0].getKind())
const i18nKey = await getPropertyAccessChain(args);

if (!i18nKey) {
Expand Down

0 comments on commit 3dbd534

Please sign in to comment.