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

Add a natural language selector to the ontology submission form #314

Merged
merged 6 commits into from
Apr 24, 2024

Conversation

jvendetti
Copy link
Member

This pull request adds a YAML file with the ISO 639-1 language codes, makes the codes available via the Rails config object (Rails.application.config.language_codes), and adds a Select2-based natural language selector to the ontology submission form. Resolves #311.

I'm not totally happy with this implementation, but attempts to modernize / align with AgroPortal by adopting the Tom Select library stalled out. See this issue, and this pull request comment for more details. I'd like to revisit this implementation after I have time to sort out blockers to adopting Tom Select.

@jvendetti jvendetti self-assigned this Apr 24, 2024
@syphax-bouazzouni
Copy link
Contributor

Hello @jvendetti, we used this gem https://github.com/xwmx/iso-639, to provide a list of all iso-639-1 languages, with it you will not need to have a local yaml file. If I understood well your need.

@jvendetti
Copy link
Member Author

Modified the pull request to replace the YAML file containing ISO 639-1 language codes with the iso-639 gem.

@jvendetti jvendetti merged commit aedcaf6 into master Apr 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a natural language selector to the ontology submission form
2 participants