From 58cda9cc7fb79ca9df6746de7f9662bc08dc156a Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Fri, 13 Oct 2017 12:29:40 +0200 Subject: initial commit --- src/i18n/globalMessages.js | 16 +++++ src/i18n/languages.js | 4 ++ src/i18n/locales/en-US.json | 167 ++++++++++++++++++++++++++++++++++++++++++++ src/i18n/translations.js | 13 ++++ 4 files changed, 200 insertions(+) create mode 100644 src/i18n/globalMessages.js create mode 100644 src/i18n/languages.js create mode 100644 src/i18n/locales/en-US.json create mode 100644 src/i18n/translations.js (limited to 'src/i18n') diff --git a/src/i18n/globalMessages.js b/src/i18n/globalMessages.js new file mode 100644 index 000000000..2c724ff6f --- /dev/null +++ b/src/i18n/globalMessages.js @@ -0,0 +1,16 @@ +import { defineMessages } from 'react-intl'; + +export default defineMessages({ + upgradeAccount: { + id: 'global.premium.upgradeAccount', + defaultMessage: '!!!Please upgrade your account to add a new service.', + }, + APIUnhealthy: { + id: 'global.api.unhealthy', + defaultMessage: '!!!Can\'t connect to Franz Online Services', + }, + notConnectedToTheInternet: { + id: 'global.notConnectedToTheInternet', + defaultMessage: '!!!You are not connected to the internet.', + }, +}); diff --git a/src/i18n/languages.js b/src/i18n/languages.js new file mode 100644 index 000000000..782853b43 --- /dev/null +++ b/src/i18n/languages.js @@ -0,0 +1,4 @@ +module.exports = { + 'en-US': 'English', + // 'de-DE': 'Deutsch', +}; diff --git a/src/i18n/locales/en-US.json b/src/i18n/locales/en-US.json new file mode 100644 index 000000000..194b8047c --- /dev/null +++ b/src/i18n/locales/en-US.json @@ -0,0 +1,167 @@ +{ + "global.api.unhealthy": "Can't connect to Franz online services", + "global.notConnectedToTheInternet": "You are not connected to the internet.", + "welcome.signupButton": "Create a free account", + "welcome.loginButton": "Login to your account", + "welcome.slogan": "Messaging that works for you", + "login.headline": "Sign in", + "login.email.label": "Email address", + "login.password.label": "Password", + "login.submit.label": "Sign in", + "login.invalidCredentials": "Email or password not valid", + "login.tokenExpired": "Your session expired, please login again.", + "login.serverLogout": "Your session expired, please login again.", + "login.link.signup": "Create a free account", + "login.link.password": "Reset password", + "password.headline": "Reset password", + "password.email.label": "Email address", + "password.submit.label": "Submit", + "password.noUser": "No user with that email address was found", + "password.successInfo": "Please check your email", + "password.link.signup": "Create a free account", + "password.link.login": "Sign in to your account", + "signup.headline": "Sign up", + "signup.firstname.label": "Firstname", + "signup.lastname.label": "Lastname", + "signup.email.label": "Email address", + "signup.company.label": "Company", + "signup.password.label": "Password", + "signup.submit.label": "Create account", + "signup.link.login": "Already have an account, sign in?", + "signup.emailDuplicate": "A user with that email address already exists", + "signup.legal.info": "By creating a Franz account you accept the", + "signup.legal.terms": "Terms of service", + "signup.legal.privacy": "Privacy Statement", + "pricing.headline": "Support Franz", + "pricing.support.label": "Select your support plan", + "pricing.submit.label": "I want to support the development of Franz", + "pricing.link.skipPayment": "I don't want to support the development of Franz.", + "import.headline": "Import your Franz 4 services", + "import.notSupportedHeadline": "Services not yet supported in Franz 5", + "import.submit.label": "Import services", + "import.skip.label": "I want add services manually", + "invite.submit.label": "Send invites", + "invite.headline.friends": "Invite 3 of your friends or colleagues", + "invite.name.label": "Name", + "invite.email.label": "Email address", + "invite.skip.label": "I want to do this later", + "subscription.submit.label": "I want to support the development of Franz", + "subscription.paymentSessionError": "Could not initialize payment form", + "subscription.includedFeatures": "Paid Franz Premium Supporter Account includes", + "subscription.features.onpremise": "Add on-premise/hosted services like HipChat", + "subscription.features.customServices": "Private services for you and your team", + "subscription.features.encryptedSync": "Encrypted session synchronization", + "subscription.features.vpn": "Proxy & VPN support", + "subscription.features.ads": "No ads, ever!", + "subscription.features.comingSoon": "coming soon", + "infobar.servicesUpdated": "Your services have been updated.", + "infobar.updateAvailable": "A new update for Franz is available.", + "infobar.buttonReloadServices": "Reload services", + "infobar.buttonInstallUpdate": "Restart & install update", + "infobar.requiredRequestsFailed": "Could not load services and user information", + "sidebar.settings": "Settings", + "services.welcome": "Welcome to Franz", + "services.getStarted": "Get started", + "settings.account.headline": "Account", + "settings.account.headlineSubscription": "Your subscription", + "settings.account.headlineUpgrade": "Upgrade your account & support Franz", + "settings.account.headlineInvoices": "Invoices", + "settings.account.manageSubscription.label": "Manage your subscription", + "settings.account.accountType.basic": "Basic Account", + "settings.account.accountType.premium": "Premium Supporter Account", + "settings.account.account.editButton": "Edit account", + "settings.account.invoiceDownload": "Download", + "settings.account.userInfoRequestFailed": "Could not load user information", + "settings.account.tryReloadUserInfoRequest": "Try again", + "settings.account.headlineProfile": "Update profile", + "settings.account.headlineAccount": "Account information", + "settings.account.headlinePassword": "Change password", + "settings.account.successInfo": "Your changes have been saved", + "settings.account.buttonSave": "Update profile", + "settings.account.mining.thankyou": "Thank you for supporting Franz with your processing power.", + "settings.account.mining.active": "You are right now performing {hashes} calculations per second.", + "settings.account.mining.moreInformation": "Get more information", + "settings.account.mining.cancel": "Cancel mining", + "settings.navigation.availableServices": "Available services", + "settings.navigation.yourServices": "Your services", + "settings.navigation.account": "Account", + "settings.navigation.settings": "Settings", + "settings.navigation.logout": "Logout", + "settings.recipes.headline": "Available services", + "settings.recipes.mostPopular": "Most popular", + "settings.recipes.all": "All services", + "settings.recipes.dev": "Development", + "settings.recipes.nothingFound": "Sorry, but no service matched your search term.", + "settings.recipes.servicesSuccessfulAddedInfo": "Service successfully added", + "settings.service.form.saveButton": "Save service", + "settings.service.form.deleteButton": "Delete service", + "settings.service.form.availableServices": "Available services", + "settings.service.form.yourServices": "Your services", + "settings.service.form.addServiceHeadline": "Add {name}", + "settings.service.form.editServiceHeadline": "Edit {name}", + "settings.service.form.tabHosted": "Hosted", + "settings.service.form.tabOnPremise": "Self hosted ⭐️", + "settings.service.form.customUrlValidationError": "Could not validate custom {name} server.", + "settings.service.form.customUrlPremiumInfo": "To add self hosted services, you need a Franz Premium Supporter Account.", + "settings.service.form.customUrlUpgradeAccount": "Upgrade your account", + "settings.service.form.indirectMessageInfo": "You will be notified about all new messages in a channel, not just @username, @channel, @here, ...", + "settings.service.error.headline": "Error", + "settings.service.error.goBack": "Back to services", + "settings.service.error.message": "Could not load service recipe.", + "settings.services.tooltip.isDisabled": "Service is disabled", + "settings.services.tooltip.notificationsDisabled": "Notifications are disabled", + "settings.services.headline": "Your services", + "settings.services.noServicesAdded": "You haven't added any services yet.", + "settings.services.discoverServices": "Discover services", + "settings.services.updatedInfo": "Your changes have been saved", + "settings.services.deletedInfo": "Service has been deleted", + "settings.app.headline": "Settings", + "settings.app.headlineGeneral": "General", + "settings.app.headlineLanguage": "Language", + "settings.app.headlineUpdates": "Updates", + "settings.app.buttonSearchForUpdate": "Check for updates", + "settings.app.buttonInstallUpdate": "Restart & install update", + "settings.app.updateStatusSearching": "Is searching for update", + "settings.app.updateStatusAvailable": "Update available, downloading...", + "settings.app.updateStatusUpToDate": "You are using the latest version of Franz", + "settings.app.form.autoLaunchOnStart": "Launch Franz on start", + "settings.app.form.autoLaunchInBackground": "Open in background", + "settings.app.form.minimizeToSystemTray": "Minimize Franz to system tray", + "settings.app.form.runInBackground": "Keep Franz in background when closing the window", + "settings.app.form.language": "Language", + "settings.app.form.beta": "Include beta versions", + "settings.app.currentVersion": "Current version:", + "settings.service.form.name": "Name", + "settings.service.form.enableService": "Enable service", + "settings.service.form.enableNotification": "Enable notifications", + "settings.service.form.team": "Team", + "settings.service.form.customUrl": "Custom server", + "settings.service.form.indirectMessages": "Show message badge for all new messages", + "settings.user.form.firstname": "Firstname", + "settings.user.form.lastname": "Lastname", + "settings.user.form.email": "Email", + "settings.user.form.currentPassword": "Current password", + "settings.user.form.newPassword": "New password", + "settings.user.form.accountType.label": "Account type", + "settings.user.form.accountType.individual": "Individual", + "settings.user.form.accountType.non-profit": "Non-Profit", + "settings.user.form.accountType.company": "Company", + "subscription.type.free": "free", + "subscription.type.month": "month", + "subscription.type.year": "year", + "subscription.type.mining": "Support Franz with processing power", + "subscription.mining.headline": "How does this work?", + "subscription.mining.experimental": "experimental", + "subscription.mining.line1": "By enabling \"Support with processing power\", Franz will use about 20-50% of your CPU to mine the cryptocurrency Monero which equals approximately $ 5/year.", + "subscription.mining.line2": "We will adapt the CPU usage based to your work behaviour to not drain your battery and slow you and your machine down.", + "subscription.mining.line3": "As long as the miner is active, you will have unlimited access to all the Franz Premium Supporter Features.", + "subscription.mining.moreInformation": "Get more information about this plan.", + "subscriptionPopup.buttonCancel": "Cancel", + "subscriptionPopup.buttonDone": "Done", + "tabs.item.reload": "Reload", + "tabs.item.edit": "Edit", + "tabs.item.disableNotifications": "Disable notifications", + "tabs.item.enableNotification": "Enable notifications", + "tabs.item.disableService": "Disable service", + "tabs.item.deleteService": "Delete service" +} diff --git a/src/i18n/translations.js b/src/i18n/translations.js new file mode 100644 index 000000000..492a6cc4e --- /dev/null +++ b/src/i18n/translations.js @@ -0,0 +1,13 @@ +import languages from './languages'; + +const translations = []; +Object.keys(languages).forEach((key) => { + try { + const translation = require(`./locales/${key}.json`); // eslint-disable-line + translations[key] = translation; + } catch (err) { + console.warn(`Can't find translations for ${key}`); + } +}); + +module.exports = translations; -- cgit v1.2.3-70-g09d2