Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Jerome22
Advocate I
Advocate I

how to change the locale language in a (pyspark) notebook?

Hi,

 

how can we change the locale language in a notebook, the setlocale function is not working and raising a language unsupported error (no matter the language).

 

Thanks.

 

1 ACCEPTED SOLUTION

the point is to use localized texts in a notebook.

to format date and currencies (etc) in a specific language.

for example, I want to create a calendar table with english and french columns; so the month name will be in english and another column in french.

I can do it using dataflows, but I also test notebooks and see what I can do with them.

it's a limitation without an impact for me for now, but this should be supported by fabric

View solution in original post

4 REPLIES 4
v-nikhilan-msft
Community Support
Community Support

Hi @Jerome22 
Thanks for using Fabric Community.
Currently using locale.setlocale() to change the language of notebook is not supported. But you can change the language for Power BI totally.

vnikhilanmsft_2-1714045548130.png

 


Hope this helps. Please let me know if you have any further questions.

the point is to use localized texts in a notebook.

to format date and currencies (etc) in a specific language.

for example, I want to create a calendar table with english and french columns; so the month name will be in english and another column in french.

I can do it using dataflows, but I also test notebooks and see what I can do with them.

it's a limitation without an impact for me for now, but this should be supported by fabric

Hi @Jerome22 
Currently only three locale settings are supported in Fabric Notebooks:
C
POSIX
en_US.UTF-8

vnikhilanmsft_0-1714414661436.png

Hope this helps. 

Thanks for the feedback @Jerome22 

Appreciate if you could share the feedback on our feedback channel, which would be open for the user community to upvote & comment on. This allows our product teams to effectively prioritize your request against our existing feature backlog and gives insight into the potential impact of implementing the suggested feature.

Feedback Link:  https://ideas.fabric.microsoft.com/


Hope this helps. Please let me know if you have any other questions.

Helpful resources

Announcements
Expanding the Synapse Forums

New forum boards available in Synapse

Ask questions in Data Engineering, Data Science, Data Warehouse and General Discussion.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Update Carousel

Fabric Monthly Update - April 2024

Check out the April 2024 Fabric update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.