Skip to content

Commit 935cf4c

Browse files
committed
Change en_GB locale to use meters since for most of us yards is an annoyance - but add 'en_GB imperial' for those that care
1 parent 453a3ca commit 935cf4c

1 file changed

Lines changed: 23 additions & 6 deletions

File tree

apps/locale/locales.js

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ timePattern / datePattern:
6161
%H hour (00..23)
6262
%M minute (00..59)
6363
%S second (00..60)
64-
65-
64+
65+
6666
in locales:
6767
6868
abmonth: short months (must be <5 chars, ideally 3)
6969
month: normal month names
70-
abday: short days (must be <5 chars, ideally 3)
71-
day: normal day names
70+
abday: short days (must be <5 chars, ideally 3)
71+
day: normal day names
7272
*/
7373

7474
var locales = {
@@ -77,11 +77,28 @@ var locales = {
7777
decimal_point: ".",
7878
thousands_sep: ",",
7979
speed: 'mph',
80+
distance: { "0": "m", "1": "mi" }, // virtually nobody uses "yd" in the UK, but it is technically an imperial units, so split them into "en_GB imperial"
81+
temperature: '°C',
82+
ampm: { 0: "am", 1: "pm" },
83+
timePattern: { 0: "%HH:%MM:%SS", 1: "%HH:%MM" },
84+
datePattern: { 0: "%b %d %Y", 1: "%d/%m/%Y" }, // Feb 28 2020" // "28/02/2020"(short)
85+
abmonth: "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
86+
month: "January,February,March,April,May,June,July,August,September,October,November,December",
87+
abday: "Sun,Mon,Tue,Wed,Thu,Fri,Sat",
88+
day: "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday",
89+
// No translation for english...
90+
},
91+
"en_GB imperial": {
92+
lang: "en_GB imperial", icon:"🇬🇧",
93+
notes: "Yards for small distances, not meters",
94+
decimal_point: ".",
95+
thousands_sep: ",",
96+
speed: 'mph',
8097
distance: { "0": "yd", "1": "mi" },
8198
temperature: '°C',
8299
ampm: { 0: "am", 1: "pm" },
83100
timePattern: { 0: "%HH:%MM:%SS", 1: "%HH:%MM" },
84-
datePattern: { 0: "%b %d %Y", 1: "%d/%m/%Y" }, // Feb 28 2020" // "01/03/2020"(short)
101+
datePattern: { 0: "%b %d %Y", 1: "%d/%m/%Y" }, // Feb 28 2020" // "28/02/2020"(short)
85102
abmonth: "Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec",
86103
month: "January,February,March,April,May,June,July,August,September,October,November,December",
87104
abday: "Sun,Mon,Tue,Wed,Thu,Fri,Sat",
@@ -757,7 +774,7 @@ var locales = {
757774
* These test strings are designed to be as wide and tall as real locale strings can be.
758775
* All apps should be able to display them properly, to ensure that they work with all locales.
759776
* To make the strings as long as possible, wide characters like "w" and "m" is used,
760-
* and to make them taller, "k" and "g" are used together.
777+
* and to make them taller, "k" and "g" are used together.
761778
*/
762779
"test": {
763780
lang: "test",

0 commit comments

Comments
 (0)