0.0.2 • Published 1 year ago

@goodrequest/check-locales-script v0.0.2

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

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