diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-01-06 16:14:25 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2016-01-06 16:25:12 +0100 |
commit | f4c7830570b522ad83ec9168cf12755e58192d26 (patch) | |
tree | 60cb773e73bd4cd17b5d83191897d439ea0bbad5 /server/sonar-web/src/main/js/components/shared/severity-helper.js | |
parent | 14fde3c0c46e717ac44a0b482f21f82149e2e837 (diff) | |
download | sonarqube-f4c7830570b522ad83ec9168cf12755e58192d26.tar.gz sonarqube-f4c7830570b522ad83ec9168cf12755e58192d26.zip |
rewrite translation module
Diffstat (limited to 'server/sonar-web/src/main/js/components/shared/severity-helper.js')
-rw-r--r-- | server/sonar-web/src/main/js/components/shared/severity-helper.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/components/shared/severity-helper.js b/server/sonar-web/src/main/js/components/shared/severity-helper.js index 5e5da357613..6e3ed4de918 100644 --- a/server/sonar-web/src/main/js/components/shared/severity-helper.js +++ b/server/sonar-web/src/main/js/components/shared/severity-helper.js @@ -19,6 +19,7 @@ */ import React from 'react'; import SeverityIcon from './severity-icon'; +import { translate } from '../../helpers/l10n'; export default React.createClass({ render() { @@ -29,7 +30,7 @@ export default React.createClass({ <span className="spacer-right"> <SeverityIcon severity={this.props.severity}/> </span> - {window.t('severity', this.props.severity)} + {translate('severity', this.props.severity)} </span>; } }); |