Configure the hosts Array

Documentation article about Configure the hosts Array

·3 min read·View Oracle Docs

Configure the hosts Array

Configure the hosts Array

This procedure applies to the Mont Blanc and Denali releases of SCA.

To configure the hosts array:

  1. Follow the steps presented in Set Up NetSuite for Localized Content.

  2. Set up a hosted domain for each language on your site. See Domains for details on how to create new hosted domains.

  3. Set up the SspLibraries module for customization.

    See Develop Your SCA Customization for detailed information.

  4. Open the Configuration.js file in the newly created module.

  5. In the hosts array, define a unique host for each location with the title property.

  6. For each host, define the currencies and languages arrays using the properties in this section.

    Note:

    For detailed information on the hosts array for Mont Blanc and Denali implementations, see Hosts Array Parameters (pre-Vinson).

    For example, say you want to set up a multi-language site with three locations: the United States, South America, and France. For each, you could define specific currencies and languages as shown in the table below:

    Location

    Currencies

    Languages

    United States

    U.S. Dollar

    English

    South America

    U.S. Dollar

    Argentinian Peso

    Uruguayan Peso

    Spanish

    Portuguese

    English

    France

    Euro

    U.S. Dollar

    French

    You set up NetSuite for multiple languages and enable the right languages and currencies, then create hosted domains for each translated language. The locale string must specify the country code and culture code for each language, using ISO standards (ISO 639 and ISO 3166 respectively). For example: en_US or es_ES.

    Here's an example of how your customization might look:

    json
    1, hosts: [
    2 {
    3 title:'United States'
    4 , currencies:[
    5 {
    6 title:'American Dollars'
    7 , code:'USD'
    8 }
    9 ]
    10 , languages:[
    11 {
    12 title:'English'
    13 , host:'en.mysite.com'
    14 , locale:'en_US'
    15 }
    16 ]
    17 }
    18 , {
    19 title:'South America'
    20 , currencies:[
    21 {
    22 title:'American Dollars'
    23 , code:'USD'
    24 }
    25 , {
    26 title:'Peso Argentino'
    27 , code:'ARS'
    28 }
    29 , {
    30 title:'Peso Uruguayo'
    31 , code:'UYU'
    32 }
    33 ]
    34 , languages:[
    35 {
    36 title:'Spanish'
    37 , host:'sa.mysite.dev'
    38 , locale:'es_ES'
    39 }
    40 , {
    41 title:'Portuguese'
    42 , host:'pt.sa.mysite.dev'
    43 , locale:'pt_BR'
    44 }
    45 , {
    46 title:'English'
    47 , host:'en.sa.mysite.dev'
    48 , locale:'en'
    49 }
    50 ]
    51 },
    52 {
    53 title:'French'
    54 , currencies:[
    55 {
    56 title:'Euro'
    57 , code:'EUR'
    58 }
    59 , {
    60 title:'American Dolars'
    61 , code:'USD'
    62 }
    63 ]
    64 , languages:[
    65 {
    66 title:'French'
    67 , host:'fr.mysite.com'
    68 , locale:'fr_FR'
    69 }
    70 ]
    71 }
    72 ]
  7. Deploy the module to your site.

--- Context from https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_3826343010.html ---

To enable your website for localized content:

  1. If setting up your site for multiple languages, verify that the Multi-Language feature is enabled:

    1. In NetSuite, go to Setup > Company > Setup Tasks > Enable Features.

    2. On the Company subtab, check the Multi-Language box.

    3. Click Save.

  2. Verify that all languages available on your site are defined in your Company General Preferences:

    1. Go to Setup > Company > Preferences > General Preferences.

    2. On the Languages subtab, select and add each language you want available in your NetSuite account and on your website.

    3. Click Save.

    Only languages enabled in your Company General

Frequently Asked Questions (4)

Does configuring the hosts array apply to all NetSuite versions?
The procedure for configuring the hosts array specifically applies to the Mont Blanc and Denali releases of SCA.
Do I need to configure hosted domains when setting up the hosts array?
Yes, you need to set up a hosted domain for each language on your site as part of the process for configuring the hosts array. Refer to the domains documentation for more details on creating hosted domains.
What information do I need to define for each host in the hosts array?
For each host in the hosts array, you need to define the 'title', 'currencies', and 'languages'. Additionally, specify the locale string using ISO standards, such as ISO 639 and ISO 3166.
Are there specific modules I need to use for customizing the hosts array in NetSuite?
Yes, you need to set up the SspLibraries module for customization purposes as part of configuring the hosts array. More detailed information can be found in the NetSuite documentation on developing SCA customizations.
Source: Configure the hosts Array Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in General

View all General articles →