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

Build MLS Asset Generator util #382

Closed
11 tasks done
vincent-karuri opened this issue Mar 12, 2020 · 1 comment · Fixed by #383
Closed
11 tasks done

Build MLS Asset Generator util #382

vincent-karuri opened this issue Mar 12, 2020 · 1 comment · Fixed by #383
Assignees

Comments

@vincent-karuri
Copy link
Contributor

vincent-karuri commented Mar 12, 2020

  • Ensure all essential JSON form traversal utils are accessible (can be borrowed from com.vijay.jsonwizard.utils.FormUtils and org.smartregister.util.JsonFormUtils).
  • Define globally translatable widget fields e.g. text, label, v_required.err etc.
  • Provide an interface through which factories can define additional fields to be translated.
  • Get all widgets in a JSON form stepwise and for each widget, replace all the translatable fields with an interpolation based on form name, step, widget key and translatable field name.
  • Generate and save default translations property file
  • Append property file name to interpolated JSON form
  • Save interpolated form
  • Write tests to ensure an interpolated form can be transformed back into the original form
  • Consider checkbox and radio button widgets
  • Add documentation for the tool and for form mls configuration
  • Support custom widget field translations
@vincent-karuri vincent-karuri changed the title Add form interpolation util Build form interpolation util Mar 12, 2020
@vincent-karuri vincent-karuri self-assigned this Mar 16, 2020
@vincent-karuri vincent-karuri changed the title Build form interpolation util Build MLS Asset Generator util Mar 20, 2020
@vincent-karuri
Copy link
Contributor Author

vincent-karuri commented Mar 23, 2020

image

JsonForm MLS Asset Generator Android Studio sample configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant