You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using I18n::translateCount() or its alias tc() requires the use of arrays in language variables:
'translations' => [
'en' => [
'errors' => ['There are no errors', 'There is { count } error.', 'There are { count } errors.'],
],
// …
],
The panel languages view correctly renders the array:
…but does not allow edition of the entries:
Kirby\Cms\LanguageVariable::value(): Return value must be of type ?string, array returned
Your setup
Kirby 4.5.0
The text was updated successfully, but these errors were encountered:
distantnative
changed the title
Panel languages view does not allow editing array as language variables used with i18n::translateCount
Language view: support for i18n string as arrays (those using translateCountJan 22, 2025
Description
Using
I18n::translateCount()
or its aliastc()
requires the use of arrays in language variables:The panel languages view correctly renders the array:
…but does not allow edition of the entries:
Your setup
Kirby 4.5.0
The text was updated successfully, but these errors were encountered: