I have a template that is only rendered via a script, not through the UI, but we want to use the customer's language preference for printing. Right now, it defaults to English US. I can't hard-code the locale either, since we want it to print in a mix of languages (German, Italian, Japanese).
My hope was to look up the language/locale setting off the customer, getting back a string like de_DE, or it_IT and set the locale in the template that way. However, I can't quite get Netuite to give me that string.