Commit Graph

52 Commits (f0c9ae183c8f65ab62934af71f897a3017414636)

Author SHA1 Message Date
Anton f57992f3ae Remove meridians from time patterns 2024-09-16 13:24:37 +02:00
Anton 0e53f127a1 Improve sanity check for locales 2024-09-14 22:01:43 +02:00
Anton effa1b654a Support forced meridians 2024-08-27 13:51:06 +02:00
Gordon Williams 43893bab27
Merge pull request #3535 from atjn/meridian-fix-1
Improve support for meridians
2024-08-27 11:18:09 +01:00
Anton 332d3ca336 Add `is12Hour` function to locale 2024-08-15 17:14:17 +02:00
Anton 10b2e9e8dd Only return meridian for 12-hour clocks 2024-08-15 17:13:58 +02:00
Anton 7fd7b531d2 Minor fixes
This makes the document standards-compliant
2024-08-07 18:06:59 +02:00
Anton ece3735684 Save the last uploaded locale 2024-08-07 17:33:46 +02:00
Anton fce8ef2d12 Support custom date and time formats 2024-08-07 15:20:13 +02:00
Gordon Williams 95994b7e24
Merge pull request #3278 from atjn/deprecate-currency
`locale`: Deprecate currency information
2024-03-25 17:10:12 +00:00
Gordon Williams 6af5a2cfb4 Update locale comments to reflect actual espruino code 2024-03-25 10:16:06 +00:00
Anton 315d4b79d9 Add better deprecation descriptions 2024-03-21 11:29:02 +01:00
Anton 52643b4378 Revert changes to `currencySym` 2024-03-20 13:52:43 +01:00
Anton 10b2ff9449 Remove currency from documentation 2024-03-20 10:24:13 +01:00
Anton 9bc3b4c0be Deprecate currency information 2024-03-20 10:23:32 +01:00
Gordon Williams ca74c9a1c3 Add separate USA locale for different dates, and show examples 2023-09-11 14:57:26 +01:00
stweedo 7df499d277
Update locale.html - fixes missing lead zero in 24 hour mode 2023-05-31 01:44:26 -05:00
stweedo 39f9d66041
Update locale.html to remove leading zero in 12 hour mode 2023-05-30 19:00:26 -05:00
Gordon Williams 68b9e7992f just doc changes 2022-04-26 10:31:29 +01:00
Alessandro Cocco 4e23f4953c [locale] Add dowAll(), improve dow() 2022-04-26 10:26:31 +02:00
Gordon Williams e9e92cc95b merge in https://github.com/espruino/EspruinoAppLoaderCore/pull/11 in such a way that we can use it from apps/locales as well (to avoid some duplication!)
more characters added to list that need remapping
2022-04-07 16:08:39 +01:00
Gordon Williams aff76fe2c0 0.17: Fix regression where long month names were 'undefined' (fix #1641)Fix issue where long month names included 'undefined' (fix #1641) 2022-03-31 11:39:59 +01:00
Gordon Williams 48efab699d Show distance more accurately in conjunction with new locale app (fix #1523)
Also slightly more memory efficient locale module
2022-03-30 15:11:14 +01:00
Gordon Williams 55430085f2 update locale docs 2022-02-11 11:40:44 +00:00
Diego Pereyra 58a9b19aa1 typo 2022-01-15 16:23:48 -03:00
Diego Pereyra 4c8c1a6d2f Option to keep or not the textual translations 2022-01-15 16:18:59 -03:00
Gordon Williams d4f1e7d3cb minor fixes for #952 2021-11-29 09:52:47 +00:00
Richard de Boer 6220a88d29 locale: Apply 12hour setting to time
Fixes #892
2021-11-26 21:29:58 +01:00
Gordon Williams 15ee6212b8 Fix en_IN speed, add NAV icons 2020-12-07 08:59:29 +00:00
Gordon Williams 8ad5d13516 Allow customised apps to be minified/pretokenised 2020-09-01 14:43:54 +01:00
Gordon Williams fe53d9e8b7 fix custom/interface after refactoring 2020-08-24 11:59:52 +01:00
Matjaz Lipus fd4e0ceea4 number format 2020-06-06 22:26:07 +02:00
Matjaz Lipus 4498cbb24b distance and speed use 1 decimal point for numbers less than 10 2020-06-06 13:49:52 +02:00
Matjaz Lipus 8a757d4e34 single var for dow, month 2020-06-06 13:01:55 +02:00
Matjaž Lipuš 9c68b8f6dd
DRY 2020-06-04 00:19:23 +02:00
Matjaz Lipus 689de1e2ed fixed meridian 2020-06-02 23:04:22 +02:00
Matjaz Lipus b5f0cc4851 skip division by 1 2020-06-02 23:00:32 +02:00
Matjaz Lipus ecb1ba8a00 space 2020-06-02 23:00:02 +02:00
Matjaz Lipus c601f75117 use local vars (less memory) 2020-06-02 22:59:38 +02:00
Matjaz Lipus df1caeacad use .slice() 2020-06-02 21:21:27 +02:00
Matjaz Lipus fc1cea0b6c fix variables leaks + shorter code 2020-06-02 13:10:35 +02:00
Matjaz Lipus d3b686e09a temperature sanity check is already done onload 2020-06-02 13:06:19 +02:00
Gordon Williams d9442f2fd0 locale: Improve handling of non-ASCII characters (fix #469) 2020-06-01 17:04:55 +01:00
Gordon Williams ea32401ba6 Locale 0.06: Remove translations if not required
Ensure 'on' is always supplied for translations
2020-04-09 08:57:06 +01:00
Gordon Williams b135c097cf Add unicode flags for Language 2020-04-03 08:16:42 +01:00
Gordon Williams 3cb109f487 0.05: Inline locale details - faster, less memory overhead
Add correct scaling for speed/distance/temperature
2020-04-02 14:16:54 +01:00
MaBecker a7a8e85c70 add function meridian 2020-03-26 08:43:54 +01:00
Gordon Williams a7109b4fbd Fix global 'locale' variable 2020-03-25 22:36:46 +00:00
Gordon Williams 755580f092 Fix locale.currencySym 2020-03-25 22:27:20 +00:00
Gordon Williams 18a9f2c71f Allow translate to work even if not given a string 2020-03-05 10:01:16 +00:00