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
The problem is that Filament Admin has overlapping keys with different headers. For example:
edit-record.title
create-record.title
Because of the translation management architecture and to reduce the number of duplicated keys, we cannot contain different variants of the title key. Therefore, when trying to load them into a Laravel Lang project, we will end up with all title elements translated as View :label, because array_merge overwrites the previous values.
And the final file for translation will look like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The problem is that Filament Admin has overlapping keys with different headers. For example:
Because of the translation management architecture and to reduce the number of duplicated keys, we cannot contain different variants of the
title
key. Therefore, when trying to load them into a Laravel Lang project, we will end up with alltitle
elements translated asView :label
, becausearray_merge
overwrites the previous values.And the final file for translation will look like this:
This is preceded by a code:
Files are read in alphabetical order.
Beta Was this translation helpful? Give feedback.
All reactions