stable

Clone or download

Read-only

refactor: Use gettext directly in js code

Instead of passing translated strings as data- attributes, we now use directly gettext inside invite-buddies modals. This changes is needed if we want to have a better control of pluralized sentences according to sending result (next contributions, stay tuned) Part of story #30021: Invite buddies to my Tuleap project Change-Id: I989ce9c4a584d80ae650ff82941631e73d2faf3a

Modified Files

Name
M build-manifest.json +4 −0 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +0 −6 Go to diff View file
M site-content/pt_BR/LC_MESSAGES/tuleap-core.po +0 −6 Go to diff View file
M src/scripts/main/src/BurningParrot/src/invite-buddies.ts +17 −2 Go to diff View file
M src/scripts/main/src/FlamingParrot/invite-buddies.ts +17 −2 Go to diff View file
M src/scripts/main/src/invite-buddies/__snapshots__/feedback-display.test.ts.snap +0 −4 Go to diff View file
M src/scripts/main/src/invite-buddies/feedback-display.test.ts +18 −8 Go to diff View file
M src/scripts/main/src/invite-buddies/feedback-display.ts +13 −3 Go to diff View file
A src/scripts/main/src/invite-buddies/po/fr_FR.po +19 −0 Go to diff View file
M src/scripts/main/src/invite-buddies/send-notifications.test.ts +14 −5 Go to diff View file
M src/scripts/main/src/invite-buddies/send-notifications.ts +8 −4 Go to diff View file
M src/themes/BurningParrot/templates/invite-buddies-modal.mustache +1 −6 Go to diff View file
M src/themes/FlamingParrot/templates/invite-buddies-modal.mustache +1 −5 Go to diff View file