dkan icon indicating copy to clipboard operation
dkan copied to clipboard

Translatable form and schemas.

Open dharizza opened this issue 3 years ago • 1 comments

Adding support for displaying form in different languages using a particular schema for said language, as part of this I:

  • added support in the SchemaRetriever so we can get the schema for a particular language
  • updated FormBuilder so that it gets the current language and retrieves the schema for it, if no schema is found, the default is used.

QA Steps

  • [ ] Go to /node/add/data the form should work as usual.
  • [ ] Create a new schema for another language in schema/collections, for example dataset.es.json
  • [ ] Enable language modules in your Drupal site and add one extra language, for example spanish
  • [ ] Go to /en/node/add/data the form should look as usual
  • [ ] Go to /es/node/add/data the form should be displaying the data as specified in the dataset.es.json file.

dharizza avatar Oct 03 '21 01:10 dharizza

@dharizza - are you still interested in working on this? Would you want to update the branch and get tests passing?

dafeder avatar May 27 '22 14:05 dafeder