Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Custom Event portal and Angular - how to display data from API based on current language / how to know current UI language

(0) ShareShare
ReportReport
Posted on by 112

I am customizing the Event portal for it to display fields that should be bilingual like Event Title and Sessions Titles etc. These custom fields are available through the Events object in Angular.

1 - How can I get the current UI language in Angular? 

2 - Should I be using a pipe to handle language switching or simply put a language condition in the template?

Are there any good resources on customizing the event portal at the Angular level?

Thanks !

  • Nya Profile Picture
    Nya 29,058 on at
    RE: Custom Event portal and Angular - how to display data from API based on current language / how to know current UI language

    Thanks for your sharing.

  • Suggested answer
    HangryMapache Profile Picture
    HangryMapache 112 on at
    RE: Custom Event portal and Angular - how to display data from API based on current language / how to know current UI language

    To get the current UI language you need to use the LabelService:

    this.labelsService.getCurrentLanguageCode();
  • Nya Profile Picture
    Nya 29,058 on at
    RE: Custom Event portal and Angular - how to display data from API based on current language / how to know current UI language

    Hi,

    Please refer to the following article:

    Hide 'Change language' and Sign in' navigation in Dynamics Event Portal — Amey Holden | ABC Enthusiast & Power Platform Specialist

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans