Skip to content
This repository was archived by the owner on Mar 15, 2018. It is now read-only.

Commit 5186bfd

Browse files
committed
localise region names for - passes baton to @mattbasta (bug 885470)
1 parent f1d21c2 commit 5186bfd

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

hearth/media/js/settings.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
define('settings', ['settings_local', 'underscore'], function(settings_local, _) {
1+
define('settings', ['l10n', 'settings_local', 'underscore'], function(l10n, settings_local, _) {
2+
var gettext = l10n.gettext;
3+
24
return _.defaults(settings_local, {
35
api_url: 'http://' + window.location.hostname, // No trailing slash, please.
46

@@ -15,14 +17,14 @@ define('settings', ['settings_local', 'underscore'], function(settings_local, _)
1517
tracking_id: 'UA-36116321-6',
1618

1719
REGION_CHOICES_SLUG: {
18-
'worldwide': 'Worldwide',
19-
'br': 'Brazil',
20-
'co': 'Colombia',
21-
'pl': 'Poland',
22-
'es': 'Spain',
23-
'uk': 'United Kingdom',
24-
'us': 'United States',
25-
've': 'Venezuela'
20+
'worldwide': gettext('Worldwide'),
21+
'br': gettext('Brazil'),
22+
'co': gettext('Colombia'),
23+
'pl': gettext('Poland'),
24+
'es': gettext('Spain'),
25+
'uk': gettext('United Kingdom'),
26+
'us': gettext('United States'),
27+
've': gettext('Venezuela')
2628
},
2729

2830
timing_url: '', // TODO: figure this out

0 commit comments

Comments
 (0)