Skip to content

GoodRequest/check-locales-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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