developer

International support

This section discusses Android Search SDK support for internationalization:

Language Support

The Search SDK support languages codes in addition to the default, which is United States English (en-US). To support to a specific language, you should add resConfigs to your build.gradle. For example, if you want to support en-US and de-DE, you should update your build.gradle like this:

Example:

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        minSdkVersion 15
        targetSdkVersion 19
        resConfigs "en-rUS", "de-rDE"
    }
}

Resources shrink automatically through the build system. For more information, see http://tools.android.com/tech-docs/new-build-system/resource-shrinking.

International support matrix

Some Search SDK features are not available on all locales. For example, the local vertical (or nearby tab) is only available on en-US. Here is a complete feature flag matrix by locale:

Locale Web Vertical Image Vertical Video Vertical Local Vertical
da-DK yes yes yes no
de-AT yes yes yes no
de-CH yes yes yes no
de-DE yes yes yes no
el-GR yes no no no
en-AE yes yes yes no
en-AU yes yes no no
en-BH yes yes yes no
en-CA yes yes yes no
en-DJ yes yes yes no
en-DZ yes yes yes no
en-EG yes yes yes no
en-GB yes yes yes no
en-HK yes yes yes no
en-IE yes yes yes no
en-IN yes yes yes no
en-IQ yes yes yes no
en-JO yes yes yes no
en-KM yes yes yes no
en-KW yes yes yes no
en-LB yes yes yes no
en-LY yes yes yes no
en-MA yes yes yes no
en-MR yes yes yes no
en-MY yes yes yes no
en-NZ yes yes no no
en-OM yes yes yes no
en-PH yes yes yes no
en-PS yes yes yes no
en-QA yes yes yes no
en-SA yes yes yes no
en-SG yes yes yes no
en-SO yes yes yes no
en-TH yes yes yes no
en-TN yes yes yes no
en-TW yes yes yes no
en-US yes yes yes yes
en-YE yes yes yes no
en-ZA yes yes yes no
es-AR yes yes yes no
es-BO yes yes yes no
es-CL yes yes yes no
es-CO yes yes yes no
es-CR yes yes yes no
es-DO yes yes yes no
es-EC yes yes yes no
es-ES yes yes yes no
es-GT yes yes yes no
es-HN yes yes yes no
es-HT yes yes yes no
es-MX yes yes yes no
es-NI yes yes yes no
es-PA yes yes yes no
es-PE yes yes yes no
es-PR yes yes yes no
es-PY yes yes yes no
es-SV yes yes no no
es-US yes yes yes no
es-UY yes yes yes no
es-VE yes yes yes no
fi-FI yes yes no no
fr-BL yes yes yes no
fr-CA yes yes yes no
fr-CH yes yes yes no
fr-FR yes yes yes no
fr-GF yes yes yes no
fr-GP yes yes yes no
fr-MF yes yes yes no
fr-MQ yes yes yes no
id-ID yes yes yes no
it-CH yes yes yes no
it-IT yes yes yes no
nb-NO yes yes no no
nl-NL yes yes no no
pl-PL yes no no no
pt-BR yes yes yes no
ro-RO yes no no no
ru-RU yes yes no no
sv-SE yes yes no no
th-TH yes yes yes no
tr-TR yes no no no
vi-VN yes yes yes no
zh-Hant-HK yes yes yes no
zh-Hant-TW yes yes yes no