GetUserLanguages

Overview

Returns a string array of locale codes associated with a user browser. You can use this information to send language- and country-appropriate content or formatting to a microsite or landing page. This function performs correctly only within a web context.

Syntax

GetUserLanguages()

Example

<script runat="server">
     var langs = Platform.Request.GetUserLanguages();
     var defaultLangs = langs[0];
</script>
Last Updated: Jun 8, 2021