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 UI support for multi-lingual features #318

Open
mdorf opened this issue Jun 12, 2024 · 2 comments
Open

Add UI support for multi-lingual features #318

mdorf opened this issue Jun 12, 2024 · 2 comments

Comments

@mdorf
Copy link
Member

mdorf commented Jun 12, 2024

Add the minimal UI features to support the multi-lingual functionality provided by the backend API, per bmir-radx/radx-project#69.

@mdorf
Copy link
Member Author

mdorf commented Jun 12, 2024

@syphax-bouazzouni, I am working on some of the existing multi-language UI functionality from ontoportal-lirmm/bioportal_web_ui. The initial results look good, except for this strange error. I wonder if you've seen it on your end:

https://github.com/ontoportal-lirmm/bioportal_web_ui/blob/master/app/helpers/internationalisation_helper.rb#L6
https://github.com/ontoportal-lirmm/bioportal_web_ui/blob/master/app/helpers/ontologies_helper.rb#L503

[4] pry(InternationalisationHelper)> args
=> ["ontologies.edit_natural_languages", {:acronym=>"BMO"}]
[5] pry(InternationalisationHelper)> I18n.t(*args)
ArgumentError: wrong number of arguments (given 2, expected 0..1)
from /Users/mdorf/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/i18n-1.14.5/lib/i18n.rb:210:in `translate'

@alexskr
Copy link
Member

alexskr commented Jun 13, 2024

Minimal features:

  • display natural languages on the ontology summary page
  • add drop-down natural language selector for concepts view
  • add language tags when showing text for all languages

done:

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

No branches or pull requests

2 participants