Linguijs and FilePond format conflict. Can't use { char properly

107 Views Asked by At

In the FilePond we should localize text with the use of attributes. For example labelMaxFileSize="Maximum file size is {filesize}". In the project we are using js-lingui. So actual translation would look like this:

labelMaxFileSize: i18n._(t`Maximum file size is {filesize}`),

Problem: both FilePond and lingui use {} chars to mark variables. And this causing problem. How it may be fixed?

0

There are 0 best solutions below