Skip to content

Commit

Permalink
fix: Improve condition
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 committed Aug 2, 2024
1 parent f5d88a4 commit 75a2e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Commands/Translation/LocalizationSync.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 75a2e51

Please sign in to comment.