18 Commits

Author SHA1 Message Date
Anton
2ec20b21b8 Update locale with support for meridians 2024-08-15 21:31:50 +02:00
Gordon Williams
03a0c06c3e Merge branch 'master' into atjn-deprecate-currency
# Conflicts:
#	ChangeLog
#	libs/js/banglejs/locale.min.js
2024-03-22 09:09:22 +00:00
Gordon Williams
34c8cb268e Bangle.js: Locale currency deprecated, 'number' updated to BangleApps version with thousands separator, date now doesn't sometimes have trailing spaces 2024-03-22 09:02:59 +00:00
thyttan
fbef914604 locale: fix trailing space on date < 10
The trailing whitespace would make the date string look uncentered on
e.g. `antonclk` clock app on Bangle.js.

Possibly similar change should be made to the `locale` library of
espruino/BangleApps - but I'm not sure.
2024-03-21 20:23:37 +01:00
Anton
e5fbdaa9bb Revert changes to currencySym 2024-03-20 13:54:58 +01:00
Anton
378b34d717 Deprecate currency information in locale 2024-03-20 12:20:17 +01:00
Gordon Williams
4767f2bb20 Bangle.js: Rename default locale to 'system' (from 'en_GB') 2022-06-07 16:31:26 +01:00
Gordon Williams
175311e3b4 Bangle.js: Change default distance units to m,km (from m,miles) (fix #2209, fix #2210) 2022-06-07 16:11:39 +01:00
Alessandro Cocco
1612028b6e [locale] Fix default dow and month functions 2022-04-29 10:18:25 +02:00
Gordon Williams
c7f4fa59ef quick tweak to recent locale change 2022-03-30 15:07:30 +01:00
Gordon Williams
95da6d156c Bangle.js: default 'locale' now supports second 'dp' argument for decimal places in distance/speed/temp 2022-03-30 14:51:03 +01:00
Gordon Williams
0dc2ae4ee0 Bangle.js: Ensure locale honours 12 hour setting (https://github.com/espruino/BangleApps/issues/892) 2021-11-29 09:54:12 +00:00
Gordon Williams
d802fcd592 Bangle.js: fix require("locale").time(new Date()) for default locale 2020-10-27 08:09:30 +00:00
Gordon Williams
26cb781949 Bangle.js: fix 'speed' units for built-in locale 2020-05-07 08:22:32 +01:00
Gordon Williams
c6d011c7aa Bangle.js: fix 'short' time for built-in locale 2020-05-06 08:45:14 +01:00
Gordon Williams
e9163cc12b Bangle.js: Add 'meridian' to locale library 2020-03-26 08:20:34 +00:00
Gordon Williams
1d2b1666d2 Fix locale.time(date,true) (short version) to not include seconds 2020-03-05 13:16:23 +00:00
Gordon Williams
2ffd1274ec Bangle.js: Added built-in 'locale' module to handle common conversions - this can be overwritten by a Storage File to change language 2020-02-28 16:53:12 +00:00