Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodylow committed Aug 9, 2024
1 parent 37393ef commit 673a943
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions JUSTFILE
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@ guardian:
yarn nix-guardian
reset dc:
cp original-docker-compose.yml docker-compose.yml && docker compose down -v && echo 'Removing fm dirs' && sudo rm -rf fm_* && echo 'Done'
translate commitHash:
node scripts/translate.js {{commitHash}}
2 changes: 1 addition & 1 deletion apps/guardian-ui/src/languages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -336,4 +336,4 @@
"twitter-link-text": "Twitter",
"github-link-text": "GitHub"
}
}
}
2 changes: 1 addition & 1 deletion scripts/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async function translateAndFill() {
}
}

async function fillMissingKeys(srcObj, targetObj, lang) {
async function fillMissingKeys(srcObj, targetObj, lang, path = '') {
const updatedObj = { ...targetObj };
for (const key in srcObj) {
const newPath = path ? `${path}.${key}` : key;
Expand Down

0 comments on commit 673a943

Please sign in to comment.