From 866e41d506a26b18eb4b6fdde4e129fffce71af5 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Tue, 9 Oct 2018 00:27:52 -0700 Subject: [PATCH] Apply localization to updated Subscription tab text --- .../lib/tabs/preferences-identity.jsx | 77 ++++++++++++------- app/lang/ar.json | 1 + app/lang/ca.json | 1 + app/lang/cs.json | 1 + app/lang/da.json | 1 + app/lang/de.json | 1 + app/lang/el.json | 1 + app/lang/en.json | 15 ++++ app/lang/es.json | 1 + app/lang/es_419.json | 1 + app/lang/fi.json | 1 + app/lang/fr.json | 1 + app/lang/he.json | 1 + app/lang/hi.json | 1 + app/lang/hr.json | 1 + app/lang/hu.json | 1 + app/lang/id.json | 1 + app/lang/it.json | 1 + app/lang/ja.json | 1 + app/lang/ko.json | 1 + app/lang/ms.json | 1 + app/lang/nl.json | 1 + app/lang/no.json | 1 + app/lang/pl.json | 1 + app/lang/pt.json | 1 + app/lang/ro.json | 1 + app/lang/ru.json | 1 + app/lang/sk.json | 1 + app/lang/sv.json | 1 + app/lang/th.json | 1 + app/lang/tr.json | 1 + app/lang/uk.json | 1 + app/lang/vi.json | 1 + app/lang/zh_CN.json | 1 + app/lang/zh_TW.json | 1 + 35 files changed, 96 insertions(+), 29 deletions(-) diff --git a/app/internal_packages/preferences/lib/tabs/preferences-identity.jsx b/app/internal_packages/preferences/lib/tabs/preferences-identity.jsx index 2ce5c1bdc..704e730b6 100644 --- a/app/internal_packages/preferences/lib/tabs/preferences-identity.jsx +++ b/app/internal_packages/preferences/lib/tabs/preferences-identity.jsx @@ -42,63 +42,81 @@ const ProTourFeatures = [ link: 'https://foundry376.zendesk.com/hc/en-us/articles/115003340291--Add-reminders-to-sent-messages', icon: `icon-composer-reminders.png`, - title: `Reminders`, - text: `Never forget to follow up! Mailspring reminds you if your messages haven't received replies.`, + title: localized(`Follow-up reminders`), + text: localized( + `Never forget to follow up! Mailspring reminds you if your messages haven't received replies.` + ), }, { link: 'https://foundry376.zendesk.com/hc/en-us/articles/115001881272--View-contact-and-company-profiles', icon: `toolbar-person-sidebar.png`, - title: `Rich contact profiles`, - text: `Write better emails with LinkedIn profiles, Twitter bios, message history, and more in the right sidebar.`, + title: localized(`Rich contact profiles`), + text: localized( + `Write better emails with LinkedIn profiles, Twitter bios, message history, and more in the right sidebar.` + ), }, { link: 'https://foundry376.zendesk.com/hc/en-us/articles/115001875431--Enable-read-receipts-link-tracking-and-notifications', icon: `icon-composer-eye.png`, - title: `Read receipts`, - text: `Get notified when each recipient opens your email to send timely follow-ups and reminders.`, + title: localized(`Read Receipts`), + text: localized( + `Get notified when each recipient opens your email to send timely follow-ups and reminders.` + ), }, { link: 'https://foundry376.zendesk.com/hc/en-us/articles/115001875231--Reply-faster-with-email-templates', icon: `toolbar-templates.png`, - title: `Mail Templates`, - text: `Create templated messages and fill them quickly to reply to messages and automate your common workflows.`, + title: localized(`Mail Templates`), + text: localized( + `Create templated messages and fill them quickly to reply to messages and automate your common workflows.` + ), }, { link: 'https://foundry376.zendesk.com/hc/en-us/articles/115001875431--Enable-read-receipts-link-tracking-and-notifications', icon: `icon-composer-linktracking.png`, - title: `Link tracking`, - text: `See when recipients click links in your emails so you can follow up with precision`, + title: localized(`Link tracking`), + text: localized( + `See when recipients click links in your emails so you can follow up with precision` + ), }, { link: 'https://foundry376.zendesk.com/hc/en-us/articles/115001882012--Schedule-messages-to-send-later', icon: `icon-composer-sendlater.png`, - title: `Send later`, - text: `Schedule messages to send at the ideal time to maximize your email reply rate or automate drip emails.`, + title: localized(`Send Later`), + text: localized( + `Schedule messages to send at the ideal time to maximize your email reply rate or automate drip emails.` + ), }, { link: 'https://foundry376.zendesk.com/hc/en-us/articles/115001881272--View-contact-and-company-profiles', icon: `icon-composer-reminders.png`, - title: `Company overviews`, - text: `See detailed information about companies you email, including their size, funding and timezone.`, + title: localized(`Company overviews`), + text: localized( + `See detailed information about companies you email, including their size, funding and timezone.` + ), }, { link: 'https://foundry376.zendesk.com/hc/en-us/articles/115001881232--Snooze-emails-to-handle-them-later', icon: `toolbar-snooze.png`, - title: `Snooze messages`, - text: `Schedule messages to re-appear later to keep your inbox clean and focus on immediate todos.`, + title: localized(`Snooze messages`), + text: localized( + `Schedule messages to re-appear later to keep your inbox clean and focus on immediate todos.` + ), }, { link: 'https://foundry376.zendesk.com/hc/en-us/articles/115002507891-Activity-Reports-In-Depth', icon: `icon-toolbar-activity.png`, - title: `Mailbox insights`, - text: `Use the Activity tab to get a birds-eye view of your mailbox: open and click rates, subject line effectiveness, and more.`, + title: localized(`Mailbox insights`), + text: localized( + `Use the Activity tab to get a birds-eye view of your mailbox: open and click rates, subject line effectiveness, and more.` + ), }, ]; @@ -277,17 +295,18 @@ class PreferencesIdentity extends React.Component { return (
- Thank you for using{' '} - {`Mailspring ${planDisplayName}`}{' '} - and supporting independent software. Get the most out of your subscription: explore pro - features below or visit the{' '} - - Help Center - {' '} - to learn more about reminders, templates, activity insights, and more. + {localizedReactFragment( + `Thank you for using %@ and supporting independent software. Get the most out of your subscription: explore pro features below or visit the %@ to learn more about reminders, templates, activity insights, and more.`, + {`Mailspring ${planDisplayName}`}, + + {localized(`Help Center`)} + + )} {unpaidNote}
-
Explore Mailspring Pro
+
{localized('Explore Mailspring Pro')}
{ProTourFeatures.map(item => ( @@ -308,7 +327,7 @@ class PreferencesIdentity extends React.Component {
{emailAddress}