Enabling or disabling languages in Watson Assistant

You can enable or disable some languages by modifying the Assistant Custom Resource.

  1. Change the project to the PROJECT_CPD_INSTANCE namespace where IBM Cloud Pak® for Data and Watson Assistant are installed.

    oc project ${PROJECT_CPD_INSTANCE}
  2. Open the Watson Assistant Custom Resources for editing:

    oc edit wa wa
  3. Modify the languages section by adding or removing languages as required. The English language should always be enabled.

    spec:
      languages:
      - en
      - es
      - pt-br
      - fr
      - it
      - ja
      - de
      - ko
      - ar
      - nl
      - zh-tw
      - zh-cn
      - cs

    For example, to enable only English and Japanese edit the languages section to look like the following:

    spec:
      languages:
      - en
      - ja

    Watson Assistant Operator will reconcile the changes in 15-20 minutes.

  4. To verify that the correct languages are now set, run the following command:

    oc get deploy wa-store -o yaml |grep -iA1 "        - name: LANGUAGES"
  5. The output should show enabled languages that you've selected:

            - name: LANGUAGES
              value: ar,cs,de,en,es,fr,it,ja,ko,nl,pt-br,xx,zh-cn,zh-tw