Skip to content

Commit

Permalink
Add external translation files
Browse files Browse the repository at this point in the history
  • Loading branch information
guergana committed Dec 1, 2024
1 parent 414b669 commit 89908ed
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 6 deletions.
11 changes: 5 additions & 6 deletions client/i18n.js
Original file line number Diff line number Diff line change
@@ -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 },
}
})
34 changes: 34 additions & 0 deletions locales/en.json
Original file line number Diff line number Diff line change
@@ -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.<br /><br /> 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 <small>(if possible)</small>",
"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"
}
3 changes: 3 additions & 0 deletions locales/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import en from './en.json'

export { en }

0 comments on commit 89908ed

Please sign in to comment.