This commit is contained in:
crazywhalecc
2024-10-02 20:31:58 +08:00
committed by Jerry Ma
parent ef1a9646e4
commit 7d6455034b

View File

@@ -399,6 +399,7 @@ class Framework
if (isset($translations[$k])) { if (isset($translations[$k])) {
$keys = array_keys($properties); $keys = array_keys($properties);
$keys[array_search($k, $keys, false)] = $translations[$k]; $keys[array_search($k, $keys, false)] = $translations[$k];
/* @phpstan-ignore-next-line */
$properties = ($t = array_combine($keys, $properties)) ? $t : $properties; $properties = ($t = array_combine($keys, $properties)) ? $t : $properties;
} }
} }