-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
lang = nil | ||
prefLabel = label | ||
end | ||
prefLabel = label if !prefLabel && lang === Goo.portal_language |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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.
Good work, this will also fix in our side these issues: |
Codecov ReportAttention: Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Implements the ability to annotate prefLabels with the language tag during the missing labels generation process