console icon indicating copy to clipboard operation
console copied to clipboard

CONSOLE-3284: SPIKE: Transform namespaces from old i18next format into the new one

Open cajieh opened this issue 3 years ago • 11 comments

cajieh avatar Aug 30 '22 16:08 cajieh

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: cyril-ui-developer Once this PR has been reviewed and has the lgtm label, please assign kyoto for approval by writing /assign @kyoto in a comment. For more information see:The Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

openshift-ci[bot] avatar Aug 30 '22 16:08 openshift-ci[bot]

cc @KevinFCormier

spadgett avatar Aug 31 '22 17:08 spadgett

/retest-required

cajieh avatar Sep 06 '22 16:09 cajieh

/retest

cajieh avatar Sep 08 '22 18:09 cajieh

Have we confirmed that transformNamespace doesn't break plugins already using the new plural format?

spadgett avatar Sep 08 '22 19:09 spadgett

Thanks @cyril-ui-developer. Should we run the transformation on the other language json files as well to clean those up?

How does this change the po files that we send to the globalization team? I am curious if this breaks translation memory for anything that uses plurals and if the translators will have enough context to understand what _one and _other means in the message keys.

@spadgett No, I don't think we need to run the transformation to clean up non-en languages. It seems they don't use _plural suffix for pluralization. However I don't really understand how non-en plural works. https://github.com/openshift/console/blob/master/frontend/public/locales/ja/public.json#L447

I think we need to reach out to localization team on the po files concern. I will check with Terry.

cajieh avatar Sep 08 '22 19:09 cajieh

Have we confirmed that transformNamespace doesn't break plugins already using the new plural format?

@spadgett I tested by running the transformNamespace on all locales including public, and it didn't fail if the messages were already in the new format. However I will double check by building a dynamic plugin demo image with a new format.

cajieh avatar Sep 08 '22 20:09 cajieh

/retest

cajieh avatar Sep 12 '22 11:09 cajieh

/retest

cajieh avatar Sep 16 '22 14:09 cajieh

/retest

cajieh avatar Sep 30 '22 14:09 cajieh

@cyril-ui-developer: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-gcp-console 15a1c14c47b1cfb9e30b2b8dc0a43c9608cdd748 link true /test e2e-gcp-console
ci/prow/frontend 15a1c14c47b1cfb9e30b2b8dc0a43c9608cdd748 link true /test frontend

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

openshift-ci[bot] avatar Sep 30 '22 17:09 openshift-ci[bot]

Closing this PR. See the follow on PR

cajieh avatar Oct 27 '22 16:10 cajieh