Max - add i18n [skip ci]

This commit is contained in:
Max Red 2016-10-28 21:21:06 -03:00
parent 59bfdf1128
commit 940b72bf6f
4 changed files with 9 additions and 9 deletions

View File

@ -173,10 +173,7 @@ let DemoPage = React.createClass({
{
title: 'InfoTooltip',
render: (
<div>
<InfoTooltip text="You should read the manual" />
<InfoTooltip type="warning" text="No staff member is assigned to this department." />
</div>
)
}
],

View File

@ -1,6 +1,7 @@
import React from 'react';
import classNames from 'classnames';
import i18n from 'lib-app/i18n';
import Icon from 'core-components/icon';
import Tooltip from 'core-components/tooltip';
@ -31,10 +32,10 @@ class InfoTooltip extends React.Component {
}
renderText() {
let message = (this.props.type === 'default') ? 'Information' : 'Warning';
let message = (this.props.type === 'default') ? i18n('INFO') : i18n('WARNING');
return (
<div className="info-tooltip__text">
<div className="info-tooltip__text__title">
<div className="info-tooltip__text-title">
{message}
</div>
{this.props.text}

View File

@ -2,7 +2,7 @@
.info-tooltip {
&__text {
&__title {
&-title {
color: $secondary-blue;
font-size: $font-size--md;
}
@ -18,7 +18,7 @@
}
.info-tooltip__text {
&__title {
&-title {
color: $primary-red;
}
}

View File

@ -72,6 +72,8 @@ export default {
'UN_ASSIGN': 'Unassign',
'VIEW_TICKET': 'View Ticket',
'SELECT_CUSTOM_RESPONSE': 'Select a custom response...',
'WARNING': 'Warning',
'INFO': 'Information',
//VIEW DESCRIPTIONS
'CREATE_TICKET_DESCRIPTION': 'This is a form for creating tickets. Fill the form and send us your issues/doubts/suggestions. Our support system will answer it as soon as possible.',