Skip to content

Commit

Permalink
Enabled translating for "Primary", "Local" .
Browse files Browse the repository at this point in the history
  • Loading branch information
akiko-pusu committed Dec 16, 2015
1 parent f3b6e70 commit 7c170de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions angular-timezone-selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ angular.module('angular-timezone-selector', [])
}

data.splice(0, 0, {
text: 'Local' + ': ',
text: _.get($scope, 'translations.local', 'Local') + ': ',
children: extraTZs,
firstNOffset: extraTZs[0].nOffset,
firstOffset: extraTZs[0].offset
Expand All @@ -131,7 +131,7 @@ angular.module('angular-timezone-selector', [])
extraTZs = _.filter(timezones, function (tz) { return _.contains(primaryChoices, tz.name) })

data.splice(0, 0, {
text: 'Primary' + ': ',
text: _.get($scope, 'translations.primary', 'Primary') + ': ',
children: extraTZs,
firstNOffset: extraTZs[0].nOffset,
firstOffset: extraTZs[0].offset
Expand Down

0 comments on commit 7c170de

Please sign in to comment.