j40-cejst-2/client/src/intl/diffEnEs.js
Vim 28c5b9c869
Add language links to switch between English and Spanish (#842)
* Add language links to gov banner

- align banners to site logo
- create Language component and snapshot test
- add Language component to GovBanner
- update namespace for betaBanner scss.d.ts file

* Update snapshots for each page

* Componentizes the GovBanner

- add styles
- add unit test
- token most styles to USWDS

* Add language icon and update snapshots

* Make language link text smaller

* Update total height of BetaBanner

* Add languageLink to scss.d.ts file

* Add language links to mobile

- add isDesktop prop to Language component
- refactors header links to a simple array
- update snapshots

* Add href value to language links

- update snapshots

* merge other PRs and add spanish links

- merge PR 817
- merge PR 794
- add spanish links for footer
- add diffEnEs.js to detect differences between two json files
- adds esNoBrackets.json
- update intl README

* Add government banner in spanish

* Add spanish content for About and Explore page
2021-11-04 18:27:29 -07:00

13 lines
426 B
JavaScript

const enJson = require('./en.json');
const esJson = require('./es.json');
// const assert = require('assert');
const esKeys = Object.keys(esJson);
const esKeysNotInEn = Object.keys(enJson).filter((key) => !esKeys.includes(key));
if (esKeysNotInEn.length > 0) {
console.log('\nKeys that are missing in es.json: ');
console.log(esKeysNotInEn);
} else {
console.log('All keys from en.json appear to exist in es.json');
}