describo / crate-builder-component

A VueJS UI component to build an RO-Crate
MIT License
6 stars 3 forks source link

Add support for class localization via Profile "label" fields #60

Closed beepsoft closed 9 months ago

beepsoft commented 10 months ago

This adds support for new Profile class field "label" as per #53.

For now it is only implemented for the Add/AddControl component.

Added hungarian-profile.json, which has the suggested label and help fields for classes.

marcolarosa commented 10 months ago

Thanks! I'm back on this work next week so i'll have a look at this pull request then.

beepsoft commented 10 months ago

Thanks! This is more of a proof of concept implementation, it may need some more considerations I am not aware of, but it seems to work OK regardless of "label" being provided or not. If label is not provided, it works as before based on the "type" value, which in this implementation I renamed to typeName (type.typeName) as the whole structure that is passed to AddControl is the "type" now.