mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-30 07:21:17 -07:00
Fixed es.json (#354)
* Fixed es.json - converted remaining english to spanish in file so as to check more locations. - the `formatjs compile` for Spanish was failing converted back to english for now. build does the correct thing, so it's more just to keep things correct in source. * add support for eslint-plugin-formatjs - eslint rules for formatjs - we are mostly protected by typescript checking, but this is a nice sanity check.
This commit is contained in:
parent
33c3288160
commit
e066f459fa
4 changed files with 55 additions and 12 deletions
|
@ -20,9 +20,11 @@ module.exports = {
|
|||
'plugins': [
|
||||
'react',
|
||||
'@typescript-eslint',
|
||||
'formatjs',
|
||||
],
|
||||
'rules': {
|
||||
'max-len': [2, {'code': 120, 'tabWidth': 4, 'ignoreUrls': true}],
|
||||
'formatjs/no-offset': 'error',
|
||||
},
|
||||
'settings': {
|
||||
'react': {
|
||||
|
|
40
client/package-lock.json
generated
40
client/package-lock.json
generated
|
@ -29767,6 +29767,12 @@
|
|||
"integrity": "sha512-Q1y515GcOdTHgagaVFhHnIFQ38ygs/kmxdNpvpou+raI9UO3YZcHDngBSYKQklcKlvA7iuQlmIKbzvmxcOE9CQ==",
|
||||
"dev": true
|
||||
},
|
||||
"@types/emoji-regex": {
|
||||
"version": "8.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@types/emoji-regex/-/emoji-regex-8.0.0.tgz",
|
||||
"integrity": "sha512-iacbaYN9IWWrGWTwlYLVOeUtN/e4cjN9Uh6v7Yo1Qa/vJzeSQeh10L/erBBSl53BTmbnQ07vsWp8mmNHGI4WbQ==",
|
||||
"dev": true
|
||||
},
|
||||
"@types/eslint": {
|
||||
"version": "7.2.13",
|
||||
"resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-7.2.13.tgz",
|
||||
|
@ -34185,6 +34191,40 @@
|
|||
"string-natural-compare": "^3.0.1"
|
||||
}
|
||||
},
|
||||
"eslint-plugin-formatjs": {
|
||||
"version": "2.17.1",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-formatjs/-/eslint-plugin-formatjs-2.17.1.tgz",
|
||||
"integrity": "sha512-L/rYhVdz5niANbZciqFYdp+/y5A0xB+ySzfV8dJaAB0dJyOGK1m2MZYEHsqAusaOTR96QzoQxVQLiGo5JoJi2g==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@formatjs/icu-messageformat-parser": "2.0.7",
|
||||
"@formatjs/ts-transformer": "3.4.5",
|
||||
"@types/emoji-regex": "^8.0.0",
|
||||
"@types/eslint": "^7.2.0",
|
||||
"@typescript-eslint/typescript-estree": "^4.11.0",
|
||||
"emoji-regex": "^9.0.0",
|
||||
"tslib": "^2.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@formatjs/ts-transformer": {
|
||||
"version": "3.4.5",
|
||||
"resolved": "https://registry.npmjs.org/@formatjs/ts-transformer/-/ts-transformer-3.4.5.tgz",
|
||||
"integrity": "sha512-VzjT9jbpizZhwvtX/jaoTOeHQ/nvEx9ttzDrRXcFIGXyxupBZKTxr/+v6j3NjUmeiuN3JfaXhZUYmG+zsS0kxw==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@formatjs/icu-messageformat-parser": "2.0.7",
|
||||
"chalk": "^4.1.1",
|
||||
"tslib": "^2.1.0"
|
||||
}
|
||||
},
|
||||
"emoji-regex": {
|
||||
"version": "9.2.2",
|
||||
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",
|
||||
"integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"eslint-plugin-graphql": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-plugin-graphql/-/eslint-plugin-graphql-4.0.0.tgz",
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
"lint": "eslint './src/**/*.{ts,tsx}' --ignore-pattern node_modules/ --ignore-pattern public --ignore-pattern *scss.d.ts",
|
||||
"lint:fix": "npm run lint -- --quiet --fix",
|
||||
"intl:extract": "formatjs extract 'src/(pages|components)/*.tsx' --out-file src/intl/en.json",
|
||||
"intl:compile-es": "formatjs compile src/intl/es.json --ast --out-file compiled-lang/es.json"
|
||||
"intl:compile-en": "formatjs compile src/intl/en.json --ast --out-file compiled-lang/en.json"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@formatjs/cli": "^4.2.15",
|
||||
|
@ -51,6 +51,7 @@
|
|||
"eslint": "^7.27.0",
|
||||
"eslint-config-google": "^0.14.0",
|
||||
"eslint-plugin-cypress": "^2.11.3",
|
||||
"eslint-plugin-formatjs": "^2.17.1",
|
||||
"eslint-plugin-react": "^7.23.2",
|
||||
"gatsby": "^3.4.1",
|
||||
"gatsby-cli": "^3.5.0",
|
||||
|
|
|
@ -3,23 +3,23 @@
|
|||
"areasOfInterest.energy": "Energía limpia y eficiencia energética",
|
||||
"areasOfInterest.housing": "Vivienda asequible y sostenible",
|
||||
"areasOfInterest.pollution": "Remediación de la contaminación heredada",
|
||||
"areasOfInterest.training": "Training and workforce development",
|
||||
"areasOfInterest.training": "Capacitación y desarrollo de la fuerza laboral",
|
||||
"areasOfInterest.transit": "Transporte limpio",
|
||||
"areasOfInterest.water": "Infraestructura de agua limpia",
|
||||
"header.about": "Sobre nosotras",
|
||||
"header.contact": "Contact",
|
||||
"header.explore": "Explore the tool",
|
||||
"header.contact": "Contacto",
|
||||
"header.explore": "Explore el trabajo",
|
||||
"header.methodology": "Metodología",
|
||||
"header.timeline": "Timeline",
|
||||
"header.timeline": "Cronología",
|
||||
"header.title": "Justice40",
|
||||
"index.aboutContent.header": "About Justice40",
|
||||
"index-aboutContent-p1": "In an effort to address historical environmental injustices, President Biden created the Justice40 Initiative on January 27, 2021. The Justice40 Initiative directs 40% of the benefits from federal investments in seven key areas to overburdened and underserved communities.",
|
||||
"index.aboutContent.p2": "Federal agencies will prioritize benefits using a new climate and economic justice screening tool. This screening tool will be a map that visualizes data to compare the cumulative impacts of environmental, climate, and economic factors. It is being developed by the Council on Environmental Quality (CEQ) with guidance from environmental justice leaders and communities affected by environmental injustices. The first version of the screening tool will be released in July 2021. However, the screening tool and data being used will be continuously updated to better reflect the lived experiences of community members.",
|
||||
"index.aboutContent.p3": "Read more about the Justice40 Initiative in President Biden’s {presidentLink}",
|
||||
"index.presidentalLinkLabel": "Executive Order on Tackling the Climate Crisis at Home and Abroad.",
|
||||
"index.aboutContent.header": "Acerca de Justice40",
|
||||
"index.aboutContent.p1": "En un esfuerzo por abordar las injusticias ambientales históricas, el presidente Biden creó la Iniciativa Justice40 el 27 de enero de 2021. La Iniciativa Justice40 dirige el 40% de los beneficios de las inversiones federales en siete áreas clave a comunidades sobrecargadas y desatendidas.",
|
||||
"index.aboutContent.p2": "Las agencias federales darán prioridad a los beneficios utilizando una nueva herramienta de evaluación de la justicia económica y climática. Esta herramienta de selección será un mapa que visualiza datos para comparar los impactos acumulativos de factores ambientales, climáticos y económicos. Está siendo desarrollado por el Consejo de Calidad Ambiental (Council on Environmental Quality - CEQ) con la orientación de líderes de justicia ambiental y comunidades afectadas por injusticias ambientales. La primera versión de la herramienta de detección se lanzará en julio de 2021. Sin embargo, la herramienta de detección y los datos que se utilizan se actualizarán continuamente para reflejar mejor las experiencias vividas por los miembros de la comunidad.",
|
||||
"index.aboutContent.p3": "Lea más sobre la Iniciativa Justice40 en {presidentLink} del presidente Biden.",
|
||||
"index.presidentalLinkLabel": "Orden ejecutiva sobre la lucha contra la crisis climática en el país y en el extranjero.",
|
||||
"index.presidentalLinkUri": "https://www.whitehouse.gov/briefing-room/presidential-actions/2021/01/27/executive-order-on-tackling-the-climate-crisis-at-home-and-abroad/",
|
||||
"index.section2.header": "Areas of Focus",
|
||||
"index.section3.header": "A Transparent, Community-First Approach",
|
||||
"index.section2.header": "Áreas de enfoque",
|
||||
"index.section3.header": "Un enfoque transparente, centrado en la comunidad",
|
||||
"index.section3.inclusive": "{inlineHeader} Muchas áreas que carecen de inversiones también carecen de datos ambientales y se pasarían por alto utilizando los datos ambientales disponibles. CEQ se está acercando activamente a grupos que históricamente han sido excluidos de la toma de decisiones, como grupos en áreas rurales y tribales, para comprender sus necesidades y solicitar su opinión.",
|
||||
"index.section3.inclusiveLabel": "Inclusivo:",
|
||||
"index.section3.intro": "Las iniciativas exitosas están guiadas por aportes directos de las comunidades a las que sirven. CEQ se compromete con la transparencia, la inclusión y la iteración en la construcción de esta herramienta de evaluación.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue