mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-12 20:42:37 +02:00
14 lines
289 B
JavaScript
14 lines
289 B
JavaScript
iD.presets.Form = function(form, id) {
|
|
form = _.clone(form);
|
|
|
|
form.t = function(scope, options) {
|
|
return t('presets.forms.' + id + '.' + scope, options);
|
|
};
|
|
|
|
form.label = function() {
|
|
return form.t('label', {default: form.key});
|
|
};
|
|
|
|
return form;
|
|
};
|