- Extracts translatable text strings in pre-commit hook - Updates ternary pluralization to use `pluralOf` instead - Generates XLIFF for Spanish
		
			
				
	
	
		
			14 lines
		
	
	
		
			319 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			319 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env sh
 | |
| . "$(dirname -- "$0")/_/husky.sh"
 | |
| 
 | |
| # run hook only if frontend src changed
 | |
| if git diff --name-only --cached | grep --quiet 'frontend/src/';
 | |
|   then
 | |
|     cd frontend
 | |
|     npx lint-staged
 | |
|     yarn localize:extract
 | |
|     git add xliff
 | |
|   else
 | |
|     echo "(no frontend/src changes - skipping pre-commit hook)"
 | |
| fi
 |