ideas icon indicating copy to clipboard operation
ideas copied to clipboard

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

Open piljac1 opened this issue 4 years ago • 4 comments

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
  1. 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

piljac1 avatar Oct 04 '20 03:10 piljac1

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

jasonvarga avatar Oct 22 '20 17:10 jasonvarga

Duplicate of #356.

duncanmcclean avatar Nov 02 '20 08:11 duncanmcclean

@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.

piljac1 avatar Nov 04 '20 04:11 piljac1

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

japgroevemaker avatar Nov 20 '23 15:11 japgroevemaker