How to override UxElement localized string based on a claim value?

Shunmugam, Sugeshkumar 21 Reputation points
In the First page i'm entering the value firtName= World and surname= hello

in the second page i want to show the value in header like: Welcome to World

I want to override {0}. Is this possible, could someone please help me out?

<LocalizedResources Id="api.signup">
    <LocalizedString ElementType="UxElement" StringId="heading">Welcome to {0}</LocalizedString>
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,184 questions
{count} votes