ideas
ideas copied to clipboard
[Blueprints][Multi-site] Impossible to localize default values
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
- Create a blueprint
- Add a "bard" field
- 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
- 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
Not a bug. Just a feature that doesn't exist yet. Moving to the ideas repo.
Duplicate of #356.
@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.
@jackmcdade Is this idea being build in in the near future? Or is there a work around?