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

support cognito's managed login localization with lang attribute #14040

Open
2 tasks
josefaidt opened this issue Nov 26, 2024 · 2 comments
Open
2 tasks

support cognito's managed login localization with lang attribute #14040

josefaidt opened this issue Nov 26, 2024 · 2 comments
Labels
Auth Related to Auth components/category feature-request Request a new feature pending-maintainer-response Issue is pending a response from the Amplify team.

Comments

@josefaidt
Copy link
Contributor

Is this related to a new or existing framework?

No response

Is this related to a new or existing API?

No response

Is this related to another service?

No response

Describe the feature you'd like to request

Amazon Cognito released support for localization for a few languages. It would be nice to optionally force the locale when using signInWithRedirect

https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-managed-login.html#managed-login-localization

Describe the solution you'd like

type Language =
  /** German */
  "de" |
  /** English */
  "en" |
  /** Spanish */
  "es" |
  /** ... others */
  "..."

interface AuthSignInWithRedirectInput {
  customState?: string
  options?: {
    preferPrivateSession?: boolean
    lang?: Language
  }
  provider?: AuthProvider | {
    custom: string
  }
}
import { signInWithRedirect } from "aws-amplify/auth"

// force spanish
signInWithRedirect({
  options: {
    lang: "es",
  }
})

Describe alternatives you've considered

n/a

Additional context

No response

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change
@github-actions github-actions bot added pending-triage Issue is pending triage pending-maintainer-response Issue is pending a response from the Amplify team. labels Nov 26, 2024
@HuiSF HuiSF added feature-request Request a new feature Auth Related to Auth components/category labels Nov 26, 2024
@github-actions github-actions bot removed the pending-triage Issue is pending triage label Nov 26, 2024
@HuiSF
Copy link
Member

HuiSF commented Nov 26, 2024

Thanks for sending this feature request, we will look into it.

@github-actions github-actions bot removed the pending-maintainer-response Issue is pending a response from the Amplify team. label Nov 26, 2024
@dinhtuanan
Copy link

dinhtuanan commented Dec 9, 2024

Thanks for sending this feature request, we will look into it.

@HuiSF

I am also trying to signInWithRedirect with parameter lang=de.

I saw a discussion like this
#13861
#13892
Is it valid?

I wonder when the signInWithRedirect feature with custom query will be officially released?. It would be great if you could give me a hint.

Thank you

@github-actions github-actions bot added the pending-maintainer-response Issue is pending a response from the Amplify team. label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auth Related to Auth components/category feature-request Request a new feature pending-maintainer-response Issue is pending a response from the Amplify team.
Projects
None yet
Development

No branches or pull requests

3 participants