Add intl pre-commit hook and update GHA (#1416)

* Add intl pre-commit hook and update GHA

- add Husky lib
- add pre-commit script
- detect warning on extraction and abort commit
- update deploy staging yml to show message that en.json was modified

* Test if block of message post

- test if the message is posted even when checking a file with no changes

* Add back in full deploy action

* Add back en.json
This commit is contained in:
Vim 2022-03-17 13:03:26 -04:00 committed by GitHub
commit 14ad8c2ee4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 787 additions and 185 deletions

View file

@ -72,9 +72,9 @@ export const FORMULA = {
}}
/>,
THEN: <FormattedMessage
id={'methodology.page.formula.second'}
id={'methodology.page.formula.third'}
defaultMessage={ `{then} the community is considered disadvantaged.`}
description={'the second part of the formula used in the methodology'}
description={'the third part of the formula used in the methodology'}
values= {{
then: <span>THEN</span>,
}}
@ -243,7 +243,7 @@ export const CATEGORIES = {
},
CLEAN_ENERGY: {
METHODOLOGY: <FormattedMessage
id= {'indicator.categories.climate.change.methodology'}
id= {'indicator.categories.clean.energy.methodology'}
defaultMessage= {`Clean energy and energy efficiency category`}
description= {`Clean energy and energy efficiency methodology`}
/>,
@ -573,7 +573,7 @@ export const RESPONSIBLE_PARTIES = {
export const SOURCE_LINKS = {
CENSUS_ACS_15_19: <FormattedMessage
id= {'category.source.census.link'}
id= {'category.source.census.link.15'}
defaultMessage= {'{sourceCensusLink} from {date15_19}'}
description= {'source link for Census ACS'}
values= {{
@ -588,7 +588,7 @@ export const SOURCE_LINKS = {
}}
/>,
CENSUS_ACS_10: <FormattedMessage
id= {'category.source.census.link'}
id= {'category.source.census.link.10'}
defaultMessage= {'{sourceCensusLink} from {date10}'}
description= {'source link for Census ACS'}
values= {{
@ -1047,7 +1047,7 @@ export const INDICATORS = [
domID: 'median-home',
indicator: 'Median home value',
description: <FormattedMessage
id= {'category.lead.paint.description.text'}
id= {'category.median.home.value.description.text'}
defaultMessage= {`
Median home value of owner-occupied housing units in the census tract.
`}
@ -1189,13 +1189,13 @@ export const INDICATORS = [
domID: 'heart-disease',
indicator: 'Heart disease',
description: <FormattedMessage
id= {'category.diabetes.description.text'}
id= {'category.heart.disease.description.text'}
defaultMessage= {`
Weighted percent of people ages 18 years and older who report ever having been told
by a doctor, nurse, or other health professionals that they had angina or
coronary heart disease.
`}
description= {'description text for diabetes'}
description= {'description text for heart disease'}
/>,
usedIn: CATEGORIES.HEALTH_BURDENS.METHODOLOGY,
responsibleParty: RESPONSIBLE_PARTIES.CDC,