-
Notifications
You must be signed in to change notification settings - Fork 1
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
Mimir 1849 endre punktum til desimaltegn tooltip engelske highchart #2097
Mimir 1849 endre punktum til desimaltegn tooltip engelske highchart #2097
Conversation
changed decimalPoint from " , " to " . " in en version changed download text from nb to en (still need fix for nb to nn)
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.
I suggest only including the translated phrases in the highchart-lang-en file to avoid duplication, and to then merge the two into a new json object when defining the english phrases if all the other phrases are intended to be in norwegian for english pages.
Alternatively, if the default language for highcharts is english then we can consider dropping the highcharts-lang-en.json file and only set accessibility options when the chart has to be translated to norwegian. Or keep the highchart-lang-en file with only the necessary english overwrites/rephrasing.
Also, don't forget to apply the changes to the Highmap and nameSearch components as well.
I have deleted highmap-lang-en.json and opted for another solution, where the default highcharts language is used for for the en version of the site and the accessibilityLang file is used for nb version, I also added the fix for nameSearch, so that the decimalPoints for the graphs are correct for each language, as well as the download-dropdown text, (mimir-1849 og mimir-1851) - also tested that voice-over works correctly |
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.
updated code fix, and changed nameSearch.ts to return "nb", instead of "no"
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.
Looks good! Good job 🌟 You could probably also get rid of the commented out code before merge 😊
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Fix for mimir-1849 og mimir-1851