Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
Load locales in pre-commit if necessary (#1599)
Browse files Browse the repository at this point in the history
  • Loading branch information
obulat authored Aug 2, 2022
1 parent 98faf37 commit da03b03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

if [ ! -f "$(dirname "$dir")"/src/locales/ar.json ]; then
echo "Loading locales."
pnpm i18n
fi
# Lint staged files
pnpx lint-staged && pnpm types

0 comments on commit da03b03

Please sign in to comment.