From bcbb68ddb7c80543ba039ed95bc169431ac1d766 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Wed, 16 Jul 2014 10:27:42 -0400 Subject: [PATCH] case insensitive locale check --- js/id/ui/scale.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/ui/scale.js b/js/id/ui/scale.js index 2136f2295..d24d00fb9 100644 --- a/js/id/ui/scale.js +++ b/js/id/ui/scale.js @@ -1,6 +1,6 @@ iD.ui.Scale = function(context) { var projection = context.projection, - imperial = (iD.detect().locale === 'en-us'), + imperial = (iD.detect().locale.toLowerCase() === 'en-us'), maxLength = 180, tickHeight = 8;