diff options
author | Winnie Hellmann <winnie@gitlab.com> | 2017-11-02 08:41:11 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-11-02 08:41:11 +0000 |
commit | dad38b27e8d5339e63e77bc09c912cfe13ab14e7 (patch) | |
tree | 9f9cbe52d2c5d1be8c16c453302b913cbf3d968b /app/assets/javascripts/graphs/stat_graph_contributors.js | |
parent | 8e263c9865a875a84df6de5c0d8cefdb742acccf (diff) | |
download | gitlab-ce-dad38b27e8d5339e63e77bc09c912cfe13ab14e7.tar.gz |
Make contributors page translatable
Diffstat (limited to 'app/assets/javascripts/graphs/stat_graph_contributors.js')
-rw-r--r-- | app/assets/javascripts/graphs/stat_graph_contributors.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/graphs/stat_graph_contributors.js b/app/assets/javascripts/graphs/stat_graph_contributors.js index cdc4fcf6573..e7232ca3712 100644 --- a/app/assets/javascripts/graphs/stat_graph_contributors.js +++ b/app/assets/javascripts/graphs/stat_graph_contributors.js @@ -4,6 +4,7 @@ import _ from 'underscore'; import d3 from 'd3'; import { ContributorsGraph, ContributorsAuthorGraph, ContributorsMasterGraph } from './stat_graph_contributors_graph'; import ContributorsStatGraphUtil from './stat_graph_contributors_util'; +import { n__ } from '../locale'; export default (function() { function ContributorsStatGraph() {} @@ -44,7 +45,7 @@ export default (function() { commits = $('<span/>', { "class": 'graph-author-commits-count' }); - commits.text(author.commits + " commits"); + commits.text(n__('%d commit', '%d commits', author.commits)); return $('<span/>').append(commits); }; |