Answers.Body: <p>I would use a number field with two floating point values and make it translatable (I think you already did that).</p>
  <p>To format it, you could try <a href="https://craftcms.com/docs/4.x/dev/filters.html#currency" rel="nofollow noreferrer">Craft's currency filter</a>. To change the currency according to locale, you can try the translation filter.</p>
  <pre><code>{{ entry.YOUR_MONEY_FIELD|currency('USD'|t) }}
  {# Output: $1,000,000.00 #}
  </code></pre>
  <pre class="lang-php prettyprint-override"><code>// translations/de/site.php
  &lt;?php
  
  return [
      &quot;USD&quot; =&gt; &quot;EUR&quot;,
  ]
  
  // translations/jp/site.php
  &lt;?php
  
  return [
      &quot;USD&quot; =&gt; &quot;JPY&quot;,
  ]
  </code></pre>
  <p>I never tried it but use the same pattern for date translations. Hope it works.</p>
  <p>P.S. In case this works, you could use the same pattern to translate the text (currency) of your backend field.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-27T11:01:42.190Z
Answers.LastActivityDate: 2023-11-28T16:20:13.387Z
Answers.LastEditDate: 2023-11-28T16:20:13.387Z
Answers.UserDisplayName: Max Strebel
Body: <p>I'm working on a multi-lingual site and we need to output costs for products. This is NOT a Craft Commerce site however. I need to show different costs per site depending on the location and different currencies. It feels like this should be possible to do with the money field as it is a number field with a currency assigned. However you can only change the currency globally on the field settings as far as I can tell...</p>
  <p>Is there any way to allow content editors to change the currency for the money field per site or is the only way to do this with a number field and separate drop down selector and output our own currencies?</p>
  <p>I'm sure this makes sense to be achievable with the money field...maybe I'm missing something obvious!?</p>
  <p>Many thanks!</p>
  
Tags: <craft4>
Title: Money field with dynamic currency selection
ThreadText: # Money field with dynamic currency selection
  
  (Asked by: username_0 on 2023-11-21)
  
  I'm working on a multi-lingual site and we need to output costs for products. This is NOT a Craft Commerce site however. I need to show different costs per site depending on the location and different currencies. It feels like this should be possible to do with the money field as it is a number field with a currency assigned. However you can only change the currency globally on the field settings as far as I can tell...
  
  Is there any way to allow content editors to change the currency for the money field per site or is the only way to do this with a number field and separate drop down selector and output our own currencies?
  
  I'm sure this makes sense to be achievable with the money field...maybe I'm missing something obvious!?
  
  Many thanks!
  
  **Tags:** craft4
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-11-27. Score: 1
  
  I would use a number field with two floating point values and make it translatable (I think you already did that).
  
  To format it, you could try [Craft's currency filter](https://craftcms.com/docs/4.x/dev/filters.html#currency). To change the currency according to locale, you can try the translation filter.
  
  ```
  {{ entry.YOUR_MONEY_FIELD|currency('USD'|t) }}
  {# Output: $1,000,000.00 #}
  
  ```
  
  ```php
  // translations/de/site.php
  <?php
  
  return [
      "USD" => "EUR",
  ]
  
  // translations/jp/site.php
  <?php
  
  return [
      "USD" => "JPY",
  ]
  
  ```
  
  I never tried it but use the same pattern for date translations. Hope it works.
  
  P.S. In case this works, you could use the same pattern to translate the text (currency) of your backend field.
  
  
  ---
  
  