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

Multilingual prefLabels #220

Merged
merged 3 commits into from
Oct 15, 2024
Merged

Multilingual prefLabels #220

merged 3 commits into from
Oct 15, 2024

Conversation

mdorf
Copy link
Member

@mdorf mdorf commented Oct 15, 2024

Implements the ability to annotate prefLabels with the language tag during the missing labels generation process

@mdorf mdorf changed the title Multilingual preflabels Multilingual prefLabels Oct 15, 2024
lang = nil
prefLabel = label
end
prefLabel = label if !prefLabel && lang === Goo.portal_language

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be simplified too

prefLabel ||= label if lang == Goo.portal_language
prefLabel ||= label

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and Goo.portal_language does not exist, it is Goo.main_languages.first.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Goo.portal_language is a change that I implemented in GOO. I plan to create a PR for that shortly.

Copy link

codecov bot commented Oct 15, 2024

Codecov Report

Attention: Patch coverage is 92.85714% with 2 lines in your changes missing coverage. Please review.

Project coverage is 81.08%. Comparing base (812dd78) to head (fbd7548).
Report is 4 commits behind head on develop.

Files with missing lines Patch % Lines
...ion_process/operations/submission_rdf_generator.rb 90.47% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #220      +/-   ##
===========================================
+ Coverage    78.82%   81.08%   +2.25%     
===========================================
  Files           74       74              
  Lines         5375     5244     -131     
===========================================
+ Hits          4237     4252      +15     
+ Misses        1138      992     -146     
Flag Coverage Δ
unittests 81.08% <92.85%> (+2.25%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

3 participants