HomeGuidesAPI Reference
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

setLocale

Defines the locale for a session in Optimizely Campaign.

Type: void

Parameters

NameTypeValue
sessionIdStringID of the session
localeStringA valid ISO language code (ISO-639)

See: http://www.loc.gov/standards/iso639-2/php/code_list.php.

Return values

  • Code structure

    void setLocale(String sessionId, String locale)
    

What’s Next
Did this page help you?