FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Localizing Social Login Button Text in FusionAuth Themes

    Scheduled Pinned Locked Moved
    Frequently Asked Questions (FAQ)
    theme
    1
    2
    2
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wesley
      last edited by

      Our users sign in via Google or Apple accounts. While testing internationalization, we noticed that the social login button text doesn’t change with the selected language. Is there a way to localize the social login buttons for different languages in FusionAuth?

      W 1 Reply Last reply Reply Quote 0
      • W
        wesley @wesley
        last edited by

        Yes, you can localize social login buttons, but it requires customizing your theme.

        In the Theme Helpers file, locate the macro for each IdP button—for example, the Google button macro (starting around line 409). Change the text like this:

        From:

        <div class="text">${identityProvider.lookupButtonText(clientId)?trim}</div>
        

        To:

        <div class="text">${theme.message('google-login')}</div>
        

        Then, define google-login in your Theme → Messages bundles for each supported language. Repeat the same process for the Apple button macro (starting around line 363).

        This allows the social login button text to display localized strings based on the user’s selected language.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post