Skip to content

Commit

Permalink
feat: i18n (ipfs#772)
Browse files Browse the repository at this point in the history
Ref.: ipfs#675 

This doesn't add translations for Explore view since it will be used as an external component. /cc @olizilla
  • Loading branch information
hacdias authored Sep 6, 2018
1 parent b70460f commit 9598b0c
Show file tree
Hide file tree
Showing 92 changed files with 2,179 additions and 357 deletions.
31 changes: 31 additions & 0 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[main]
host = https://www.transifex.com

[ipfs-webui.files-json]
file_filter = public/locales/<lang>/files.json
minimum_perc = 0
source_file = public/locales/en/files.json
source_lang = en
type = KEYVALUEJSON

[ipfs-webui.peers-json]
file_filter = public/locales/<lang>/peers.json
minimum_perc = 0
source_file = public/locales/en/peers.json
source_lang = en
type = KEYVALUEJSON

[ipfs-webui.settings-json]
file_filter = public/locales/<lang>/settings.json
minimum_perc = 0
source_file = public/locales/en/settings.json
source_lang = en
type = KEYVALUEJSON

[ipfs-webui.status-json]
file_filter = public/locales/<lang>/status.json
minimum_perc = 0
source_file = public/locales/en/status.json
source_lang = en
type = KEYVALUEJSON

98 changes: 53 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
"enzyme-adapter-react-16": "^1.4.0",
"file-extension": "^4.0.5",
"filesize": "^3.6.1",
"i18next": "^11.6.0",
"i18next-browser-languagedetector": "^2.2.3",
"i18next-icu": "^0.6.0",
"i18next-xhr-backend": "^1.5.1",
"internal-nav-helper": "^1.0.2",
"ipfs-css": "^0.9.0",
"ipfs-geoip": "^2.3.0",
Expand Down Expand Up @@ -62,7 +66,7 @@
"react-dom": "^16.4.2",
"react-faux-dom": "^4.2.0",
"react-helmet": "^5.2.0",
"react-intl": "^2.4.0",
"react-i18next": "^7.11.0",
"react-loadable": "^5.5.0",
"react-overlays": "^0.8.3",
"react-router-dom": "^4.3.1",
Expand Down
62 changes: 62 additions & 0 deletions public/locales/cs/files.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"title": "Soubory",
"home": "Hlavní stránka",
"breadcrumbs": "Breadcrumbs",
"finished": "Finished!",
"totalSize": "Total size: {size}",
"filesSelected": "{count, plural, one {File selected} other {Files selected}}",
"individualFilesOnly": "Only available for individual files",
"fileName": "File name",
"size": "Velikost",
"noPDFSupport": "Your browser does not support PDFs. Please download the PDF to view it:",
"downloadPDF": "Download PDF.",
"downloadInstead": "Try <1>downloading</1> it instead.",
"cantBePreviewed": "Sorry, this file can't be previewed",
"addFile": "Add file",
"addFolder": "Add folder",
"addByPath": "Add by path",
"addToIPFS": "Add to IPFS",
"newFolder": "New folder",
"actions": {
"add": "Add",
"delete": "Delete",
"rename": "Rename",
"download": "Stáhnout",
"inspect": "Inspect",
"copyHash": "Copy Hash",
"share": "Share",
"close": "Close",
"copy": "Copy",
"cancel": "Cancel",
"clear": "Smazat",
"create": "Create",
"save": "Uložit",
"unselectAll": "Unselect All"
},
"shareModal": {
"title": "Share Files",
"description": "Copy the link below and share it with your friends."
},
"renameModal": {
"titleFile": "Rename File",
"titleFolder": "Rename Folder",
"descriptionFile": "Choose a new name for this file.",
"descriptionFolder": "Choose a new name for this folder."
},
"deleteModal": {
"titleItem": "{count, plural, one {Delete Item} other {Delete {count} Items}}",
"titleFolder": "{count, plural, one {Delete Folder} other {Delete {count} Folders}}",
"titleFile": "{count, plural, one {Delete File} other {Delete {count} Files}}",
"descriptionItem": "{count, plural, one {Are you sure you want to delete this item? This action is permanent and cannot be reversed.} other {Are you sure you want to delete {count} items? This action is permanent and cannot be reversed.}}",
"descriptionFolder": "{count, plural, one {Are you sure you want to delete this folder? This action is permanent and cannot be reversed.} other {Are you sure you want to delete {count} folders? This action is permanent and cannot be reversed.}}",
"descriptionFile": "{count, plural, one {Are you sure you want to delete this file? This action is permanent and cannot be reversed.} other {Are you sure you want to delete {count} files? This action is permanent and cannot be reversed.}}"
},
"addByPathModal": {
"title": "Add by path",
"description": "Insert the path to add."
},
"newFolderModal": {
"title": "New folder",
"description": "Insert the name of the folder you want to create."
}
}
7 changes: 7 additions & 0 deletions public/locales/cs/peers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"title": "Peers",
"id": "ID",
"peers": "Peers",
"addresses": "Addresses",
"location": "Location"
}
15 changes: 15 additions & 0 deletions public/locales/cs/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"title": "Settings",
"save": "Uložit",
"saving": "Ukládám...",
"reset": "Resetovat",
"fetchingSettings": "Fetching settings...",
"configApiNotAvailable": "The IPFS config API is not available. Please disable the IPFS Companion web-extension and try again.",
"settingsUnavailable": "Settings not available. Please check your IPFS daemon is running.",
"settingsHaveChanged": "The settings have changed, please click <1>Reset</1> to update the editor contents",
"errorOccured": "An error occured while saving your changes",
"checkConsole": "Check the browser console for more info.",
"changesSaved": "Your changes have been saved",
"settingsWillBeUsedNextTime": "The new settings will be used next time you restart the IPFS daemon.",
"ipfsConfigDescription": "The IPFS config file is a json document. It is read once when the IPFS daemon is started. Save your changes then restart the IPFS daemon to apply them."
}
22 changes: 22 additions & 0 deletions public/locales/cs/status.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"title": "Status",
"peer": "Peer",
"peers": "Peers",
"addresses": "Addresses",
"nodeInfo": "Informace o uzlu",
"cid": "CID",
"version": "Version",
"advanced": "Advanced",
"publicKey": "Public Key",
"upSpeed": "Up speed",
"downSpeed": "Down speed",
"spaceUsed": "Space used",
"bandwidthOverTime": "Bandwidth over time",
"bandwidthByPeer": "Bandwidth by peer",
"distributionOfPeers": "Distribution of peers",
"rateIn": "Rate In",
"rateOut": "Rate Out",
"totalIn": "Total In",
"totalOut": "Total Out",
"more": "...and {count} more"
}
Loading

0 comments on commit 9598b0c

Please sign in to comment.