Translations :/

This commit is contained in:
okbel
2018-07-10 12:33:31 -03:00
parent 50fdabc0c0
commit 6298a50bbe
4 changed files with 21 additions and 3 deletions
@@ -1,3 +1,4 @@
import { Localized as L } from "fluent-react/compat";
import React from "react";
import CopyToClipboard from "react-copy-to-clipboard";
import { Button, Popover, TextField } from "talk-ui/components";
@@ -49,13 +50,25 @@ class PermalinkPopover extends React.Component<InnerProps> {
<div className={styles.root}>
<TextField defaultValue={commentId} className={styles.textField} />
<CopyToClipboard text={commentId} onCopy={this.onCopy}>
<Button primary>{copied ? "Copied!" : "Copy"}</Button>
<Button primary>
{copied ? (
<L id="copied">
<span>Copied!</span>
</L>
) : (
<L id="copy">
<span>Copy</span>
</L>
)}
</Button>
</CopyToClipboard>
</div>
}
>
<button className={styles.shareButton} onClick={this.onClick}>
Share
<L id="share">
<span>Share</span>
</L>
</button>
</Popover>
);
@@ -49,7 +49,6 @@ class Button extends React.Component<InnerProps> {
[classes.secondary]: secondary,
});
console.log(this.props);
return (
<BaseButton
className={rootClassName}
+3
View File
@@ -1 +1,4 @@
postCommentForm-submit = Post
share = Share
copy = Copy
copied = Copied
+3
View File
@@ -0,0 +1,3 @@
share = Compartir
copy = Copiar
copied = Copiado