include localisation masks in GetLocaleInfo()

Description

Could the date, time and currency masks for the current local be included in the GetLocaleInfo() output?

i.e. return the locale specific masks currently in use for LSCurrencyFormat, LSDateFormat, LSDateTimeFormat, LSTimeFormat etc

https://docs.lucee.org/reference/functions/getlocaleinfo.html

this would be really super useful for passing current server locale back down to the client for use in javascript

Attachments

1

Activity

Pothys - MitrahSoft 14 February 2024 at 08:57

I’ve checked this ticket with Lucee version 6.1.0.34-BETA. Now the currency and datetimeformat was successfully shows in GetLocaleInfo() function. I added a testcase for this ticket.

PR : (6.1)

Michael Offner 9 February 2024 at 17:23

Lucee 6.1

Pothys - MitrahSoft 17 June 2019 at 14:32
Edited

As per your said, I've updated the commit with the existing PR. Additionally, Currency code & symbol are grouped into a singe key value. Updated the newly added key value like other existing keys (KeyConstants._keyName).

Zac Spitzer 17 June 2019 at 12:25

looks great… but are those java functions thread safe?

all the other date time formatting other stuff in lucee takes great care to be thread safe

should the keys use KeyConstants i.e like KeyConstants._language ? that was part of feedback from the code review for the GetTimeZoneInfo() changes in LDEV-2126

Pothys - MitrahSoft 17 June 2019 at 12:06

I've added a features like ( Currency_code ( USD ), Currency_symbol ( $ ), date ( Day, Month Date, Year ) and time ( hh:mm:ss ) ) in dump of the getlocaleinfo().

Pull request: https://github.com/lucee/Lucee/pull/698

Fixed

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Fix versions

Affects versions

Priority

Created 14 June 2019 at 09:56
Updated 19 May 2024 at 09:11
Resolved 16 February 2024 at 15:44