• Document Under Review

Translation Configuration

Warning

This feature is not yet supported. It will be available in a future release

The translation configuration defines supported languages and how to resolve them

To modify the translation configuration, click on projectTools from the Sidebar, then click on Configuration and select Translation Configuration from the list.

Configurations - Open Translation Configuration

Sample

 1<translation-config>
 2
 3  <!-- List of codes for the supported locales -->
 4  <!--
 5  <localeCodes>
 6    <localeCode>en_us</localeCode>
 7  </localeCodes>
 8  -->
 9
10  <!-- The code of the default locale for all new content -->
11  <!--
12  <defaultLocaleCode>en_us</defaultLocaleCode>
13  -->
14
15  <!-- Indicates if the default locale should be used when none of the resolvers can find a locale -->
16  <!--
17  <fallbackToDefaultLocale>true</fallbackToDefaultLocale>
18  -->
19
20  <!-- List of locale resolvers -->
21  <!--
22  <localeResolvers>
23  -->
24  <!-- List of locale resolvers, will be executed in the same order until one returns a locale -->
25    <!--
26    <localeResolver>
27      <type>urlPattern</type>
28      <mappings>
29        <mapping>
30          <pattern>.+/en</pattern>
31          <localeCode>en_us</localeCode>
32        </mapping>
33      </mappings>
34    </localeResolver>
35    <localeResolver>
36      <type>cookie</type>
37    </localeResolver>
38    <localeResolver>
39      <type>header</type>
40    </localeResolver>
41    <localeResolver>
42      <type>groovy</type>
43      <script>/scripts/locale.groovy</script>
44    </localeResolver>
45  </localeResolvers>
46  -->
47
48</translation-config>