getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.31k stars 168 forks source link

The `info` on section blueprint cannot be translated #3109

Closed salimromadhon closed 3 years ago

salimromadhon commented 3 years ago

Describe the bug
I can't set info into multiple languages like I do on headline.

To Reproduce
Steps to reproduce the behavior:

  1. Install fresh starterkit
  2. Open site/blueprints/section/albums.yml
  3. Change info:
    info:
      *: "{{ page.images.count }} image(s)"
      id: "{{ page.images.count }} gambar"
  4. Visit the panel using user with Bahasa Indonesia language set, you will see the error notice: Invalid value for "info"
  5. If you do the same way to headline, it works

Expected behavior
It should works like headline.

Additional context
The documentation here doesn't help.

Thanks.

afbora commented 3 years ago

This usage for fields, not sections. But we can add this improvement in later versions.

bastianallgeier commented 3 years ago