formio / formio.js

JavaScript powered Forms with JSON Form Builder
https://formio.github.io/formio.js
MIT License
1.83k stars 1.04k forks source link

FIO-7936: showCounter messages not translating #5655

Closed ZenMasterJacob20011 closed 1 week ago

ZenMasterJacob20011 commented 1 week ago

Link to Jira Ticket

https://formio.atlassian.net/browse/FIO-7936

Description

What changed?

Previously, formio.js did not translate the counter message when you had showCharCount and showWordCount enabled. This PR replaces this behavior by adding a translations for showCharCount and showWordCount.

Why have you chosen this solution?

This allows for users to override the the translation by adding the typeRemaining and typeCount to the i18n options.

Dependencies

N/A

How has this PR been tested?

I added automated tests to test translation and manually tested

Checklist: