-
Notifications
You must be signed in to change notification settings - Fork 4
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
Use camelCase for string keys #290
Comments
Thanks @pixelzoom, I agree. It's very strange title casing in the tree like this. @jbphet please use camel case. |
I'm a little concerned that changing some of these will impact existing translations -- for Greenhouse Effect, and Molecules and Light. So while this would be easy for me to do, I'm going to defer to @jbphet. |
Oh, good point @pixelzoom. I don't think this is worth breaking translations. Might be best to just leave this as-is and be more careful of casing moving forward. |
Noting that this issue is related to this code review item for #331:
|
@jbphet to answer your questions...
I have no objection to things like
These strings will get stripped out during a build, so it's not an issue. |
Just above @arouinfar said, "I have no objection to things like |
In greenhouse-effect-strings_en.json, there are quite a few string keys that violate PhET's camelCase convention, see below. Why the deviation from convention? This is unlikely to pass code review, see https://github.com/phetsims/phet-info/blob/master/checklists/code-review-checklist.md#internationalization. And they make the Studio tree look a bit odd, see screenshot below.
Recommended to change these to camelCase. E.g. `controlPanel.carbonMonoxide.
The text was updated successfully, but these errors were encountered: