stable

Clone or download

Read-only

Make possible to use vue-gettext inside a <script setup> tag

A small helper has been introduced to help us call vue-gettext methods. The gettext extraction is also capable to handle it. Part of request #25317 Demonstrate how to use Composition API in Vue 2 app Change-Id: Ie2272ec6035e6c951db56c2b0a93209d3823906c

Modified Files

Name
M plugins/testplan/jest.config.js +4 −0 Go to diff View file
M plugins/testplan/package.json +1 −0 Go to diff View file
M plugins/testplan/pnpm-lock.yaml +2 −0 Go to diff View file
M plugins/testplan/scripts/test-plan/src/components/Campaigns/CampaignCard.vue +45 −50 Go to diff View file
M plugins/testplan/webpack.common.js +6 −0 Go to diff View file
A src/scripts/lib/vue2-gettext-composition-helpers/.gitignore +1 −0 Go to diff View file
A src/scripts/lib/vue2-gettext-composition-helpers/README.md +16 −0 Go to diff View file
A src/scripts/lib/vue2-gettext-composition-helpers/jest.config.js +26 −0 Go to diff View file
A src/scripts/lib/vue2-gettext-composition-helpers/package.json +24 −0 Go to diff View file
A src/scripts/lib/vue2-gettext-composition-helpers/pnpm-lock.yaml +21 −0 Go to diff View file
A src/scripts/lib/vue2-gettext-composition-helpers/src/index.ts +45 −0 Go to diff View file
A src/scripts/lib/vue2-gettext-composition-helpers/src/shims.d.ts +35 −0 Go to diff View file
A src/scripts/lib/vue2-gettext-composition-helpers/tsconfig.json +7 −0 Go to diff View file
A src/scripts/lib/vue2-gettext-composition-helpers/vite.config.ts +40 −0 Go to diff View file
M tools/utils/scripts/gettext/file-extractor.js +15 −2 Go to diff View file