Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only load English as fallback localization #196

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion modules/core/localizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ export function coreLocalizer() {
indexes.forEach((index, i) => {
// Will always return the index for `en` if nothing else
const fullCoverageIndex = _localeCodes.findIndex(function(locale) {
return index[locale] && index[locale].pct === 1;
// Only English contains everything including the OpenHistoricalMap additions, because we haven’t set up a translation management system yet.
// https://github.com/OpenHistoricalMap/issues/issues/470
return locale === 'en' && index[locale] && index[locale].pct === 1;
});
// We only need to load locales up until we find one with full coverage
_localeCodes.slice(0, fullCoverageIndex + 1).forEach(function(code) {
Expand Down
Loading