fix language

This commit is contained in:
j 2023-08-12 16:40:12 +02:00
parent 8760491f35
commit 6fde8de8e5

View file

@ -219,7 +219,13 @@ pandora.ui.home = function() {
var value = "tr"
pandora.UI.set({
locale: value,
page: pandora.user.ui.page == 'home' ? '' : pandora.user.ui.page,
page: '',
find: {
conditions: value === ''
? []
: [{key: '*', value: value, operator: '='}],
operator: '&'
},
section: 'items'
});
pandora.setLocale(value, () => {
@ -241,7 +247,13 @@ pandora.ui.home = function() {
var value = "en"
pandora.UI.set({
locale: value,
page: pandora.user.ui.page == 'home' ? '' : pandora.user.ui.page,
page: '',
find: {
conditions: value === ''
? []
: [{key: '*', value: value, operator: '='}],
operator: '&'
},
section: 'items'
});
pandora.setLocale(value, () => {