Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 467 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 467 Bytes

Check locales script runnable in husky pre-commit hook

Prerequisites

Setup

  • make sure i18next-scanner.config is set up properly
  • make sure scan command will run before this script

Implementation (example pre-commit file)

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

i18next-scanner 'src/**/*.ts' && npx GoodRequest/check-locales-script && npx lint-staged