diff --git a/view/Requirements.php b/view/Requirements.php index 253ba239c..b128cf5a2 100644 --- a/view/Requirements.php +++ b/view/Requirements.php @@ -768,6 +768,11 @@ class Requirements_Backend { $files[] = $langDir . i18n::default_locale() . '.js'; $files[] = $langDir . i18n::get_locale() . '.js'; + // If both files don't exist, hard fallback to en_US + if(!Director::fileExists($files[0]) && !Director::fileExists($files[1])) { + $files[] = $langDir . 'en_US.js'; + } + // Stub i18n implementation for when i18n is disabled. } else { if(!$langOnly) $files[] = FRAMEWORK_DIR . '/javascript/i18nx.js';