From 7b83c1ef9bbd9d3931284ee992d1a16ed302f48b Mon Sep 17 00:00:00 2001 From: neznaika0 Date: Fri, 5 Jul 2024 20:29:07 +0300 Subject: [PATCH] fix: Improve condition --- system/Commands/Translation/LocalizationSync.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Commands/Translation/LocalizationSync.php b/system/Commands/Translation/LocalizationSync.php index b2bff0c1d473..f534f2f0889d 100644 --- a/system/Commands/Translation/LocalizationSync.php +++ b/system/Commands/Translation/LocalizationSync.php @@ -150,7 +150,7 @@ private function process(string $originalLocale, string $targetLocale): void private function mergeLanguageKeys(array $originalLanguageKeys, array $targetLanguageKeys, string $prefix = ''): array { foreach ($originalLanguageKeys as $key => $value) { - $placeholderValue = $prefix === '' ? $prefix . '.' . $key : $key; + $placeholderValue = $prefix !== '' ? $prefix . '.' . $key : $key; if (! is_array($value)) { // Keep the old value