Translation

This commit is contained in:
Chi Vinh Le
2017-07-20 01:27:06 +07:00
parent b769e95898
commit da2bc69d19
6 changed files with 13 additions and 15 deletions
@@ -2,7 +2,7 @@ import React from 'react';
import cn from 'classnames';
import styles from './Comment.css';
import {name} from '../../package.json';
import {timeago} from 'plugin-api/beta/client/services';
import {t, timeago} from 'plugin-api/beta/client/services';
import {Slot} from 'plugin-api/beta/client/components';
import {Icon} from 'plugin-api/beta/client/components/ui';
@@ -46,7 +46,7 @@ class Comment extends React.Component {
<a className={cn(styles.goTo, `${name}__featured-comment__go-to`)}
onClick={this.viewComment}>
<Icon name="forum" className={styles.repliesIcon} /> {comment.replyCount} |
Go to conversation<Icon name="keyboard_arrow_right" className={styles.goToIcon} />
{t('talk-plugin-featured-comments.go_to_conversation')} <Icon name="keyboard_arrow_right" className={styles.goToIcon} />
</a>
</div>
</footer>
@@ -4,6 +4,6 @@ import {t} from 'plugin-api/beta/client/services';
export default ({active, asset: {featuredCommentsCount}}) => (
<span>
{t('featured')} <TabCount active={active} sub>{featuredCommentsCount}</TabCount>
{t('talk-plugin-featured-comments.featured')} <TabCount active={active} sub>{featuredCommentsCount}</TabCount>
</span>
);
@@ -8,7 +8,7 @@ export default (props) => (
{
isTagged(props.comment.tags, 'FEATURED') && props.depth === 0 ? (
<span className={styles.tag}>
{t('featured')}
{t('talk-plugin-featured-comments.featured')}
</span>
) : null
}
@@ -2,7 +2,7 @@ import Tab from './containers/Tab';
import TabPane from './containers/TabPane';
import Tag from './components/Tag';
import Button from './components/Button';
import translations from './translations.json';
import translations from './translations.yml';
import update from 'immutability-helper';
import {findCommentInEmbedQuery} from 'coral-embed-stream/src/graphql/utils';
@@ -1,10 +0,0 @@
{
"en" : {
"feature": "Feature",
"featured": "Featured"
},
"es" : {
"feature" : "Remarcar",
"featured": "Remarcado"
}
}
@@ -0,0 +1,8 @@
en:
talk-plugin-featured-comments:
featured: Featured
go_to_conversation: Go to conversation
es:
talk-plugin-featured-comments:
featured: Remarcado
go_to_conversation: Ir al comentario