-
-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added translation wrapper to public-facing strings in Portal
refs #15502 - in order to use the translations, strings must be wrapped in the `t` function, which is passed through AppContext - whilst I haven't instrumented all public strings, the vast majority are done here and the strings have been brought into the JSON locale files using `yarn translate:generate`
- Loading branch information
1 parent
e630acd
commit 1aa9dbb
Showing
19 changed files
with
259 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,62 @@ | ||
{ | ||
"Hello": "Hello" | ||
"{{discount}}% discount": "", | ||
"{{trialDays}} days free": "", | ||
"A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.": "", | ||
"Account": "", | ||
"Account settings": "", | ||
"After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.": "", | ||
"Already a member?": "", | ||
"Back": "", | ||
"Back to Log in": "", | ||
"Cancel subscription": "", | ||
"Cancellation reason": "", | ||
"Choose a different plan": "", | ||
"Choose your newsletters": "", | ||
"Close": "", | ||
"Comments": "", | ||
"Confirm": "", | ||
"Continue": "", | ||
"Delete account": "", | ||
"Don't have an account?": "", | ||
"Email": "", | ||
"Email preference updated.": "", | ||
"Email preferences": "", | ||
"Emails": "", | ||
"Emails disabled": "", | ||
"Get help": "", | ||
"Get notified when someone replies to your comment": "", | ||
"Give feedback on this post": "", | ||
"Hello": "", | ||
"Less like this": "", | ||
"Manage": "", | ||
"Monthly": "", | ||
"More like this": "", | ||
"Name": "", | ||
"Not receiving emails?": "", | ||
"Now check your email!": "", | ||
"Powered by Ghost": "", | ||
"Price": "", | ||
"Re-enable emails": "", | ||
"Retry": "", | ||
"Save": "", | ||
"Sending login link...": "", | ||
"Sending...": "", | ||
"Sign in": "", | ||
"Sign up": "", | ||
"Start {{amount}}-day free trial": "", | ||
"Submit feedback": "", | ||
"Successfully unsubscribed": "", | ||
"Thanks for the feedback!": "", | ||
"That didn't go to plan": "", | ||
"This site is invite-only, contact the owner for access.": "", | ||
"To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!": "", | ||
"Unsubscribe from all emails": "", | ||
"Unsubscribing from emails will not cancel your paid subscription to {{title}}": "", | ||
"Update your preferences": "", | ||
"We couldn't unsubscribe you as the email address was not found. Please contact the site owner.": "", | ||
"Yearly": "", | ||
"You have been successfully resubscribed": "", | ||
"You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.": "", | ||
"Your account": "", | ||
"Your input helps shape what gets published.": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,62 @@ | ||
{ | ||
"Hello": "Hallo" | ||
"{{discount}}% discount": "", | ||
"{{trialDays}} days free": "", | ||
"A login link has been sent to your inbox. If it doesn't arrive in 3 minutes, be sure to check your spam folder.": "", | ||
"Account": "", | ||
"Account settings": "", | ||
"After a free trial ends, you will be charged the regular price for the tier you've chosen. You can always cancel before then.": "", | ||
"Already a member?": "", | ||
"Back": "", | ||
"Back to Log in": "", | ||
"Cancel subscription": "", | ||
"Cancellation reason": "", | ||
"Choose a different plan": "", | ||
"Choose your newsletters": "", | ||
"Close": "", | ||
"Comments": "", | ||
"Confirm": "", | ||
"Continue": "", | ||
"Delete account": "", | ||
"Don't have an account?": "", | ||
"Email": "", | ||
"Email preference updated.": "", | ||
"Email preferences": "", | ||
"Emails": "", | ||
"Emails disabled": "", | ||
"Get help": "", | ||
"Get notified when someone replies to your comment": "", | ||
"Give feedback on this post": "", | ||
"Hello": "Hallo", | ||
"Less like this": "", | ||
"Manage": "", | ||
"Monthly": "", | ||
"More like this": "", | ||
"Name": "", | ||
"Not receiving emails?": "", | ||
"Now check your email!": "", | ||
"Powered by Ghost": "", | ||
"Price": "", | ||
"Re-enable emails": "", | ||
"Retry": "", | ||
"Save": "", | ||
"Sending login link...": "", | ||
"Sending...": "", | ||
"Sign in": "", | ||
"Sign up": "", | ||
"Start {{amount}}-day free trial": "", | ||
"Submit feedback": "", | ||
"Successfully unsubscribed": "", | ||
"Thanks for the feedback!": "", | ||
"That didn't go to plan": "", | ||
"This site is invite-only, contact the owner for access.": "", | ||
"To complete signup, click the confirmation link in your inbox. If it doesn't arrive within 3 minutes, check your spam folder!": "", | ||
"Unsubscribe from all emails": "", | ||
"Unsubscribing from emails will not cancel your paid subscription to {{title}}": "", | ||
"Update your preferences": "", | ||
"We couldn't unsubscribe you as the email address was not found. Please contact the site owner.": "", | ||
"Yearly": "", | ||
"You have been successfully resubscribed": "", | ||
"You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.": "", | ||
"Your account": "", | ||
"Your input helps shape what gets published.": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
import React from 'react'; | ||
import AppContext from '../../AppContext'; | ||
import {ReactComponent as GhostLogo} from '../../images/ghost-logo-small.svg'; | ||
|
||
export default class PoweredBy extends React.Component { | ||
static contextType = AppContext; | ||
|
||
render() { | ||
const {t} = this.context; | ||
|
||
return ( | ||
<a href='https://ghost.org' target='_blank' rel='noopener noreferrer' onClick={() => { | ||
window.open('https://ghost.org', '_blank'); | ||
}}> | ||
<GhostLogo /> | ||
Powered by Ghost | ||
{t('Powered by Ghost')} | ||
</a> | ||
); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.