Implement share and export components
This commit is contained in:
@@ -1,4 +1,18 @@
|
||||
{
|
||||
"toastTitle": "This is what folks see when you share your CommunityRule",
|
||||
"toastDescription": "Your group can use this document as an operating manual."
|
||||
"toastDescription": "Your group can use this document as an operating manual.",
|
||||
"shareNoRuleTitle": "Nothing to share yet",
|
||||
"shareNoRuleDescription": "Open this page from your profile after publishing, or publish a rule first.",
|
||||
"shareLinkCopiedTitle": "Link copied",
|
||||
"shareLinkCopiedDescription": "Paste the link anywhere to share your public CommunityRule.",
|
||||
"shareCopyFailedTitle": "Could not copy link",
|
||||
"shareCopyFailedDescription": "Copy the address from your browser bar, or try again.",
|
||||
"shareSlackFallbackTitle": "Link copied",
|
||||
"shareSlackFallbackDescription": "Slack didn't open in a new tab. Paste this link into Slack to share it.",
|
||||
"shareDiscordPasteTitle": "Link copied",
|
||||
"shareDiscordPasteDescription": "Paste the link into a channel or direct message in Discord.",
|
||||
"exportFailedTitle": "Could not export",
|
||||
"exportFailedDescription": "Something went wrong. Refresh the page and try again.",
|
||||
"exportEmptyDocumentTitle": "Could not export",
|
||||
"exportEmptyDocumentDescription": "Your rule document is not available to export yet."
|
||||
}
|
||||
|
||||
@@ -21,6 +21,8 @@ import profile from "./pages/profile.json";
|
||||
import notFoundPage from "./pages/notFoundPage.json";
|
||||
import navigation from "./navigation.json";
|
||||
import metadata from "./metadata.json";
|
||||
import modalsShare from "./modals/share.json";
|
||||
import modalsPopoverExport from "./modals/popoverExport.json";
|
||||
|
||||
// create – stage 1: community
|
||||
import createInformational from "./create/community/informational.json";
|
||||
@@ -106,4 +108,8 @@ export default {
|
||||
},
|
||||
navigation,
|
||||
metadata,
|
||||
modals: {
|
||||
share: modalsShare,
|
||||
popoverExport: modalsPopoverExport,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"menuAriaLabel": "Export format",
|
||||
"downloadPdf": "Download PDF",
|
||||
"downloadCsv": "Download CSV",
|
||||
"downloadMarkdown": "Download Markdown"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"title": "Share this CommunityRule",
|
||||
"description": "Anyone with the link can view this rule.",
|
||||
"copyLink": "Copy link",
|
||||
"signal": "Signal",
|
||||
"slack": "Slack",
|
||||
"discord": "Discord",
|
||||
"email": "Email",
|
||||
"done": "Done",
|
||||
"closeDialogAriaLabel": "Close share dialog",
|
||||
"moreOptionsAriaLabel": "More share options"
|
||||
}
|
||||
Reference in New Issue
Block a user