<p>It's not possible to have different defaults per locale with the Table field type. Also keep in mind that the content from the first locale you edit is copied over to all other locales on the first save.</p>

<p>But how about using numbers for the months in the table and to show the full month names in your templates get them from <code>craft.i18n.getLocaleData</code>:</p>

<pre><code>{% for row in myTableField %}
    &lt;li&gt;
        {{ craft.i18n.getLocaleData().getMonthName(row.col1) }}:
        {{ row.col2 }}
    &lt;/li&gt;
{% endfor %}
</code></pre>

<p>Another way would be to use the <code>date</code> filter:</p>

<pre><code>{{ ('2015-' ~ row.col1 ~ '-1')|date('F') }}
</code></pre>

CC BY-SA 3.0
2015-08-18T14:41:36.170Z
Ah thats not a bad idea actually that... I'm still looking into how best to use fields to their best scenario, so this could be a good way to look at it.. thanks .
Etheya
CC BY-SA 3.0
2015-08-18T12:55:07.677Z
2015-08-18T12:55:07.677Z
carlcs
<p>I have a field in a site I'm creating which is weather and uses a TABLE field in order to enter the MONTH, TEMP, RAIN etc etc. Im using 2 locales within the site, EN and FR... </p>

<p>Initially I've setup the default values for the MONTH to include JANUARY > DECEMBER which is great, i don't really want the client to have to re-enter this information each time. But is it then possible to set the DEFAULT french values for this field too? </p>

<p>Cant see to find a way around this... </p>

<p>B.</p>

<field>
Default values when using 2 locales
# Default values when using 2 locales

(Asked by: username_0 on 2015-08-18)

I have a field in a site I'm creating which is weather and uses a TABLE field in order to enter the MONTH, TEMP, RAIN etc etc. Im using 2 locales within the site, EN and FR...

Initially I've setup the default values for the MONTH to include JANUARY > DECEMBER which is great, i don't really want the client to have to re-enter this information each time. But is it then possible to set the DEFAULT french values for this field too?

Cant see to find a way around this...

B.

**Tags:** field


---

## 1 answers

### Answer by username_1 on 2015-08-18. Score: 2

It's not possible to have different defaults per locale with the Table field type. Also keep in mind that the content from the first locale you edit is copied over to all other locales on the first save.
But how about using numbers for the months in the table and to show the full month names in your templates get them from craft.i18n.getLocaleData:
{% for row in myTableField %}
    
        {{ craft.i18n.getLocaleData().getMonthName(row.col1) }}:
        {{ row.col2 }}
    
{% endfor %}

Another way would be to use the date filter:
{{ ('2015-' ~ row.col1 ~ '-1')|date('F') }}

> **Comments:**
> **username_0**: Ah thats not a bad idea actually that... I'm still looking into how best to use fields to their best scenario, so this could be a good way to look at it.. thanks .  

---

