Azure B2C如何传递文化

标签 azure azure-ad-b2c

我有一个使用 Azure B2C 进行身份验证的本地化网站。我启用了自定义布局只是为了拥有一些品牌,并在我的登录策略(内置)中启用了英语、法语和西类牙语。

我读过这篇文章page多次,我只能假设这一段是答案,但它对我来说毫无意义。

There are two ways to localize your HTML content. One way is to turn on language customization. Enabling this feature allows Azure AD B2C to forward the OpenID Connect parameter, ui-locales, to your endpoint. Your content server can use this parameter to provide customized HTML pages that are language-specific.

首先,上面的语言自定义文本仅链接回同一页面。 其次,下面的句子对我来说只是胡言乱语,而且他们没有提供示例。

最佳答案

Language customization允许将任何页面布局的文本字符串本地化为 36 different languages 之一.

对于内置流程,有关如何本地化这些文本字符串的信息,请参阅 the Customize your strings section .

如果页面布局引用您的 HTML 内容,则可以使用以下任一方法将当前语言从内置流程传递到您的 HTML 内容:

  1. ui_locales 参数:

https://myhtmlcontent.contoso.com/unified.html?ui_locales=fr

  • {Culture:RFC5646} 占位符:
  • https://myhtmlcontent.contoso.com/{Culture:RFC5646}/unified.html

    替换为:

    https://myhtmlcontent.contoso.com/fr/unified.html

    关于Azure B2C如何传递文化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57760022/

    相关文章:

    asp.net - Azure B2C 应用程序角色(图形 api)

    Azure B2C - 自动化 - 启用IEFKeySetGraphApis 功能

    c# - Firefox 没有 Access-Control-Allow-Origin,但适用于 Chrome 和 Safari

    Azure Devops 更改部署文件夹

    Azure - 更改了数据库的管理员密码,现在无法访问数据库

    javascript - 使用 azure-mobile-apps cordova 客户端刷新 token 并注销

    session 超时后 Azure AD B2C 注销

    asp.net-core - 在 Asp.Net Core Web Api 中验证 B2C JWT token

    amazon-web-services - k8s如何 secret 更新特定值

    java.net.URISyntaxException : Illegal character in query at index 177