diff --git a/package.json b/package.json
index d45adbf..8a351a6 100644
--- a/package.json
+++ b/package.json
@@ -16,13 +16,17 @@
"axios": "^0.21.1",
"bootstrap": "^4.4.1",
"excerpts": "^0.0.3",
+ "i18next": "^19.8.7",
+ "i18next-xhr-backend": "^3.2.2",
"node-sass": "^4.14.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-helmet": "^5.2.1",
+ "react-i18next": "^11.8.6",
"react-js-pagination": "^3.0.3",
"react-scripts": "3.4.1",
- "swagger-ui-react": "3.25.0"
+ "swagger-ui-react": "3.25.0",
+ "uswds": "^2.10.0"
},
"scripts": {
"start": "react-scripts start",
diff --git a/public/locales/en/about.json b/public/locales/en/about.json
new file mode 100644
index 0000000..a95bd8c
--- /dev/null
+++ b/public/locales/en/about.json
@@ -0,0 +1,6 @@
+{
+ "title": "About this site",
+ "p1": "This is the default state of the DKAN data catalog.",
+ "p2": "This tool helps create open data catalogs using React and other libraries.",
+ "announcement": "Update this about page before publishing."
+}
\ No newline at end of file
diff --git a/public/locales/en/publishers.json b/public/locales/en/publishers.json
new file mode 100644
index 0000000..00e31b4
--- /dev/null
+++ b/public/locales/en/publishers.json
@@ -0,0 +1,4 @@
+{
+ "title": "Dataset Publishers",
+ "description": "Groups allow you to classify datasets that share a common publisher or organizational group (i.e. Parks and Recreation Department, Department of Education). Behind the scenes, Groups can offer an additional set of roles and permissions that ensure quality and security when publishing data. This is especially important for large sites that may have several working groups publishing data to the same site."
+}
\ No newline at end of file
diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json
new file mode 100644
index 0000000..15cbc8a
--- /dev/null
+++ b/public/locales/en/translation.json
@@ -0,0 +1,3 @@
+{
+ "en": "English"
+}
\ No newline at end of file
diff --git a/src/App.jsx b/src/App.jsx
index e8562c2..335f249 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -8,7 +8,6 @@ import NotFound from './templates/not_found';
import Dataset from './templates/dataset';
import ApiDocsSpecific from './templates/dataset/api';
import Publishers from './templates/publishers';
-import '@civicactions/data-catalog-components/dist/index.css';
import './theme/index.scss';
import { library } from '@fortawesome/fontawesome-svg-core';
diff --git a/src/assets/config.json b/src/assets/config.json
index 4948625..e29870a 100644
--- a/src/assets/config.json
+++ b/src/assets/config.json
@@ -1,5 +1,4 @@
{
- "container": "container",
"site": "Open Data Catalog",
"slogan": "Your slogan here.",
"logo": "https://dkan-default-content-files.s3.amazonaws.com/files/logo.svg"
diff --git a/src/components/FeaturedDatasets/index.jsx b/src/components/FeaturedDatasets/index.jsx
index 02dced0..8728d27 100644
--- a/src/components/FeaturedDatasets/index.jsx
+++ b/src/components/FeaturedDatasets/index.jsx
@@ -8,19 +8,19 @@ import './featureddatasets.scss';
const FeaturedDatasets = ({ datasets }) => {
return (
-
);
}
diff --git a/src/templates/publishers/index.jsx b/src/templates/publishers/index.jsx
index 2272bb5..5d1d424 100644
--- a/src/templates/publishers/index.jsx
+++ b/src/templates/publishers/index.jsx
@@ -1,26 +1,20 @@
import React from 'react';
+import { useTranslation } from 'react-i18next';
import { PublisherList } from "@civicactions/data-catalog-components";
import config from "../../assets/config";
import Layout from '../../components/Layout';
import orgs from "../../assets/publishers";
const Publishers = () => {
+ const { t } = useTranslation('publishers');
return (
-
-
Dataset Publishers
+
+
{t('publishers:title', 'Fallback Title')}
-
- Groups allow you to classify datasets that share a common
- publisher or organizational group (i.e. Parks and Recreation
- Department, Department of Education). Behind the scenes, Groups
- can offer an additional set of roles and permissions that ensure
- quality and security when publishing data. This is especially
- important for large sites that may have several working groups
- publishing data to the same site.
-