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

View File

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

View File

@ -72,6 +72,8 @@ export default {
'UN_ASSIGN': 'Unassign', 'UN_ASSIGN': 'Unassign',
'VIEW_TICKET': 'View Ticket', 'VIEW_TICKET': 'View Ticket',
'SELECT_CUSTOM_RESPONSE': 'Select a custom response...', 'SELECT_CUSTOM_RESPONSE': 'Select a custom response...',
'WARNING': 'Warning',
'INFO': 'Information',
//VIEW DESCRIPTIONS //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.', '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.',
@ -108,4 +110,4 @@ export default {
'OLD_PASSWORD_INCORRECT': 'Old password is incorrect', 'OLD_PASSWORD_INCORRECT': 'Old password is incorrect',
'WILL_LOSE_CHANGES': 'You haven\'t save. Your changes will be lost.', 'WILL_LOSE_CHANGES': 'You haven\'t save. Your changes will be lost.',
'WILL_DELETE_CUSTOM_RESPONSE': 'The custom response will be deleted.' 'WILL_DELETE_CUSTOM_RESPONSE': 'The custom response will be deleted.'
}; };