Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Load locales in pre-commit if necessary (#1599)
Olga Bulatda03b03d7d99
diff --git a/.husky/pre-commit b/.husky/pre-commitindex b96c70496..58cba2255 100755--- a/.husky/pre-commit+++ b/.husky/pre-commit@@ -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 filespnpx lint-staged && pnpm types