universal-translator icon indicating copy to clipboard operation
universal-translator copied to clipboard

Translation Parameters order

Open echarilaou opened this issue 3 years ago • 1 comments

Hello,

We have the below case: Translations: EN: Please enter at least {{currency}} {{amount}}: AR: Please enter at least {{amount}} {{currency}}:

Following the docs our translation value look like this EN: Please enter at least {0} {1}: AR: Please enter at least {0} {1}:

At the moment in order to achieve this we have to manually change the order of the parameters in the language is AR. Is there any other way to have parameters in the translation without order being important?

echarilaou avatar Oct 11 '22 10:10 echarilaou

I'm sure there's a way but will require some refactoring.

I wish I could look into this sooner but an busy with other projects ATM.

deankarn avatar Jan 05 '23 16:01 deankarn