mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX: Get locale from <html> element for i18n.js (fixes #4854)
This commit is contained in:
parent
ea5f72c176
commit
706877d72e
@ -198,8 +198,8 @@ 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) {
|
||||
var metas = document.getElementsByTagName('meta');
|
||||
|
Loading…
Reference in New Issue
Block a user