Skip to content

Commit a0eff70

Browse files
committed
Only load English as fallback localization
Until we configure a translation management system, English is the only localization with complete coverage including OpenHistoricalMap’s custom strings.
1 parent 7892786 commit a0eff70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/core/localizer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ export function coreLocalizer() {
120120
indexes.forEach((index, i) => {
121121
// Will always return the index for `en` if nothing else
122122
const fullCoverageIndex = _localeCodes.findIndex(function(locale) {
123-
return index[locale] && index[locale].pct === 1;
123+
// Only English contains everything including the OpenHistoricalMap additions, because we haven’t set up a translation management system yet.
124+
// https://github.com/OpenHistoricalMap/issues/issues/470
125+
return locale === 'en' && index[locale] && index[locale].pct === 1;
124126
});
125127
// We only need to load locales up until we find one with full coverage
126128
_localeCodes.slice(0, fullCoverageIndex + 1).forEach(function(code) {

0 commit comments

Comments
 (0)