Skip to content

Commit

Permalink
Merge fallback locales in lizDict
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Jan 14, 2025
1 parent e61dd4b commit 6e33940
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lizmap/modules/view/controllers/translate.classic.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public function index()
}

$data = LocalesLoader::getLocalesFrom('view~dictionnary', $lang);
$fallback = LocalesLoader::getLocalesFrom('view~dictionnary', \jApp::config()->fallbackLocale);
$data = array_merge($fallback, $data);
$rep->content = 'var lizDict = '.json_encode($data).';';

return $rep;
Expand Down

0 comments on commit 6e33940

Please sign in to comment.