flow: Convert to different <Trans> component syntax for flow compatability
This commit is contained in:
@@ -31,9 +31,11 @@ function NewChildDocumentMenu({ document, label }: Props) {
|
||||
{
|
||||
title: (
|
||||
<span>
|
||||
<Trans>
|
||||
New document in <strong>{{ collectionName }}</strong>
|
||||
</Trans>
|
||||
<Trans
|
||||
defaults="New document in <em>{{ collectionName }}</em>"
|
||||
values={{ collectionName }}
|
||||
components={{ em: <strong /> }}
|
||||
/>
|
||||
</span>
|
||||
),
|
||||
to: newDocumentUrl(document.collectionId),
|
||||
|
||||
@@ -207,10 +207,12 @@ class CollectionScene extends React.Component<Props> {
|
||||
{collection.isEmpty ? (
|
||||
<Centered column>
|
||||
<HelpText>
|
||||
<Trans>
|
||||
<strong>{{ collectionName }}</strong> doesn’t contain any
|
||||
documents yet.
|
||||
</Trans>
|
||||
<Trans
|
||||
defaults="<em>{{ collectionName }}</em> doesn’t contain any
|
||||
documents yet."
|
||||
values={{ collectionName }}
|
||||
components={{ em: <strong /> }}
|
||||
/>
|
||||
<br />
|
||||
<Trans>Get started by creating a new one!</Trans>
|
||||
</HelpText>
|
||||
|
||||
@@ -79,17 +79,17 @@ function DocumentDelete({ document, onSubmit }: Props) {
|
||||
<form onSubmit={handleSubmit}>
|
||||
<HelpText>
|
||||
{document.isTemplate ? (
|
||||
<Trans>
|
||||
Are you sure you want to delete the{" "}
|
||||
<strong>{{ documentTitle: document.titleWithDefault }}</strong>{" "}
|
||||
template?
|
||||
</Trans>
|
||||
<Trans
|
||||
defaults="Are you sure you want to delete the <em>{{ documentTitle }}</em> template?"
|
||||
values={{ documentTitle: document.titleWithDefault }}
|
||||
components={{ em: <strong /> }}
|
||||
/>
|
||||
) : (
|
||||
<Trans>
|
||||
Are you sure about that? Deleting the{" "}
|
||||
<strong>{{ documentTitle: document.titleWithDefault }}</strong>{" "}
|
||||
document will delete all of its history and any nested documents.
|
||||
</Trans>
|
||||
<Trans
|
||||
defaults="Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and any nested documents."
|
||||
values={{ documentTitle: document.titleWithDefault }}
|
||||
components={{ em: <strong /> }}
|
||||
/>
|
||||
)}
|
||||
</HelpText>
|
||||
{canArchive && (
|
||||
|
||||
@@ -21,14 +21,11 @@ const ErrorSuspended = ({ auth }: { auth: AuthStore }) => {
|
||||
</h1>
|
||||
|
||||
<p>
|
||||
<Trans>
|
||||
A team admin (
|
||||
<strong>
|
||||
{{ suspendedContactEmail: auth.suspendedContactEmail }}
|
||||
</strong>
|
||||
) has suspended your account. To re-activate your account, please
|
||||
reach out to them directly.
|
||||
</Trans>
|
||||
<Trans
|
||||
defaults="A team admin (<em>{{ suspendedContactEmail }}</em>) has suspended your account. To re-activate your account, please reach out to them directly."
|
||||
values={{ suspendedContactEmail: auth.suspendedContactEmail }}
|
||||
components={{ em: <strong /> }}
|
||||
/>
|
||||
</p>
|
||||
</CenteredContent>
|
||||
);
|
||||
|
||||
@@ -282,10 +282,11 @@ class Search extends React.Component<Props> {
|
||||
{showShortcutTip && (
|
||||
<Fade>
|
||||
<HelpText small>
|
||||
<Trans>
|
||||
Use the <strong>{{ meta: metaDisplay }}+K</strong> shortcut to
|
||||
search from anywhere in your knowledge base
|
||||
</Trans>
|
||||
<Trans
|
||||
defaults="Use the <em>{{ meta }}+K</em> shortcut to search from anywhere in your knowledge base"
|
||||
values={{ meta: metaDisplay }}
|
||||
components={{ em: <strong /> }}
|
||||
/>
|
||||
</HelpText>
|
||||
</Fade>
|
||||
)}
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
"Member options": "Member options",
|
||||
"collection": "collection",
|
||||
"New child document": "New child document",
|
||||
"New document in <1>{{collectionName}}</1>": "New document in <1>{{collectionName}}</1>",
|
||||
"New document in <em>{{ collectionName }}</em>": "New document in <em>{{ collectionName }}</em>",
|
||||
"New template": "New template",
|
||||
"Link copied": "Link copied",
|
||||
"Revision options": "Revision options",
|
||||
@@ -194,7 +194,7 @@
|
||||
"Documents": "Documents",
|
||||
"The document archive is empty at the moment.": "The document archive is empty at the moment.",
|
||||
"Search in collection": "Search in collection",
|
||||
"<0>{{collectionName}}</0> doesn’t contain any documents yet.": "<0>{{collectionName}}</0> doesn’t contain any documents yet.",
|
||||
"<em>{{ collectionName }}</em> doesn’t contain any\n documents yet.": "<em>{{ collectionName }}</em> doesn’t contain any\n documents yet.",
|
||||
"Get started by creating a new one!": "Get started by creating a new one!",
|
||||
"Create a document": "Create a document",
|
||||
"Manage members": "Manage members",
|
||||
@@ -252,8 +252,8 @@
|
||||
"New from template": "New from template",
|
||||
"Publish": "Publish",
|
||||
"Publishing": "Publishing",
|
||||
"Are you sure you want to delete the <2>{{documentTitle}}</2> template?": "Are you sure you want to delete the <2>{{documentTitle}}</2> template?",
|
||||
"Are you sure about that? Deleting the <2>{{documentTitle}}</2> document will delete all of its history and any nested documents.": "Are you sure about that? Deleting the <2>{{documentTitle}}</2> document will delete all of its history and any nested documents.",
|
||||
"Are you sure you want to delete the <em>{{ documentTitle }}</em> template?": "Are you sure you want to delete the <em>{{ documentTitle }}</em> template?",
|
||||
"Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and any nested documents.": "Are you sure about that? Deleting the <em>{{ documentTitle }}</em> document will delete all of its history and any nested documents.",
|
||||
"If you’d like the option of referencing or restoring the {{noun}} in the future, consider archiving it instead.": "If you’d like the option of referencing or restoring the {{noun}} in the future, consider archiving it instead.",
|
||||
"Deleting": "Deleting",
|
||||
"I’m sure – Delete": "I’m sure – Delete",
|
||||
@@ -265,7 +265,7 @@
|
||||
"Offline": "Offline",
|
||||
"We were unable to load the document while offline.": "We were unable to load the document while offline.",
|
||||
"Your account has been suspended": "Your account has been suspended",
|
||||
"A team admin (<1>{{suspendedContactEmail}}</1>) has suspended your account. To re-activate your account, please reach out to them directly.": "A team admin (<1>{{suspendedContactEmail}}</1>) has suspended your account. To re-activate your account, please reach out to them directly.",
|
||||
"A team admin (<em>{{ suspendedContactEmail }}</em>) has suspended your account. To re-activate your account, please reach out to them directly.": "A team admin (<em>{{ suspendedContactEmail }}</em>) has suspended your account. To re-activate your account, please reach out to them directly.",
|
||||
"{{userName}} was added to the group": "{{userName}} was added to the group",
|
||||
"Add team members below to give them access to the group. Need to add someone who’s not yet on the team yet?": "Add team members below to give them access to the group. Need to add someone who’s not yet on the team yet?",
|
||||
"Invite them to {{teamName}}": "Invite them to {{teamName}}",
|
||||
@@ -301,7 +301,7 @@
|
||||
"Inline code": "Inline code",
|
||||
"Not Found": "Not Found",
|
||||
"We were unable to find the page you’re looking for.": "We were unable to find the page you’re looking for.",
|
||||
"Use the <1>{{meta}}+K</1> shortcut to search from anywhere in your knowledge base": "Use the <1>{{meta}}+K</1> shortcut to search from anywhere in your knowledge base",
|
||||
"Use the <em>{{ meta }}+K</em> shortcut to search from anywhere in your knowledge base": "Use the <em>{{ meta }}+K</em> shortcut to search from anywhere in your knowledge base",
|
||||
"No documents found for your search filters. <1></1>Create a new document?": "No documents found for your search filters. <1></1>Create a new document?",
|
||||
"Clear filters": "Clear filters",
|
||||
"Profile saved": "Profile saved",
|
||||
|
||||
Reference in New Issue
Block a user