Localized text with neutral locale id

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Moderator: uasdknet

Post Reply
User avatar
baldo
Hero Member
Hero Member
Posts: 25
Joined: 19 Nov 2019, 12:15

Localized text with neutral locale id

Post by baldo »

Good afternoon,

how can I create a LocalizedText providing a neutral culture instead of a specific one? i.e. "en" vs "en-US"

Code: Select all

var msg = new LocalizedText("IDS_MSG", "en", "This is a message in english.")

User avatar
baldo
Hero Member
Hero Member
Posts: 25
Joined: 19 Nov 2019, 12:15

Re: Localized text with neutral locale id

Post by baldo »

Looks like that constructor has a bug, while the one with two parameters perfectly works. I just reported it.
If you don't need the ID you are fine, otherwise I guess you need to wait for a fix.

Post Reply