mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 01:54:18 -08:00
Integrate gatsby-plugin-intl for internationalization Replaces static text with `intl.formatMessage` call and Links with `gatsby-plugin-intl` equivalent Note: `npm install` now requires `--force` to install the latest `gatsby-plugin-intl` as it doesn't explicitly support gatsby3.0
36 lines
983 B
JSON
36 lines
983 B
JSON
{
|
|
"name": "justice40-tool",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"description": "Justice40 Tool",
|
|
"author": "Nat Hillard",
|
|
"keywords": [
|
|
"gatsby"
|
|
],
|
|
"scripts": {
|
|
"develop": "gatsby develop",
|
|
"start": "gatsby develop",
|
|
"build": "gatsby build",
|
|
"serve": "gatsby serve",
|
|
"clean": "gatsby clean",
|
|
"intl:extract": "formatjs extract 'src/(pages|components)/*.tsx' --out-file src/intl/en.json",
|
|
"intl:compile": "formatjs compile src/intl/en.json --ast --out-file compiled-lang/en.json"
|
|
},
|
|
"devDependencies": {
|
|
"@formatjs/cli": "^4.2.15",
|
|
"@types/node": "^15.3.1",
|
|
"@types/react": "^17.0.1",
|
|
"@types/react-dom": "^17.0.1",
|
|
"gatsby-cli": "^3.5.0",
|
|
"gatsby-plugin-intl": "^0.3.3",
|
|
"gatsby-plugin-sass": "^4.5.0",
|
|
"sass": "^1.33.0",
|
|
"sass-loader": "^11.1.1"
|
|
},
|
|
"dependencies": {
|
|
"@trussworks/react-uswds": "^1.17.0",
|
|
"gatsby": "^3.4.1",
|
|
"react": "^17.0.1",
|
|
"react-dom": "^17.0.1"
|
|
}
|
|
}
|