Skip to content

Commit

Permalink
Merge pull request #30 from SkylineGTRS/default-locale
Browse files Browse the repository at this point in the history
add default locale
  • Loading branch information
akalongman authored Aug 2, 2024
2 parents 5782afb + 8da995b commit b6b42e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MultiLang/MultiLang.php
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ public function autoSaveIsAllowed()
*/
public function getLocale()
{
return $this->lang;
return $this->lang ?? $this->config->get('default_locale');
}

/**
Expand Down

0 comments on commit b6b42e4

Please sign in to comment.