chore: Extract product name from translation strings (#4646)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import * as React from "react";
|
||||
import env from "@server/env";
|
||||
import BaseEmail from "./BaseEmail";
|
||||
import Body from "./components/Body";
|
||||
import CopyableCode from "./components/CopyableCode";
|
||||
@@ -27,7 +28,7 @@ export default class ConfirmUserDeleteEmail extends BaseEmail<Props> {
|
||||
|
||||
protected renderAsText({ deleteConfirmationCode }: Props): string {
|
||||
return `
|
||||
You requested to permanantly delete your Outline account. Please enter the code below to confirm your account deletion.
|
||||
You requested to permanantly delete your ${env.APP_NAME} account. Please enter the code below to confirm your account deletion.
|
||||
|
||||
Code: ${deleteConfirmationCode}
|
||||
`;
|
||||
@@ -41,8 +42,8 @@ Code: ${deleteConfirmationCode}
|
||||
<Body>
|
||||
<Heading>Your account deletion request</Heading>
|
||||
<p>
|
||||
You requested to permanantly delete your Outline account. Please
|
||||
enter the code below to confirm your account deletion.
|
||||
You requested to permanantly delete your {env.APP_NAME} account.
|
||||
Please enter the code below to confirm your account deletion.
|
||||
</p>
|
||||
<EmptySpace height={5} />
|
||||
<p>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import * as React from "react";
|
||||
import env from "@server/env";
|
||||
import { NotificationSetting } from "@server/models";
|
||||
import BaseEmail from "./BaseEmail";
|
||||
import Body from "./components/Body";
|
||||
@@ -39,7 +40,7 @@ export default class ExportSuccessEmail extends BaseEmail<Props> {
|
||||
}
|
||||
|
||||
protected preview() {
|
||||
return "Here's your request data export from Outline";
|
||||
return `Here's your request data export from ${env.APP_NAME}`;
|
||||
}
|
||||
|
||||
protected renderAsText() {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import * as React from "react";
|
||||
import env from "@server/env";
|
||||
import { NotificationSetting } from "@server/models";
|
||||
import BaseEmail from "./BaseEmail";
|
||||
import Body from "./components/Body";
|
||||
@@ -39,7 +40,7 @@ export default class InviteAcceptedEmail extends BaseEmail<Props> {
|
||||
}
|
||||
|
||||
protected subject({ invitedName }: Props) {
|
||||
return `${invitedName} has joined your Outline team`;
|
||||
return `${invitedName} has joined your ${env.APP_NAME} team`;
|
||||
}
|
||||
|
||||
protected preview({ invitedName }: Props) {
|
||||
@@ -50,7 +51,7 @@ export default class InviteAcceptedEmail extends BaseEmail<Props> {
|
||||
return `
|
||||
Great news, ${invitedName} just accepted your invitation and has created an account. You can now start collaborating on documents.
|
||||
|
||||
Open Outline: ${teamUrl}
|
||||
Open ${env.APP_NAME}: ${teamUrl}
|
||||
`;
|
||||
}
|
||||
|
||||
@@ -71,7 +72,7 @@ Open Outline: ${teamUrl}
|
||||
</p>
|
||||
<EmptySpace height={10} />
|
||||
<p>
|
||||
<Button href={teamUrl}>Open Outline</Button>
|
||||
<Button href={teamUrl}>Open {env.APP_NAME}</Button>
|
||||
</p>
|
||||
</Body>
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import * as React from "react";
|
||||
import env from "@server/env";
|
||||
import BaseEmail from "./BaseEmail";
|
||||
import Body from "./components/Body";
|
||||
import Button from "./components/Button";
|
||||
@@ -26,7 +27,7 @@ export default class InviteEmail extends BaseEmail<Props> {
|
||||
}
|
||||
|
||||
protected preview() {
|
||||
return "Outline is a place for your team to build and share knowledge.";
|
||||
return `${env.APP_NAME} is a place for your team to build and share knowledge.`;
|
||||
}
|
||||
|
||||
protected renderAsText({
|
||||
@@ -36,9 +37,9 @@ export default class InviteEmail extends BaseEmail<Props> {
|
||||
teamUrl,
|
||||
}: Props): string {
|
||||
return `
|
||||
Join ${teamName} on Outline
|
||||
Join ${teamName} on ${env.APP_NAME}
|
||||
|
||||
${actorName} (${actorEmail}) has invited you to join Outline, a place for your team to build and share knowledge.
|
||||
${actorName} (${actorEmail}) has invited you to join ${env.APP_NAME}, a place for your team to build and share knowledge.
|
||||
|
||||
Join now: ${teamUrl}
|
||||
`;
|
||||
@@ -50,10 +51,12 @@ Join now: ${teamUrl}
|
||||
<Header />
|
||||
|
||||
<Body>
|
||||
<Heading>Join {teamName} on Outline</Heading>
|
||||
<Heading>
|
||||
Join {teamName} on {env.APP_NAME}
|
||||
</Heading>
|
||||
<p>
|
||||
{actorName} ({actorEmail}) has invited you to join Outline, a place
|
||||
for your team to build and share knowledge.
|
||||
{actorName} ({actorEmail}) has invited you to join {env.APP_NAME}, a
|
||||
place for your team to build and share knowledge.
|
||||
</p>
|
||||
<EmptySpace height={10} />
|
||||
<p>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import * as React from "react";
|
||||
import env from "@server/env";
|
||||
import BaseEmail from "./BaseEmail";
|
||||
import Body from "./components/Body";
|
||||
import Button from "./components/Button";
|
||||
@@ -27,7 +28,7 @@ export default class InviteReminderEmail extends BaseEmail<Props> {
|
||||
}
|
||||
|
||||
protected preview() {
|
||||
return "Outline is a place for your team to build and share knowledge.";
|
||||
return `${env.APP_NAME} is a place for your team to build and share knowledge.`;
|
||||
}
|
||||
|
||||
protected renderAsText({
|
||||
@@ -37,7 +38,7 @@ export default class InviteReminderEmail extends BaseEmail<Props> {
|
||||
teamUrl,
|
||||
}: Props): string {
|
||||
return `
|
||||
This is just a quick reminder that ${actorName} (${actorEmail}) invited you to join them in the ${teamName} team on Outline, a place for your team to build and share knowledge.
|
||||
This is just a quick reminder that ${actorName} (${actorEmail}) invited you to join them in the ${teamName} team on ${env.APP_NAME}, a place for your team to build and share knowledge.
|
||||
We only send a reminder once.
|
||||
|
||||
If you haven't signed up yet, you can do so here: ${teamUrl}
|
||||
@@ -50,11 +51,13 @@ If you haven't signed up yet, you can do so here: ${teamUrl}
|
||||
<Header />
|
||||
|
||||
<Body>
|
||||
<Heading>Join {teamName} on Outline</Heading>
|
||||
<Heading>
|
||||
Join {teamName} on {env.APP_NAME}
|
||||
</Heading>
|
||||
<p>
|
||||
This is just a quick reminder that {actorName} ({actorEmail})
|
||||
invited you to join them in the {teamName} team on Outline, a place
|
||||
for your team to build and share knowledge.
|
||||
invited you to join them in the {teamName} team on {env.APP_NAME}, a
|
||||
place for your team to build and share knowledge.
|
||||
</p>
|
||||
<p>If you haven't signed up yet, you can do so here:</p>
|
||||
<EmptySpace height={10} />
|
||||
|
||||
@@ -27,12 +27,12 @@ export default class SigninEmail extends BaseEmail<Props> {
|
||||
}
|
||||
|
||||
protected preview(): string {
|
||||
return "Here’s your link to signin to Outline.";
|
||||
return `Here’s your link to signin to ${env.APP_NAME}.`;
|
||||
}
|
||||
|
||||
protected renderAsText({ token, teamUrl, client }: Props): string {
|
||||
return `
|
||||
Use the link below to signin to Outline:
|
||||
Use the link below to signin to ${env.APP_NAME}:
|
||||
|
||||
${this.signinLink(token, client)}
|
||||
|
||||
@@ -52,7 +52,7 @@ signin page at: ${teamUrl}
|
||||
|
||||
<Body>
|
||||
<Heading>Magic Sign-in Link</Heading>
|
||||
<p>Click the button below to sign in to Outline.</p>
|
||||
<p>Click the button below to sign in to {env.APP_NAME}.</p>
|
||||
<EmptySpace height={10} />
|
||||
<p>
|
||||
<Button href={this.signinLink(token, client)}>Sign In</Button>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import * as React from "react";
|
||||
import env from "@server/env";
|
||||
import BaseEmail from "./BaseEmail";
|
||||
import Body from "./components/Body";
|
||||
import Button from "./components/Button";
|
||||
@@ -19,18 +20,18 @@ type Props = {
|
||||
*/
|
||||
export default class WelcomeEmail extends BaseEmail<Props> {
|
||||
protected subject() {
|
||||
return "Welcome to Outline";
|
||||
return `Welcome to ${env.APP_NAME}`;
|
||||
}
|
||||
|
||||
protected preview() {
|
||||
return "Outline is a place for your team to build and share knowledge.";
|
||||
return `${env.APP_NAME} is a place for your team to build and share knowledge.`;
|
||||
}
|
||||
|
||||
protected renderAsText({ teamUrl }: Props) {
|
||||
return `
|
||||
Welcome to Outline!
|
||||
Welcome to ${env.APP_NAME}!
|
||||
|
||||
Outline is a place for your team to build and share knowledge.
|
||||
${env.APP_NAME} is a place for your team to build and share knowledge.
|
||||
|
||||
To get started, head to the home screen and try creating a collection to help document your processes, create playbooks, or plan your teams work.
|
||||
|
||||
@@ -46,8 +47,11 @@ ${teamUrl}/home
|
||||
<Header />
|
||||
|
||||
<Body>
|
||||
<Heading>Welcome to Outline!</Heading>
|
||||
<p>Outline is a place for your team to build and share knowledge.</p>
|
||||
<Heading>Welcome to {env.APP_NAME}!</Heading>
|
||||
<p>
|
||||
{env.APP_NAME} is a place for your team to build and share
|
||||
knowledge.
|
||||
</p>
|
||||
<p>
|
||||
To get started, head to the home screen and try creating a
|
||||
collection to help document your processes, create playbooks, or
|
||||
@@ -60,7 +64,7 @@ ${teamUrl}/home
|
||||
<EmptySpace height={10} />
|
||||
<p>
|
||||
<Button href={`${teamUrl}/home?ref=welcome-email`}>
|
||||
Open Outline
|
||||
Open {env.APP_NAME}
|
||||
</Button>
|
||||
</p>
|
||||
</Body>
|
||||
|
||||
@@ -37,7 +37,7 @@ export default ({ unsubscribeUrl }: Props) => {
|
||||
<TR>
|
||||
<TD style={footerStyle}>
|
||||
<a href={env.URL} style={linkStyle}>
|
||||
Outline
|
||||
{env.APP_NAME}
|
||||
</a>
|
||||
<a href={twitterUrl()} style={externalLinkStyle}>
|
||||
Twitter
|
||||
|
||||
@@ -14,7 +14,7 @@ export default () => {
|
||||
<TD>
|
||||
<EmptySpace height={40} />
|
||||
<img
|
||||
alt="Outline"
|
||||
alt={env.APP_NAME}
|
||||
src={
|
||||
isCloudHosted
|
||||
? `${url}/email/header-logo.png`
|
||||
|
||||
Reference in New Issue
Block a user