Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation Parameters order #30

Open
echarilaou opened this issue Oct 11, 2022 · 1 comment
Open

Translation Parameters order #30

echarilaou opened this issue Oct 11, 2022 · 1 comment

Comments

@echarilaou
Copy link

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?

@deankarn
Copy link
Contributor

deankarn commented Jan 5, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants