mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 16:49:40 +02:00
Added support for localization of address fields
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
[
|
||||
{
|
||||
"format": [["number", "street"], ["city", "postcode"]]
|
||||
},
|
||||
{
|
||||
"countryCodes": ["AT", "CH", "DE"],
|
||||
"format": [["street", "number"], ["postcode", "city"]]
|
||||
}
|
||||
]
|
||||
+11054
File diff suppressed because it is too large
Load Diff
+6
-2
@@ -18,7 +18,9 @@ iD.data = {
|
||||
path + 'data/operations-sprite.json',
|
||||
path + 'data/locales.json',
|
||||
path + 'dist/locales/en.json',
|
||||
path + 'data/name-suggestions.json'
|
||||
path + 'data/name-suggestions.json',
|
||||
path + 'data/address-formats.json',
|
||||
path + 'data/countries.json'
|
||||
], d3.json, function (err, data) {
|
||||
|
||||
iD.data = {
|
||||
@@ -37,7 +39,9 @@ iD.data = {
|
||||
operations: data[10],
|
||||
locales: data[11],
|
||||
en: data[12],
|
||||
suggestions: data[13]
|
||||
suggestions: data[13],
|
||||
addressFormats: data[14],
|
||||
countries: data[15]
|
||||
};
|
||||
|
||||
callback();
|
||||
|
||||
Reference in New Issue
Block a user