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

added to_currency function to LiquidJS step #157

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

robinvanderburght
Copy link

to_currency added to LiquidJS
This is missing in the LiquidJS NPM package
Formatting is exactly the same as Classic Gen syntax

to_currency added to LiquidJS
This is missing in the LiquidJS NPM package
Formatting is exactly the same as Classic Gen syntax
Added to_currency function
) {
fractionDigits = fractionDigits || 2;
decimalSeparator = decimalSeparator || '.';
thousandSeparator = thousandSeparator || null;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you have to do ?? 2 ect otherwise if you fill in 0 it will override it with 2
(I think it is the same as with the '.' and empty string)

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

Successfully merging this pull request may close these issues.

2 participants