在Firebase云端函数中使用toLocaleString格式化货币值

我正在尝试根据node.js中的toLocaleString为firebase云function设置一个double值。 这是我使用的代码:

PriceFormated = Price.toFixed(2).toLocaleString("de-DE", {style: "currency", currency: CurrencySymbol}); console.log('Price:',PriceFormated) 

其结果是:“价格:1984.00”

但应该是:“价格:1.984,00”

作为参考,请查看: http : //droidscript.org/javascript/Global_Objects/Number/toLocaleString().html或https://www.jsman.net/manual/Standard-Global-Objects/Number/toLocaleString

代码中是否有错误,或firebase云function是否按预期工作?