Description of problem: https://github.com/openshift/console/issues/9748 Follow the guide to enable the localization of my dynamic plugin, then I find it does not work. https://github.com/openshift/enhancements/blob/master/enhancements/console/dynamic-plugins.md#localization After investigation, function HandleI18nResources does not receive the request to process dynamic plugin url. It only receives static plugin related requests. Further investigation shows similar function HandlePluginAssets works well with dynamic plugin. Version-Release number of selected component (if applicable): 4.9 How reproducible: Steps to Reproduce: 1. build a dynamic plugin 2. follow these steps to add localization to the plugin https://github.com/openshift/enhancements/blob/master/enhancements/console/dynamic-plugins.md#localization 3. test deploying and loading the plugin in console Actual results: Plugin strings are not translated. Expected results: Localization of plugin strings should load the plugin locale file. Additional info:
Created attachment 1819317 [details] plugin pesudo translation 1. Build dynamic plugin image following step in https://github.com/openshift/console/tree/master/frontend/dynamic-demo-plugin#docker-image 2. Replace the image in oc-manifest.yaml and then deploy the plugin to the cluster oc apply -f oc-manifest.yaml 3. enable the plugin $ oc get console.operator cluster -o json | jq .spec.plugins [ "console-demo-plugin" ] 4. Visit /test-consumer?pseudolocalization=true&lng=en, we can see Extensions of type Console.flag/Model is pesudo translated Model Flag value and Model Group are also pesudo translated too Moving to VERIFIED 4.9.0-0.nightly-2021-08-30-192239 Let me know if checks are wrong
Steps to reproduce look perfect, thank you!
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:3759