Skip to content

Multi Language Support

Harsh B. Bhakta edited this page Jul 14, 2018 · 3 revisions
  • Supported languages: ARABIC, BENGALI, CHINESE_SIMPLIFIED, CHINESE_TRADITIONAL, ENGLISH, FRENCH, GERMAN, GUJARATI, HEBREW, HINDI, INDONESIA, ITALIAN, JAPANESE, KOREAN, PORTUGUESE, RUSSIAN, SPANISH, TURKISH, UKRAINIAN.

  • Support for more languages can be added over time. Check latest list of supported languages at here from ccp_defaultLanguage attribute.

  • Developer can enable Auto-Detect Language feature of CCP.

  • Also, developer might want enable Auto-Detect Country feature.

  • Language will be applied in country selection dialog.

    • Set through xml

      • add app:ccp_defaultLanguage="JAPANESE" to xml layout

         <com.hbb20.CountryCodePicker
          android:id="@+id/ccp"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          app:ccp_defaultLanguage="JAPANESE"  />
    • Programmatically

      • Use changeDefaultLanguage() method.

Contribution

  • Google translator was used to translate the name of countries. These translations might not be accurate. If you find any mistake please report an issue to correct it or send a pull request.
  • If you did not find your language, you can add your language easily and help other developers all around the world. Follow few simple steps to add new language.
Clone this wiki locally