web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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 !

I have the same question (0)
  • Nya Profile Picture
    29,060 on at
  • Suggested answer
    HangryMapache Profile Picture
    112 on at

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

    this.labelsService.getCurrentLanguageCode();
  • Nya Profile Picture
    29,060 on at

    Thanks for your sharing.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 93 Super User 2025 Season 2

#2
TAHER_El_Mehdi Profile Picture

TAHER_El_Mehdi 30

#3
Satyam Prakash Profile Picture

Satyam Prakash 24

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans