Steps required for the configuration of translations in the customer widget
-
cd into
{your-cx-solution}/kubernetes -
Add translation files inside
pre-deployment/app-translations/customer-widget/i18n/( the translation files can be found in thecim-skeletonproject) -
Mounting the volumes in the customer widget section in core helm-charts
extraVolumes:
- name: ef-widget-translation
configMap:
name: ef-widget-translations-cm
extraVolumeMounts:
- name: ef-widget-translation
mountPath: /usr/share/nginx/html/widget-assets/i18n/
-
Apply config map
kubectl -n expertflow create configmap ef-widget-translations-cm --from-file=pre-deployment/app-translations/customer-widget/i18n/ -
restart the customer widget component
helm upgrade --install --namespace expertflow --create-namespace ef-cx --debug --values helm-values/ef-cx-custom-values.yaml expertflow/cx
For updating the translation file in customer widget
-
cd into
{your-cx-solution}/kubernetes -
make changes in desired file at
pre-deployment/app-translations/customer-widget/i18n/ -
delete the config map
kubectl delete cm ef-widget-translations-cm -n expertflow -
Apply config map
kubectl -n expertflow create configmap ef-widget-translations-cm --from-file=pre-deployment/app-translations/customer-widget/i18n
make sure you are at{your-cx-solution}/kubernetesbefore running the above command -
restart the customer widget component
helm upgrade --install --namespace expertflow --create-namespace ef-cx --debug --values helm-values/ef-cx-custom-values.yaml expertflow/cx