Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[Panel] Empty label, placeholder etc. translations when language is not defined #1876
Describe the bug
If the logged in user doesn't use one of the defined languages, this throws the following
If we use an info section instead of an info field in the example above, there is no error message but the info section remains empty.
Similar behaviour happens in case of translated labels, placeholders and probably other properties I haven't tested. The result seems to be always null in those cases. For example, without a label set, Kirby usually falls back to the field key. However, once you define translations and the user selected translation does not exist, Kirby just returns null, not even falling back to the field key.
A second option would be to always fall back to the first defined language.
In case of field labels, falling back to the field key could also be an option.