diff --git a/client/i18n.js b/client/i18n.js
index 36919af6..b5fe15c0 100644
--- a/client/i18n.js
+++ b/client/i18n.js
@@ -1,14 +1,13 @@
import i18next from 'i18next'
import { initReactI18next } from 'react-i18next'
+import * as locales from "../locales/index.ts"
i18next
.use(initReactI18next)
- .init({ fallbackLng : 'en',
+ .init({
+ fallbackLng : 'en',
+ defaultNS: "main",
resources: {
- en: {
- translation: {
- 'get-started': 'Get Started'
- }
- }
+ en: { main: locales.en },
}
})
diff --git a/locales/en.json b/locales/en.json
new file mode 100644
index 00000000..5f9adcd8
--- /dev/null
+++ b/locales/en.json
@@ -0,0 +1,34 @@
+{
+ "open-explore-tables": "Open & explore tables",
+ "detect-errors-generate-report": "Detect errors and generate a report",
+ "save-download-work": "Save & download your work",
+ "welcome-to-ODE": "Welcome to the Open Data Editor!",
+ "welcomebanner-description": "The ODE helps data practitioners with no coding skills to explore tabular data and detect errors in an easier way. Advanced users can also edit metadata and publish their work.
The OKFN team aims to add other data formats in the future.",
+ "link-check-blog": "Check our blog for updates",
+ "get-started": "Get started",
+ "welcomebanner-dont-show-again": "Don't show this screen on the next launch",
+ "powered-by-frictionless": "This project is open source and powered by",
+ "how-ODE-handles-your-files": "How the ODE handles your imported files",
+ "openlocationbanner-description" : "The tool makes a copy of your selections into the ODE folder on your Computer. Any changes will be made to these copies, while the original data remains unchanged.",
+ "openlocation-dont-show-again": "Don't show next time",
+ "okay": "Okay",
+ "next": "Next",
+ "back": "Back",
+ "alt-open-file-location": "Open File Location Slide",
+ "open-file-location": "Open File Location",
+ "upload-your-data": "Upload your data",
+ "create-an-issue": "create an issue",
+ "sharing-contents-if-possible": "sharing the file contents (if possible)",
+ "ODE-supports-CSV-Excel-files" : "The ODE supports Excel & csv files",
+ "links-online-tables" : "You can also add links to online tables",
+ "create-folder": "Create folder",
+ "user-guide": "User guide",
+ "report-an-issue": "Report an issue",
+ "from-your-computer": "From your computer",
+ "add-external-data": "Add external data",
+ "add-folders": "Add one or more folders",
+ "add-xsl-or-csv-files": "Add one or more Excel or csv files",
+ "link-external-table": "Link to the external table:",
+ "add": "Add",
+ "enter-or-paste-url": "Enter or paste URL"
+}
\ No newline at end of file
diff --git a/locales/index.ts b/locales/index.ts
new file mode 100644
index 00000000..3a993d3a
--- /dev/null
+++ b/locales/index.ts
@@ -0,0 +1,3 @@
+import en from './en.json'
+
+export { en }
\ No newline at end of file