-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
ember-intl upgrade side effects #1561
Comments
That's interesting, I'm not reproducing it. It just appears in a bold font. And I used Chromium 70 in Ubuntu. Also if you check the text in translations.js, it has |
@MatthewDorner |
I was poking around in the translations files... Could it be related to the recent work on translations? After pulling in the most recent changes, I ran |
I just realized my previous comment was using code before #1553. Just tried with the most recent code and now I'm reproducing, so yeah that must be it. |
I just went back to commit ee9bcc0 and was able to render the messages with the proper styling. |
Looks like this might be able to fix it: |
There appear to be a few other side-effects of the change to ember-intl:
|
I did a quick test to fix the New Inventory Item message issue using Here is the change in
|
Looks like the warning messages in the console have to do with the 8th language in the list. I was not able to get the The warning message has an Israeli flag and has |
Also we have lost the "default to English for missing translation" behavior, and we're getting different behavior if the translation key itself is missing from the JSON vs. if it is just a empty string, although that could be fixed with a script. Russian has a bunch of empty string translations but Thailand has a lot of missing ones. |
Well none of these things individually seem like they will be too hard to fix. If you'd like to work on it, I will be happy to help. |
Sure, I'd like to work on it! |
I was able to select the top language and see the translations take place. Any special steps to reproduce this one? |
Happens for me on Firefox and Chromium. I think it's because the action only happens when you change the selection. The actual difference is that before, the default selected value would be your current language, and now it's always defaulting to the first one instead: I'll start looking at the navigation bar not being translated issue. Edit: Since the language control is part of the navigation bar, this might just be happening for the same reason the nav bar items aren't being translated. |
Gotcha. I'm looking at the HTML rendering one. |
This is related to my implementation of
|
Missing Translations To be consistent with missing translations we should probably:
What do you think? |
@chadian missing translations use to fall back to English. Is this still possible? |
We added the fall back to English pretty recently, and the change was made here: #1458. I'd prefer keeping it that way since the error message doesn't help those trying to use the software, and we will be missing translations for a while. We don't really need them to show up as warnings during application launch either, since there will be a ton of them. |
Ah yeah, that makes sense. I was just digging through the Changing to: Can you confirm that's the behavior you expect? I've tested it with the Thai locale selected. We would still want to remove all empty strings from the translation files, too. |
@chadian Just tested myself, looks good! |
@MatthewDorner do you want us to open a PR for each task on this issue as we get them done? |
Fewer PRs would be better, these don't look like they'll get too complicated individually. |
However if that makes it more confusing to keep track of who's doing what where, you can make them individually, doesn't really matter to me. |
I have a branch with a fix for:
I can split them into separate PR's though. |
Together is fine if they're already together. |
I've got a branch for the |
Also addressed as part of my #1562 pull request, related to the migration to
Not addressed by my pull request is that translated strings that are set via actions like |
@MatthewDorner Looks like my PR closed the issue, sorry about that. Maybe we can reopen it for the remaining checklist @jackcmeyer has setup and track the remaining issues. Missing translations As a follow up to the question from @MatthewDorner about missing translations in these files I think we will need some sort of tooling. I was thinking we can use
Only missing from I have a few friends that can help out with a few of the missing translations and have reached out already so if we could get a friendlier format we could fill in a bit of what's missing. Urdu font change when switching to |
@chadian and @MatthewDorner I've updated the task list to align with items that have been fixed and merged to master. |
@jackcmeyer I think "unable to select first language" was fixed in my PR: (at least I hope so!) |
@chadian sorry, must have missed this. I've also updated the list after my PR was merged. Last thing to do is the Hebrew translation warnings. |
Yeah that one was fixed. Hebrew translation can be a new issue, as can the issue where some text is not updated when you change the locale. I can make those. You can compare the Urdu text before and after, I'm pretty confident it's not affecting readability, but I'd like to try a little to figure it out. Maybe not make an issue for it yet. As far as missing translations scripts, I think the output from ember-intl where it lists all missing translations is good, but if you think something more advanced would be worth it we can re-open #1523 and work on it there. |
I was trying to get hospitalrun-server working with a current frontend. So I built the frontend with It's the same error whether or not I enable sourcemaps in ember-cli-build.js, though we've had them disabled so far. It works however if I do the build without |
Regarding the above, I think I have it fixed by changing broccoli-serviceworker |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Expected behavior:
Warning message should have no HTML in it.
Actual behavior:
Warning message has HTML in it.
Steps to reproduce:
New Inventory Item Add
OR
New Patient Quick Add
Screenshots (if applicable):
New Inventory Item Add
New Patient Quick Add
OS and Browser:
MacOS, Chrome 70, Firefox, Safari
The text was updated successfully, but these errors were encountered: