-
Notifications
You must be signed in to change notification settings - Fork 74
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
feat: improve currency type (append local aware curreny name in label) #174
base: master
Are you sure you want to change the base?
feat: improve currency type (append local aware curreny name in label) #174
Conversation
Makes sense but maybe you can add constants and documentation for these new options as well? If possible a unit test as well? |
I can to. Maybe Enum instead of Constants. But maybe i will find a better way to implement it. |
Another idea is to use placeholders similar to how it works in translations maybe? And we can have:
And then we can have a string instead to define the format/template to use, and it is very easy to extend maybe? (Default could then be |
Is this something you plan to work on @Chris53897 or should we close it? |
The earliest possible time for open source work is end of september for me. |
Thanks @Chris53897 - will leave this open then :) |
#171
I am not sure what is the best way to implement it.
With this implementation it is an opt-in for the longer labels.
Default
With local currency name (german)
Usage:
->add('currency', CurrencyType::class, ['label' => 'foo', 'currency_choices_label_format' => 1])