parent
95449ebfa0
commit
bdebd0e4aa
@ -0,0 +1,17 @@ |
||||
import 'free-jqgrid'; |
||||
import 'free-jqgrid/css/ui.jqgrid.bootstrap4.css'; |
||||
|
||||
let locale = document.querySelector('html').lang; |
||||
|
||||
const langs = [ |
||||
'ar', 'bg', 'bs', 'ca', 'cn', 'cs', 'da', 'de', 'el', 'en', 'es', 'fa', 'fi', 'fr', 'gl', 'he', 'hr', 'hu', 'id', |
||||
'is', 'it', 'ja', 'kr', 'lt', 'me', 'nl', 'no', 'pl', 'pt-br', 'pt', 'ro', 'ru', 'sk', 'sl', 'sr', 'sv', 'th', 'tr', |
||||
'tw', 'ua', 'vi', |
||||
]; |
||||
|
||||
locale = langs.indexOf(locale) !== -1 ? locale : 'en'; |
||||
|
||||
import( |
||||
/* webpackChunkName: "free-jqgrid/i18n/" */ |
||||
'free-jqgrid/js/i18n/grid.locale-' + locale |
||||
); |
@ -1,7 +0,0 @@ |
||||
import 'free-jqgrid'; |
||||
import 'free-jqgrid/css/ui.jqgrid.bootstrap4.css'; |
||||
|
||||
import( |
||||
/* webpackChunkName: "free-jqgrid/i18n/" */ |
||||
'free-jqgrid/js/i18n/grid.locale-' + window.lang |
||||
); |
Loading…
Reference in new issue