mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4868 from kinglozzer/4854-i18n-meta
FIX: Get locale from <html> element for i18n.js (fixes #4854)
This commit is contained in:
commit
4d2340a392
@ -198,7 +198,7 @@ ss.i18n = {
|
||||
var detectedLocale;
|
||||
|
||||
// get by container tag
|
||||
rawLocale = jQuery('body').attr('lang');
|
||||
rawLocale = jQuery('html').attr('lang') || jQuery('body').attr('lang');
|
||||
|
||||
// get by meta
|
||||
if(!rawLocale) {
|
||||
|
Loading…
Reference in New Issue
Block a user