cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Hancha
Helper I
Helper I

language of date

Hi, 
I wonder if anyone could explain to me how localization works in powerapps.

 

I´m building a calender component for my company.

I use powerapps studio (as well as my browsers) in English as it suits me more.

The component is supposed to be in the Czech language and here my issue comes.

The date stays in English even when I use "[$-cs-CZ]mmmm yyyy" in the Text function.

 

I came up with a workaround ...I wanted to use a collection as a localization table but components dont seem to support collections...

I´ve been searching the forums here but no luck so far...

 

Thanks a lot

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
RandyHayes
Super User III
Super User III

@Hancha 

Change your text formula to the following:

Text(Now(), "[$-cs-CZ]mmmm yyyy", "cs-CZ")

 

This gives you the translations you are looking for.

 
 

I hope this is helpful for you.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

RandyHayes
Super User III
Super User III

@Hancha 

That actually sounds more like a bug in the localization.  If localized your months are not capitalized, then again, sounds like a problem internal to the Text function.

But, while holding your breath waiting for that to be fixed...you can just use the following formula:

Lower(Text(Now(), "[$-cs-CZ]mmmm yyyy", "cs-CZ"))

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

4 REPLIES 4
RandyHayes
Super User III
Super User III

@Hancha 

Change your text formula to the following:

Text(Now(), "[$-cs-CZ]mmmm yyyy", "cs-CZ")

 

This gives you the translations you are looking for.

 
 

I hope this is helpful for you.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

Thanks a lot for your help @RandyHayes ,

It works nicely.

 

I will have one more question though.

Is there a way to get rid of the Capital letter at the beginning of the month name. In Czech, we do not capitalize months .

RandyHayes
Super User III
Super User III

@Hancha 

That actually sounds more like a bug in the localization.  If localized your months are not capitalized, then again, sounds like a problem internal to the Text function.

But, while holding your breath waiting for that to be fixed...you can just use the following formula:

Lower(Text(Now(), "[$-cs-CZ]mmmm yyyy", "cs-CZ"))

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

Thanks for the workaround!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (64,685)