Skip to content

Commit

Permalink
feat(i18n): ro locale
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Marcin Rataj <[email protected]>
  • Loading branch information
lidel committed Oct 2, 2020
1 parent 335e172 commit 60df053
Show file tree
Hide file tree
Showing 3 changed files with 248 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .tx/config
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[main]
host = https://www.transifex.com
lang_map = zh_CN: zh-CN, zh_HK: zh-HK, zh_TW: zh-TW, ko_KR: ko-KR, pt_PT: pt-PT, pt_BR: pt-BR, ja_JP: ja-JP, he_IL: he-IL, hi_IN: hi-IN, fa_IR: fa-IR
lang_map = zh_CN: zh-CN, zh_HK: zh-HK, zh_TW: zh-TW, ko_KR: ko-KR, pt_PT: pt-PT, pt_BR: pt-BR, ja_JP: ja-JP, hi_IN: hi-IN, he_IL: he-IL, fa_IR: fa-IR, bn_IN: bn-IN, fil_PH: fil-PH

[ipfs-desktop.ipfs-desktop-json]
file_filter = assets/locales/<lang>.json
minimum_perc = 1
source_file = assets/locales/en.json
source_lang = en
type = KEYVALUEJSON
244 changes: 244 additions & 0 deletions assets/locales/ro.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,244 @@
{
"ipfsIsRunning": "IPFS rulează",
"ipfsIsStopping": "IPFS se oprește",
"ipfsIsStarting": "IPFS pornește",
"ipfsIsNotRunning": "IPFS nu rulează",
"ipfsHasErrored": "IPFS a dat eroare",
"runningWithGC": "Rulează (GC în progres)",
"start": "Start",
"stop": "Stop",
"restart": "Repornește",
"about": "Despre",
"advanced": "Avansat",
"openRepoDir": "Open Repository Directory",
"openLogsDir": "Open Logs Directory",
"openConfigFile": "Open Configuration File",
"viewOnGitHub": "View on GitHub…",
"helpUsTranslate": "Help Translate This App…",
"readReleaseNotes": "Read Release Notes",
"status": "Stare",
"files": "Fișiere",
"peers": "Noduri partenere",
"quit": "Quit",
"versions": "Versions",
"screenshotTaken": "Screenshot taken",
"shareableLinkCopied": "Shareable link copied to the clipboard. Click here to view the screenshot.",
"couldNotTakeScreenshot": "Could not take screenshot",
"errorwhileTakingScreenshot": "An error occurred while taking the screenshot.",
"clickToOpenLogs": "Click here to open the logs.",
"ipfsNotRunning": "IPFS nu rulează",
"checkForUpdates": "Check for Updates…",
"yes": "Yes",
"no": "No",
"close": "Închide",
"ok": "OK",
"cancel": "Cancel",
"enable": "Enable",
"reportTheError": "Report the error",
"restartIpfsDesktop": "Restart IPFS Desktop",
"openLogs": "Open logs",
"takeScreenshot": "Take Screenshot",
"downloadCid": "Download…",
"moveRepositoryLocation": "Move Repository Location",
"runGarbageCollector": "Run Garbage Collector",
"selectDirectory": "Select Directory",
"customIpfsBinary": "Custom IPFS Binary",
"setCustomIpfsBinary": "Set Custom IPFS Binary",
"clearCustomIpfsBinary": "Clear Custom IPFS Binary",
"polkitDialog": {
"title": "Polkit not found",
"message": "IPFS can't be added to /usr/local/bin/ without polkit agent."
},
"noPermissionDialog": {
"title": "No permission",
"message": "IPFS couldn't be added to /usr/local/bin/, either because you entered the wrong password, or you denied permission."
},
"ipfsNotRunningDialog": {
"title": "IPFS nu rulează",
"message": "IPFS needs to be running to perform this action. Do you want to start the daemon?"
},
"recoverableErrorDialog": {
"title": "An error has occurred",
"message": "An error occurred but it does not prevent the execution of IPFS Desktop. You can either inspect the logs for yourself or report the error to the developers."
},
"cannotConnectToApiDialog": {
"title": "Cannot connect to API",
"message": "IPFS Desktop cannot connect to the API address provided: { addr }."
},
"ipfsDesktopHasShutdownDialog": {
"title": "IPFS Desktop has shutdown",
"message": "IPFS Desktop has shutdown because of an error. You can restart the app or report the error to the developers, which requires a GitHub account."
},
"moveRepositoryWarnDialog": {
"title": "Move repository",
"message": "If your repository is taking too much space on your main drive, you can move it to some other location. Bear in mind that the new location must always be available in order for IPFS Desktop to work correctly.",
"action": "Move and restart node"
},
"moveRepositorySuccessDialog": {
"title": "Repository moved successfully",
"message": "Your repository was successfully moved to { location } and your configuration was updated. The daemon will now start up again."
},
"moveRepositorySameDirDialog": {
"title": "Same directory selected",
"message": "The directory you picked is the same as the current one: { location }. Hence, no changes will be made."
},
"moveRepositoryDirExists": {
"title": " Directory already exists",
"message": "The directory { location } already exists. Please try using a different one."
},
"busyPortsDialog": {
"title": "Ports are busy",
"message": "The ports { port1 } and { port2 } are not available. Do you want to use { alt1 } and { alt2 } instead?",
"action": "Use ports { alt1 } and { alt2 } instead"
},
"busyPortDialog": {
"title": "Port is busy",
"message": "The port { port } is not available. Do you want to use { alt } instead?",
"action": "Use port { alt } instead"
},
"multipleBusyPortsDialog": {
"title": "Ports are busy",
"message": "Cannot bind to one or more of the API or Gateway addresses because the ports are busy.",
"action": "Open configuration file"
},
"itemsAddedNotification": {
"title": "Items added",
"message": "{ count } items added to your node. A shareable link was copied to your clipboard. Click here to see your files."
},
"itemAddedNotification": {
"title": "Item added",
"message": "Item added to your node. A shareable link was copied to your clipboard. Click here to see your file."
},
"itemsFailedNotification": {
"title": "Failed to add items",
"message": "Could not add your items to your node."
},
"updateAvailableDialog": {
"title": "Update available",
"message": "A new version ({ version }) of IPFS Desktop is available. The download will begin shortly in the background."
},
"updateNotAvailableDialog": {
"title": "Update not available",
"message": "You are on the latest version of IPFS Desktop ({ version })."
},
"updateErrorDialog": {
"title": "Could not download update",
"message": "It was not possible to download the update. Please check your Internet connection and try again."
},
"updateDownloadedDialog": {
"title": "Update downloaded",
"message": "Update for version { version } downloaded. To install the update, please restart IPFS Desktop.",
"action": "Repornește"
},
"updateDownloadedNotification": {
"title": "Update downloaded",
"message": "Update for version { version } of IPFS Desktop downloaded. Click this notification to install."
},
"runGarbageCollectorWarning": {
"title": "Garbage collector",
"message": "Running the garbage collector (GC) will remove from your repository all objects that are not pinned or on your MFS. This may take a while. Do you wish to proceed?",
"action": "Run"
},
"runGarbageCollectorDone": {
"title": "Garbage collector",
"message": "The garbage collector ran successfully."
},
"moveRepositoryFailed": {
"title": "Move repository",
"message": "Could not move the repository from \"{ currDir }\" to \"{ newDir }\"."
},
"cantAddIpfsToPath": {
"title": "IPFS on PATH",
"message": "Could not add IPFS to the PATH."
},
"runGarbageCollectorErrored": {
"title": "Garbage collector",
"message": "The garbage collector run could not be completed successfully."
},
"downloadCidContentDialog": {
"title": "Download to a local directory",
"message": "Enter a CID, IPFS path, or IPNS path:",
"action": "Next"
},
"cantResolveCidDialog": {
"title": "Error",
"message": "Unable to resolve \"{ path }\"."
},
"couldNotGetCidDialog": {
"title": "Error",
"message": "Unable to fetch \"{ path }\"."
},
"contentsSavedDialog": {
"title": "Success",
"message": "The contents of \"{ path }\" were successfully downloaded.",
"action": "See Files"
},
"couldNotSaveDialog": {
"title": "Could not write to disk",
"message": "There was an error writing to the disk. Please try again."
},
"launchAtLoginNotSupported": {
"title": "Error",
"message": "Launch at login is not supported on your platform."
},
"launchAtLoginFailed": {
"title": "Error",
"message": "Launch at login could not be enabled on your machine."
},
"enableIpfsOnPath": {
"title": "Enable IPFS on PATH",
"message": "By enabling this option, IPFS will be available on your command line as \"ipfs\". This action is reversible.",
"action": "Enable"
},
"disableIpfsOnPath": {
"title": "Disable IPFS on PATH",
"message": "By disabling this option, IPFS will no longer be available on your command line as \"ipfs\".",
"action": "Disable"
},
"enableGlobalTakeScreenshotShortcut": {
"title": "Enable screenshot shortcut",
"message": "By enabling this, the shortcut \"{ accelerator }\" will be available to take screenshots as long as IPFS Desktop is running."
},
"enableGlobalDownloadShortcut": {
"title": "Enable download shortcut",
"message": "By enabling this, the shortcut \"{ accelerator }\" will be available to download files as long as IPFS Desktop is running."
},
"installNpmOnIpfsWarning": {
"title": "Install npm on IPFS",
"message": "This experimental feature installs the \"ipfs-npm\" package on your system. It requires Node.js to be installed.",
"action": "Install"
},
"unableToInstallNpmOnIpfs": {
"title": "Error",
"message": "It was not possible to install \"ipfs-npm\" package on your system. Please check the logs for more information or try installing it manually by running \"npm install -g ipfs-npm\" on your command line."
},
"unableToUninstallNpmOnIpfs": {
"title": "Error",
"message": "It was not possible to uninstall \"ipfs-npm\" package on your system. Please check the logs for more information or try uninstalling it manually by running \"npm uninstall -g ipfs-npm\" on your command line."
},
"settings": {
"settings": "Settings",
"preferences": "Preferences",
"openNodeSettings": "Open Node Settings",
"appPreferences": "App Preferences",
"launchOnStartup": "Launch at Login",
"openWebUIAtLaunch": "Open Web UI at Launch",
"ipfsCommandLineTools": "Command Line Tools",
"takeScreenshotShortcut": "Global Screenshot Shortcut",
"downloadHashShortcut": "Global Download Shortcut",
"experiments": "Experiments",
"npmOnIpfs": "npm on IPFS"
},
"setCustomIpfsBinaryConfirmation": {
"title": "Custom IPFS binary",
"message": "By setting a custom IPFS, IPFS Desktop will no longer use the bundled IPFS version and will use the binary you specify. Do you wish to proceed?"
},
"setCustomIpfsBinarySuccess": {
"title": "Custom IPFS binary",
"message": "IPFS Desktop will start using the binary located at { path }. To start using it, IPFS needs to be restarted first."
},
"clearCustomIpfsBinarySuccess": {
"title": "Clear custom IPFS binary",
"message": "The custom IPFS binary was cleared. To start using the bundled IPFS version, IPFS needs to be restarted first."
}
}
3 changes: 2 additions & 1 deletion src/i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const nl = require('i18next-icu/locale-data/nl')
const no = require('i18next-icu/locale-data/no')
const pl = require('i18next-icu/locale-data/pl')
const pt = require('i18next-icu/locale-data/pt')
const ro = require('i18next-icu/locale-data/ro')
const ru = require('i18next-icu/locale-data/ru')
const sk = require('i18next-icu/locale-data/sk')
const sl = require('i18next-icu/locale-data/sl')
Expand All @@ -43,7 +44,7 @@ const zh = require('i18next-icu/locale-data/zh')

const localeData = [
ar, ca, cs, da, de, el, eo, es, en, et, fa, fi, fr, he, hi, hr, hu, it,
ja, ko, lt, lv, nl, no, pl, pt, ru, sk, sl, sr, sv, tr, uk, uz, zh
ja, ko, lt, lv, nl, no, pl, pt, ro, ru, sk, sl, sr, sv, tr, uk, uz, zh
]

module.exports = async function () {
Expand Down

0 comments on commit 60df053

Please sign in to comment.