Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translatable form and schemas. #3684

Draft
wants to merge 2 commits into
base: 2.x
Choose a base branch
from
Draft

Translatable form and schemas. #3684

wants to merge 2 commits into from

Conversation

dharizza
Copy link
Contributor

@dharizza dharizza commented Oct 3, 2021

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.

@dafeder
Copy link
Member

dafeder commented May 27, 2022

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

@dafeder dafeder marked this pull request as draft May 15, 2024 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants