forked from TryGhost/Ghost
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
76d4ef2
commit 4d60bcb
Showing
65 changed files
with
1,437 additions
and
18 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const i18nLib = require('../i18n'); | ||
const {settingsCache} = require('../core/core/frontend/services/proxy'); | ||
|
||
let locale = settingsCache.get('locale') || 'en'; | ||
|
||
const i18nLanguage = locale; | ||
const i18n = i18nLib(i18nLanguage, 'newsletter'); | ||
|
||
function t(key, options) { | ||
console.log('key is', key, "hash is", options?.hash ); | ||
let hash = options?.hash; | ||
return i18n.t(key, hash); | ||
} | ||
|
||
module.exports = { t } |
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
3 changes: 2 additions & 1 deletion
3
ghost/email-service/lib/email-templates/partials/feedback-button-mobile.hbs
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,6 +1,7 @@ | ||
<td dir="ltr" valign="top" align="center" style="vertical-align: top; font-family: inherit; font-size: 14px; text-align: center; padding: 0 4px 4px; cursor: pointer; width: 33%;" nowrap> | ||
<a href="{{href}}" target="_blank"> | ||
<img src={{iconUrl}} border="0" width={{width}} height={{height}} alt="{{buttonText}}"> | ||
<p class="feedback-button-mobile-text">{{buttonText}}</p> | ||
<p class="feedback-button-mobile-text">{{t buttonText}}</p> | ||
{{!-- Button text possible values: {{t 'More like this'}} {{t 'Less like this'}} {{t 'Comment'}} --}} | ||
</a> | ||
</td> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"By {authors}": "", | ||
"Comment": "", | ||
"complimentary": "", | ||
"Email": "", | ||
"free": "", | ||
"Keep reading": "", | ||
"Less like this": "", | ||
"Manage subscription": "", | ||
"Member since": "", | ||
"More like this": "", | ||
"Name": "", | ||
"paid": "", | ||
"Subscription details": "", | ||
"trialing": "", | ||
"Unsubscribe": "", | ||
"View in browser": "", | ||
"You are receiving this because you are a <strong>%%{status}%% subscriber</strong> to {site}.": "", | ||
"Your free trial ends on {date}, at which time you will be charged the regular price. You can always cancel before then.": "", | ||
"Your subscription has been canceled and will expire on {date}. You can resume your subscription via your account settings.": "", | ||
"Your subscription has expired.": "", | ||
"Your subscription will expire on {date}.": "", | ||
"Your subscription will renew on {date}.": "" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"By {authors}": "", | ||
"Comment": "", | ||
"complimentary": "", | ||
"Email": "", | ||
"free": "", | ||
"Keep reading": "", | ||
"Less like this": "", | ||
"Manage subscription": "", | ||
"Member since": "", | ||
"More like this": "", | ||
"Name": "", | ||
"paid": "", | ||
"Subscription details": "", | ||
"trialing": "", | ||
"Unsubscribe": "", | ||
"View in browser": "", | ||
"You are receiving this because you are a <strong>%%{status}%% subscriber</strong> to {site}.": "", | ||
"Your free trial ends on {date}, at which time you will be charged the regular price. You can always cancel before then.": "", | ||
"Your subscription has been canceled and will expire on {date}. You can resume your subscription via your account settings.": "", | ||
"Your subscription has expired.": "", | ||
"Your subscription will expire on {date}.": "", | ||
"Your subscription will renew on {date}.": "" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"By {authors}": "", | ||
"Comment": "", | ||
"complimentary": "", | ||
"Email": "", | ||
"free": "", | ||
"Keep reading": "", | ||
"Less like this": "", | ||
"Manage subscription": "", | ||
"Member since": "", | ||
"More like this": "", | ||
"Name": "", | ||
"paid": "", | ||
"Subscription details": "", | ||
"trialing": "", | ||
"Unsubscribe": "", | ||
"View in browser": "", | ||
"You are receiving this because you are a <strong>%%{status}%% subscriber</strong> to {site}.": "", | ||
"Your free trial ends on {date}, at which time you will be charged the regular price. You can always cancel before then.": "", | ||
"Your subscription has been canceled and will expire on {date}. You can resume your subscription via your account settings.": "", | ||
"Your subscription has expired.": "", | ||
"Your subscription will expire on {date}.": "", | ||
"Your subscription will renew on {date}.": "" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"By {authors}": "", | ||
"Comment": "", | ||
"complimentary": "", | ||
"Email": "", | ||
"free": "", | ||
"Keep reading": "", | ||
"Less like this": "", | ||
"Manage subscription": "", | ||
"Member since": "", | ||
"More like this": "", | ||
"Name": "", | ||
"paid": "", | ||
"Subscription details": "", | ||
"trialing": "", | ||
"Unsubscribe": "", | ||
"View in browser": "", | ||
"You are receiving this because you are a <strong>%%{status}%% subscriber</strong> to {site}.": "", | ||
"Your free trial ends on {date}, at which time you will be charged the regular price. You can always cancel before then.": "", | ||
"Your subscription has been canceled and will expire on {date}. You can resume your subscription via your account settings.": "", | ||
"Your subscription has expired.": "", | ||
"Your subscription will expire on {date}.": "", | ||
"Your subscription will renew on {date}.": "" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"By {authors}": "", | ||
"Comment": "", | ||
"complimentary": "", | ||
"Email": "", | ||
"free": "", | ||
"Keep reading": "", | ||
"Less like this": "", | ||
"Manage subscription": "", | ||
"Member since": "", | ||
"More like this": "", | ||
"Name": "", | ||
"paid": "", | ||
"Subscription details": "", | ||
"trialing": "", | ||
"Unsubscribe": "", | ||
"View in browser": "", | ||
"You are receiving this because you are a <strong>%%{status}%% subscriber</strong> to {site}.": "", | ||
"Your free trial ends on {date}, at which time you will be charged the regular price. You can always cancel before then.": "", | ||
"Your subscription has been canceled and will expire on {date}. You can resume your subscription via your account settings.": "", | ||
"Your subscription has expired.": "", | ||
"Your subscription will expire on {date}.": "", | ||
"Your subscription will renew on {date}.": "" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"By {authors}": "", | ||
"Comment": "", | ||
"complimentary": "", | ||
"Email": "", | ||
"free": "", | ||
"Keep reading": "", | ||
"Less like this": "", | ||
"Manage subscription": "", | ||
"Member since": "", | ||
"More like this": "", | ||
"Name": "", | ||
"paid": "", | ||
"Subscription details": "", | ||
"trialing": "", | ||
"Unsubscribe": "", | ||
"View in browser": "", | ||
"You are receiving this because you are a <strong>%%{status}%% subscriber</strong> to {site}.": "", | ||
"Your free trial ends on {date}, at which time you will be charged the regular price. You can always cancel before then.": "", | ||
"Your subscription has been canceled and will expire on {date}. You can resume your subscription via your account settings.": "", | ||
"Your subscription has expired.": "", | ||
"Your subscription will expire on {date}.": "", | ||
"Your subscription will renew on {date}.": "" | ||
} |
Oops, something went wrong.