-
Notifications
You must be signed in to change notification settings - Fork 34
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
i18nUtils - Angular Rewrite #993
Comments
I am not sure this is needed any more. It was primarily used to load the alternate/translated files for the intro. but that was rewritten to standardize on the key/value-based translation. As you point out, the only other place where it is used is in For that, I would suggest changing the format of There should already be code in |
2 thoughts about this:
Once these 2 changes have occurred, we can remove the Angular i18nUtils module |
I agree that we should get rid of I believe (2) is already done. The new onboarding flow (e-mission/e-mission-phone#1032, merged last night) doesn't use any internationalized filenames. For (1), I am not sure if forcing every study/program onto the dynamic label options is the right move. I think we should still have a local fallback if The local fallback can use the same format as the https://github.com/e-mission/nrel-openpath-deploy-configs/tree/main/label_options. In doing so, we won't need internationalized filenames and can remove |
Per @JGreenlee, I will base these changes on |
@JGreenlee and @Abby-Wheelis concerning the design, which do you think would make more sense to have the local fallback (for studies/programs not using OR
OR
OR
I like the (opt. 2) or (opt. 3) the most, because the word default communicates that it is the default/fallback option, whereas example communicates that it is some sort of template. As far as (opt. 2) vs. (opt. 3), they look identical so I don't see a reason why opt. 2 would be better than opt. 3 |
I think Opt. 3 is what was requested a few days ago (at least by my interpretation):
For program/studies that don't want to use dynamic label options and just want to use our defaults, (which may be the majority of program/studies), why implicate an extra network call if we don't need to? |
PR Submitted: e-mission/e-mission-phone#1055 with testing! @JGreenlee and @shankari I asked 2 questions in there, could you review and let me know how you think would be best to proceed? |
Child issue of #977
We need to do React rewrites of all the existing angular modules; i18nUtils is only used in 2 places: Intro screen (depreciated - now we use labels) and trip_confirm_options.json
Additionally, the file only has 2 functions
master
branch@shankari please share your thoughts about this module as it pertains to the rewrite
The text was updated successfully, but these errors were encountered: