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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Jerome22
Resolver I
Resolver 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
Anonymous
Not applicable

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

Anonymous
Not applicable

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. 

Anonymous
Not applicable

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.