Commit Graph

463 Commits

Author SHA1 Message Date
Quincy Morgan
9423f61adf Improve some variable names in core/localizer 2021-02-23 11:50:42 -05:00
Quincy Morgan
13ddeecfa7 Fix code tests for #8276 for real this time
Add utilFetchJson to get around some quirks of d3.json and use it for coreFileFetcher
Load real general English locale strings at the beginning of code tests
2021-02-23 11:50:00 -05:00
Quincy Morgan
d0754a9256 Trim whitespace from localized string ids 2021-02-15 11:09:26 -05:00
Quincy Morgan
6f66032237 Fix issue with replacing number tokens in strings when toLocaleString is unavailable, such as when running tests (re: #8276) 2021-02-15 10:59:44 -05:00
Bryan Housel
9e93701c58 Update osm-community-index to v3.0.1
The major version bump is because
- it no longer distributes index.js/index.mjs code bundles
   (which iD hasn't needed in a long time anyway)
- renamed dist/features.json -> dist/featureCollection.json
2020-12-16 09:25:11 -05:00
Quincy Morgan
cb7f1c2b3c Update to id-tagging-schema v3.0.0
Add UI for translatable combo fields
2020-12-08 15:23:51 -05:00
Quincy Morgan
102fe6277c Add checks for calling coreLocalizer.tInfo before loading strings 2020-12-02 10:10:20 -05:00
Quincy Morgan
fd6152599f Update the privacy policy to account for the JSDelivr CDN integration 2020-12-02 09:59:16 -05:00
Quincy Morgan
7666f927b5 Fix an issue with fallback preset strings 2020-12-01 11:45:02 -05:00
Quincy Morgan
baabd81987 Unbundle id-tagging-schema data and translations
Update for id-tagging-schema 2.0.0
2020-12-01 11:14:14 -05:00
Quincy Morgan
ba48a861bc Enable curly and block-spacing eslint rules 2020-11-10 14:19:11 -05:00
Quincy Morgan
481b80e5cb Fetch the parent relations when downloading a single entity, e.g. when launching iD with a feature selected (close #6731) 2020-11-10 10:00:44 -05:00
Quincy Morgan
058676c0e1 Set development version number 2020-11-09 15:06:29 -05:00
Quincy Morgan
bbf174c658 v2.19.5 2020-11-09 15:00:57 -05:00
Quincy Morgan
cd1bf16dcd Download, select, and display the feature specified in the URL upon load even if the map parameter is zoomed out beyond the editable extent (close #8122) 2020-11-06 15:51:40 -05:00
Quincy Morgan
b84f95be67 Set development version number 2020-11-02 10:25:42 -05:00
Quincy Morgan
ef2ec3ae9c v2.19.4 2020-11-02 10:19:34 -05:00
Quincy Morgan
047f2ef555 Set development version number 2020-10-29 15:10:39 -04:00
Quincy Morgan
deb652af21 v2.19.3 2020-10-29 15:06:14 -04:00
Quincy Morgan
d1940270be Set development version number 2020-10-28 10:55:35 -04:00
Quincy Morgan
612dfe4073 v2.19.2 2020-10-28 10:49:36 -04:00
Quincy Morgan
4b43c1dff5 Set development version number 2020-10-27 21:20:16 -04:00
Quincy Morgan
24ad7fcb82 v2.19.1 2020-10-27 21:11:06 -04:00
Quincy Morgan
6cd79fc363 Set development version number 2020-10-27 17:40:20 -04:00
Quincy Morgan
3e25e4154c v2.19.0 2020-10-27 17:35:54 -04:00
Quincy Morgan
04b3a788f9 Add lint:fix script
Enable no-trailing-space eslint rule
2020-10-23 13:24:44 -04:00
Quincy Morgan
70619d3634 Reset validator whenever reseting the history (close #8108) 2020-10-21 19:30:18 -04:00
Peter Newman
3919ec11b6 Fix a new typo which snuck in 2020-10-05 23:23:16 +01:00
Quincy Morgan
03c32d2f6a Return empty string instead of empty html element for empty text 2020-09-28 15:36:01 -04:00
Quincy Morgan
bbbf401232 Add en fallback in coreLocalizer instead of utilDetect.browserLocales
Include all preferred and fallback langauges in coreLocalizer.localeCodes even if higher-priority ones have 100% string coverage
Fallback to the user's preferred languages instead of directly to English when querying OSM wikibase documentation and Wikidata (re: #7996)
Add `lang` attribute to tag documentation text loaded from OSM wikibase or Wikidata (re: #7963)
2020-09-23 16:15:34 -04:00
Quincy Morgan
7b5df1bc40 Add lang attribute to issue fix labels (re: #7963) 2020-09-22 17:48:35 -04:00
Quincy Morgan
8883c2f36d Fix uiFlash issues
Clean up a few things from prior commit
2020-09-22 12:19:54 -04:00
Quincy Morgan
5435082d9c Revert t function to returning the plain string by default
Add `t.html` function for getting the string with the `lang` attribute
2020-09-22 12:03:29 -04:00
Quincy Morgan
32f8274929 Make t function return a span element with a lang attribute unless html: false is specified in the options (re: #7963)
Update `text` functions to `html` to support inserting the `span` elements
Specify `html: false` for various instances where a `span` is not desired, e.g. `placeholder` and `title` attributes
2020-09-15 21:56:22 -04:00
Quincy Morgan
7aa6c1d1a3 Fix infinite recursion error for en-US 2020-09-15 18:27:26 -04:00
Quincy Morgan
a9979f6534 Fallback to the user's preferred locales instead of immediately to English (close #7996) 2020-09-15 17:56:13 -04:00
Quincy Morgan
7ab9f268d9 Don't fetch the English strings if the preferred locale has 100% coverage (close #7994) 2020-09-15 16:09:08 -04:00
Quincy Morgan
8ecada3b79 Move languageNames and scriptNames data to the individual locale files instead of always loading them via locales.json (re: #7994) 2020-09-15 14:41:56 -04:00
Quincy Morgan
f28d41b44e Localize the format of numbers in translated strings (close #7993) 2020-09-15 11:34:56 -04:00
Quincy Morgan
a1c2b7f73d Support language-specific pluralization (re: #597, #4964) 2020-09-14 17:21:00 -04:00
Quincy Morgan
4050940268 Lazy load photo overlay resources (close #7982) 2020-09-13 11:52:37 -04:00
Quincy Morgan
4b7bc73ef1 Set development version number 2020-09-08 15:20:25 -04:00
Quincy Morgan
3747e0a881 v2.18.5 2020-09-08 15:10:35 -04:00
Peter Newman
4205ca1d07 Fix the seemingly safe spellings found by codespell
Untested, only checked by inspection.

(cherry picked from commit 2c47a11008)
2020-08-10 17:32:37 +01:00
Quincy Morgan
029f58f6e9 Set development version number 2020-07-31 10:34:28 -04:00
Quincy Morgan
1370160bc1 v2.18.4 2020-07-31 10:25:05 -04:00
Quincy Morgan
b3da3d3879 Set development version number 2020-07-22 11:42:27 -04:00
Quincy Morgan
3dec7b3f5e v2.18.3 2020-07-22 11:38:28 -04:00
Quincy Morgan
b3714fac66 Set development version number 2020-07-21 10:27:57 -04:00
Quincy Morgan
b64f0b793c v2.18.2 2020-07-21 10:23:51 -04:00