Skip to content

Commit

Permalink
Merge pull request #1734 from 18F/add_normalize_to_make
Browse files Browse the repository at this point in the history
Add normalize yaml command to make
  • Loading branch information
monfresh authored Oct 13, 2017
2 parents 73fbb50 + decfafc commit 8d3fdff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ load_test: $(CONFIG)
bin/load_test $(type)

.PHONY: setup all lint run test check brakeman

normalize_yaml:
find ./config/locales -type f | xargs ./scripts/normalize-yaml
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,11 @@ login.gov team for credentials and other values.
### Why 'Upaya'?

"skill in means" https://en.wikipedia.org/wiki/Upaya

### Managing translation files

To help us handle extra newlines and make sure we wrap lines consistently, we have a script called `./script/normalize-yaml` that helps format YAML consistently. After importing translations (or making changes to the *.yml files with strings, run this for the IDP app:

```
$ make normalize_yaml
```

0 comments on commit 8d3fdff

Please sign in to comment.