Styling for right-to-left languages in portals

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 2분
  • Localizing a portal for right-to-left languages requires CSS that mirrors the direction of portal pages.

    Service Portal can generate the CSS required to mirror the user interface direction of the portal when the session language is a right-to-left language. The entire hierarchy of existing infrastructure for styling left-to-right languages—the theme, page, widget, and widget instance SCSS—is converted to CSS for right-to-left languages. All directional properties supported by RTLCSS are converted. However, plain CSS files included in any of the theme or widget dependency records, internal CSS, and inline CSS aren’t automatically converted.

    그림 1. Service Portal direction mirrored for Hebrew
    Service Portal user interface direction mirrored with Hebrew as the session language

    You can also provide your own CSS for right-to-left languages to override the automatically generated CSS if you use an external CSS library and you can control the conversion of CSS for right-to-left languages using a variety of methods.

    주:
    Base system portals besides Service Portal (/sp) and custom portals might need additional CSS customization to mirror the direction of a portal for right-to-left languages completely.

    To track how many users view a portal in a right-to-left language, see the PortalPageLoad event in Usage Insights for Service Portal. For more information about available events, see Service Portal events.