Closed shawnbot closed 3 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/sfds/formio-sfds/oycwarkl8
✅ Preview: https://formio-sfds-git-translation-fixes.sfds.vercel.app
Size Change: +20 B (0%)
Total Size: 91.9 kB
Filename | Size | Change | |
---|---|---|---|
dist/formio-sfds.standalone.js |
68.2 kB | +20 B (0%) |
This PR adds some more test coverage to our template translation calls and adds missing translations to radio (and "selectboxes") component item labels. This was simply an oversight on my part, and I'd like to follow this up with tests that cover other component templates I might've missed.
150 is related because I've noticed in some cases (I'm still not sure which), the validation error message translations break and we end up with keys like
required
orpattern
rather than the default translations. The generic string tests are meant to catch if we're overwriting our generic string translations fromsrc/i18n/*.json
when passing in custom translations, which appears not to be the case.