stable

Clone or download

Read-only

Extract translations from TestPlan SFC as Vue 3

The translations are now extracted using the Vue 3 process (which make possible to use Vue 3 specificities in SFCs without issues). `vue3-gettext` deprecates the usages of the `<translate>` component and of the `v-translate` directive and it's PITA to extract from the templates so we do not even bother. The existing usages are moved to the equivalent translation functions. No functional changes is expected from this contribution. Note that displaying the content in French is currently broken but this unrelated to this change and will be fixed in a dedicated contribution. Part of request #25365: Migrate the TestPlan plugin to Vue 3 Change-Id: Id13c7e631148de4021982667e9bc2f4accf9e17d

Modified Files

Name
M plugins/testplan/build-manifest.json +1 −1 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/BacklogItems/AddTestButtonWithAdditionalActionsMenu.test.ts +1 −0 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/BacklogItems/AddTestButtonWithAdditionalActionsMenu.vue +9 −12 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/BacklogItems/BacklogItemEmptyState.vue +1 −1 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/BacklogItems/BacklogItemErrorState.vue +1 −1 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/BacklogItems/ExportButton.vue +6 −6 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/BacklogItems/ExportError.vue +5 −6 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/BacklogItems/ListOfBacklogItemsHeader.vue +3 −1 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/BacklogItems/TestDefinitions/TestDefinitionCardXrefCategoryStatus.test.ts +2 −8 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/BacklogItems/TestDefinitions/TestDefinitionCardXrefCategoryStatus.vue +16 −16 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/BacklogItems/TestDefinitions/TestDefinitionEmptyState.vue +2 −2 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/BacklogItems/TestDefinitions/TestDefinitionErrorState.vue +3 −1 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/BacklogItems/__snapshots__/AddTestButtonWithAdditionalActionsMenu.test.ts.snap +2 −7 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/Campaigns/CampaignEmptyState.vue +3 −3 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/Campaigns/CampaignErrorState.vue +1 −1 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/Campaigns/CreateCampaignTestSelector.vue +7 −3 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/Campaigns/CreateModal.vue +8 −9 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/Campaigns/GlobalErrorMessage.vue +2 −6 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/Campaigns/ListOfCampaignsHeader.vue +5 −3 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/Campaigns/__snapshots__/CampaignEmptyState.test.ts.snap +2 −6 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/Campaigns/__snapshots__/CampaignErrorState.test.ts.snap +1 −3 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/Campaigns/__snapshots__/CreateModal.test.ts.snap +4 −12 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/Campaigns/__snapshots__/GlobalErrorMessage.test.ts.snap +1 −3 Go to diff View file
M tools/utils/scripts/gettext/file-extractor.js +4 −1 Go to diff View file