Hi all, is it possibile to get locale string (en_U...
# suitescript
b
Hi all, is it possibile to get locale string (en_US) from language id ?
b
im not sure what you mean by language id
but you can get the current user's language using:
Copy code
runtime.getCurrentUser().getPreference({ name: "Language" });
b
This is the current user language, but you can configure in general preferences only "English" and use "italian" as user locale. If I do a list filed I can select ongli English, but the value of the field is only a number. I'm tring to obtain en_US or similar
b
you might have to hardcode a lookup if you are making a custom Language List/Record field