Skip to content
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

fix(auth page): i18n key in register page for "haveAccount" #5816 #5914

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

keremilhan
Copy link

@keremilhan keremilhan commented May 3, 2024

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

What is the current behavior?

Register pages use login pages' key for "haveAccount". => pages.login.buttons.haveAccount

What is the new behavior?

Register pages are now using register pages' key for "haveAccount". => pages.register.buttons.haveAccount

fixes # (issue)
#5816

Notes for reviewers

@keremilhan keremilhan requested a review from a team as a code owner May 3, 2024 20:38
Copy link

changeset-bot bot commented May 3, 2024

⚠️ No Changeset found

Latest commit: 9de718b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@alicanerdurmaz
Copy link
Member

Hello @keremilhan, thanks for the PR 🚀

This bug has been around for 1 year. Unfortunately, if we do this Fix, it becomes a breaking change and we need to release a Major release. It would be inefficient to release a major just for this.

Alternatively, we can do something like this:

{translate("pages.register.buttons.haveAccount") ?? translate(
                "pages.login.buttons.haveAccount",
                "Have an account?",
)}

or

{
  translate(
    "pages.register.buttons.haveAccount",
    translate("pages.login.buttons.haveAccount", "Have an account?"),
  );
}

I haven't tested if these codes work or not, I will test them when I have time. What I mean is that we need to somehow support this key "pages.login.buttons.haveAccount" in order not to break the application of users who are currently using Refine, and this should work in different i18n libraries.

@keremilhan
Copy link
Author

Hi @alicanerdurmaz, thanks for your quick reply.

I understand the situation very well. If there is something I can do as a fresh contributor, I would be glad to help. I will be around to solve the issues with the "good first issue" tag :)

@alicanerdurmaz
Copy link
Member

@keremilhan Thanks for improving Refine.

If you want to continue working on this, please write something in the issue post (ex: I want to work on this) and I will assign you this issue.

@alicanerdurmaz
Copy link
Member

Hello again @keremilhan, will you be able to find time to continue with the PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants