statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
32 stars 1 forks source link

[Blueprints][Multi-site] Impossible to localize default values #371

Open piljac1 opened 4 years ago

piljac1 commented 4 years ago

Bug Description

I'm currently trying to prefill some inputs, as well as prefilling a replicator with default set entries. Both default behaviors work fine as monolingual. For example, if I set a "bard" field type's default to "test", then "test" is output within the field. Also, if I set default entries for my replicator, I can see all sections added with their respective default values. However, I haven't found a way to localize those default values (nor in the documentation or by testing multiple things).

How to Reproduce

  1. Create a blueprint
  2. Add a "bard" field
  3. Try the following in the YAML blueprint file to localize the default value
    default:
    en: This is my EN default value
    fr: This is my FR default value
  4. It doesn't work

Extra Detail

Environment

Statamic 3.0.14 Pro Laravel 7.28.1 PHP 7.4.3 No addons installed

Install method (choose one): Fresh install from statamic/statamic

jasonvarga commented 4 years ago

Not a bug. Just a feature that doesn't exist yet. Moving to the ideas repo.

duncanmcclean commented 4 years ago

Duplicate of #356.

piljac1 commented 4 years ago

@damcclean Not the same idea. The idea you referenced is about having the possibility to set a default value via the blueprint editor. My idea is to make default values localizable.

japgroevemaker commented 12 months ago

@jackmcdade Is this idea being build in in the near future? Or is there a work around?