【问题标题】:Azure AD B2C language customization adding new line to a string not workingAzure AD B2C 语言自定义向字符串添加新行不起作用
【发布时间】:2022-07-07 05:05:11
【问题描述】:

我的应用程序中有 Azure AD B2C 身份验证,并且我启用了国际化支持。我已经自定义了登录页面,微软提供的语言文件是 json 格式。我需要在我的一些字符串之间添加换行符或换行符,它不起作用。

参考:https://docs.microsoft.com/en-us/azure/active-directory-b2c/language-customization?pivots=b2c-user-flow

我添加了\n\\n,它不起作用。

  {
  "ElementType": "UxElement",
  "ElementId": null,
  "StringId": "forgotpassword_link",
  "Override": true,
  "Value": "Forgot your password? (Vous avez oublié?)"
},
{
  "ElementType": "UxElement",
  "ElementId": null,
  "StringId": "heading",
  "Override": true,
  "Value": "Sign in  \n \\n (Ouverture de session)"
},

有没有办法在我的字符串之间添加断线?

【问题讨论】:

    标签: azure azure-ad-b2c


    【解决方案1】:

    您是否尝试过添加 html 中断标记 <br/> 而不是 \n

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多