-
Notifications
You must be signed in to change notification settings - Fork 216
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
Standardize i18n keys #902
Comments
@andrewtavis I came upon your issue by chance. |
…r further work <!--- Thank you for your pull request! 🚀 --> ### Contributor checklist <!-- Please replace the empty checkboxes [] below with checked ones [x] accordingly. --> - [x] This pull request is on a [separate branch](https://docs.github.com/en/get-started/quickstart/github-flow) and not the main branch --- ### Description <!-- Describe briefly what your pull request proposes to change. Especially if you have more than one commit, it is helpful to give a summary of what your contribution is trying to solve. Also, please describe shortly how you tested that your change actually works. --> - added missing `#` in `"#btn-become-supporter"` - updated test on Landing Page to check this button (was missing) - ran Playwright test to confirm passed ### Related issue <!--- activist prefers that pull requests be related to already open issues. --> <!--- If applicable, please link to the issue by replacing ISSUE_NUMBER with the appropriate number below. --> <!--- Feel free to delete this section if this does not apply. --> - #ISSUE_NUMBER
hi @andrewtavis! I would like to help with this issue, is it still available? |
Hey @jennethydyrova 👋 If you wanted to send along a PR that converts all of the kebab case to snake case, it'd be much appreciated! |
Let me know if there's anything I can do to help :) I'll also send along a commit to this that will make a check to see if the keys can be effectively combined. We did discuss this a bit internally, and feel that the current system is valid as it allows the localization team to easily filter for parts of the app 😊 |
I just wondered if would it be fine if I send all changes in one PR or would it be easier for you to review if I split it to multiple PRs? |
I guess one PR would be easier as that would allow me to plan around it, bring in some others, and then merge it all at once and not need to deal with conflicts soon after that 😊 Thanks so much for asking! |
I've got one more question. According to style guide folder names should be separated by dash
then, for example, |
Glad to have you working on this, @jennethydyrova! Looks like the styleguide needs to be updated as well. Let's use underscores for the whole thing. That was a poor choice by us earlier :) Would you be able to send along an update to the styleguide with this as well? |
yes, sure! 🙂 |
Thank you, @jennethydyrova! |
Closed by #948 🚀 Lots of work to get through this, @jennethydyrova, but with the new workflow we won't have to worry about naming keys anymore except for an identifier at the end for a hint for context. The prior parts of the key are based on the files in which it's used, and the new workflows will suggest corrections for those as we go 😊 Thanks so much for the contribution! |
Thank you, Andrew! While addressing this issue, I noticed that the |
Good catch, @jennethydyrova :) That's likely just a placeholder, but definitely should be removed at some point. Do you want to do a quick PR to fix it? |
yes, sure! do you want this tag to be removed from labels? |
Hmmm, good question :) Let's actually add it in. So this key's only in |
hi, @andrewtavis! all done #966 |
…ssing-key Rename and add missing key to the keys list
Terms
Behavior
Something that came up recently is that the i18n keys are not standardized - i.e. sometimes we have kebab case or snake case. This issue is to check the keys and change them all to either snake case or camel case, with the reason for this being that we want to be able to easily replace full sections of the key.
The text was updated successfully, but these errors were encountered: