Skip to content

feat(clerk-js): Allow localization of text in social buttons when many are listed#3282

Merged
panteliselef merged 1 commit intomainfrom
elef/sdk-1487-text-on-social-buttons-is-not-customizable
Apr 29, 2024
Merged

feat(clerk-js): Allow localization of text in social buttons when many are listed#3282
panteliselef merged 1 commit intomainfrom
elef/sdk-1487-text-on-social-buttons-is-not-customizable

Conversation

@panteliselef
Copy link
Contributor

Description

Before

Screenshot 2024-04-29 at 2 02 21 PM

After

Screenshot 2024-04-29 at 2 01 40 PM
Screenshot 2024-04-29 at 2 01 50 PM

Example code on how to achieve this behaviour

<ClerkProvider
      localization={{
        // This is now supported
        socialButtonsBlockButtonManyInView: 'Join with {{provider}}',
      }}
      appearance={{
        layout: {
          socialButtonsVariant: 'blockButton',
        },
        elements: {
          socialButtons: {
            display: 'flex',
            flexDirection: 'column',
          },
        },
      }}
    >

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@panteliselef panteliselef self-assigned this Apr 29, 2024
@changeset-bot
Copy link

changeset-bot bot commented Apr 29, 2024

🦋 Changeset detected

Latest commit: 1bc9992

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 14 packages
Name Type
@clerk/localizations Minor
@clerk/clerk-js Minor
@clerk/types Minor
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch
@clerk/backend Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/nextjs Patch
@clerk/clerk-react Patch
@clerk/remix Patch
@clerk/clerk-sdk-node Patch
@clerk/testing Patch
@clerk/themes Patch

Not sure what this means? Click here to learn what changesets are.

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

@panteliselef panteliselef merged commit c7d6262 into main Apr 29, 2024
@panteliselef panteliselef deleted the elef/sdk-1487-text-on-social-buttons-is-not-customizable branch April 29, 2024 14:24
@clerk-cookie clerk-cookie mentioned this pull request Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants