<p>How can i format currency related data in a manner that is culture aware in JavaScript?</p>

[{'answer_id': 51573, 'author': 'sherbang', 'author_id': 5026, 'author_profile': 'https://Stackoverflow.com/users/5026', 'pm_score': 2, 'selected': False, 'text': '<p>Dojo has a <a href="http://api.dojotoolkit.org/jsdoc/dojo/HEAD/dojo.currency.format" rel="nofollow noreferrer">currency formatter</a> that\'s locale aware. </p>\n\n<p>If you don\'t want to include Dojo in your project just for this function, then perhaps you can localize the currency in your back-end?</p>\n'}, {'answer_id': 51681, 'author': 'Christian Hagelid', 'author_id': 202, 'author_profile': 'https://Stackoverflow.com/users/202', 'pm_score': -1, 'selected': True, 'text': '<p>there is a Number.localeFormat function but I\'m not sure it\'s what your after</p>\n\n<p><a href="http://msdn.microsoft.com/en-gb/library/bb310813.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-gb/library/bb310813.aspx</a></p>\n'}, {'answer_id': 14564724, 'author': 'laktak', 'author_id': 52817, 'author_profile': 'https://Stackoverflow.com/users/52817', 'pm_score': 0, 'selected': False, 'text': '<p>Number.toLocaleString (implemented in   JavaScript 1.5, ECMAScript 3rd Edition)</p>\n\n<pre><code>var number = 3500;\nconsole.log(number.toLocaleString()); /* Displays "3,500" in English locale */\n</code></pre>\n\n<p><a href="https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Number/toLocaleString" rel="nofollow">Docs on MDN</a>.</p>\n'}, {'answer_id': 66497239, 'author': 'Hans', 'author_id': 5103859, 'author_profile': 'https://Stackoverflow.com/users/5103859', 'pm_score': 2, 'selected': False, 'text': '<p>So I know this is an old question, but incase anyone else shows up looking for similar answers, in modern JavaScript you can use</p>\n<pre><code>new Intl.NumberFormat(\'de-DE\', { style: \'currency\', currency: \'EUR\' }).format(number)\n</code></pre>\n<p>For more info here is the reference doc.</p>\n<p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat</a></p>\n'}]
['https://Stackoverflow.com/questions/51564', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1360/']