mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-19 17:43:39 +00:00
14 lines
299 B
JavaScript
14 lines
299 B
JavaScript
iD.presets.Field = function(field, id) {
|
|
field = _.clone(field);
|
|
|
|
field.t = function(scope, options) {
|
|
return t('presets.fields.' + id + '.' + scope, options);
|
|
};
|
|
|
|
field.label = function() {
|
|
return field.t('label', {default: field.key});
|
|
};
|
|
|
|
return field;
|
|
};
|