adding language support for auto arrange word

This commit is contained in:
vineethvk11
2024-03-18 09:29:23 +05:30
parent a2fedfcd97
commit 8ef6167915
2 changed files with 11 additions and 13 deletions

View File

@@ -625,7 +625,7 @@ async function UIDesktop(options){
html: i18n('sort_by'),
items: [
{
html: `Auto Arrange`,
html: i18n('auto_arrange'),
icon: is_auto_arrange_enabled ? '✓' : '',
onClick: async function(){
is_auto_arrange_enabled = !is_auto_arrange_enabled;
@@ -644,9 +644,8 @@ async function UIDesktop(options){
// -------------------------------------------
'-',
{
html: `Name`,
disabled: !is_auto_arrange_enabled,
html: i18n('name'),
disabled: !is_auto_arrange_enabled,
icon: $(el_desktop).attr('data-sort_by') === 'name' ? '✓' : '',
onClick: async function(){
sort_items(el_desktop, 'name', $(el_desktop).attr('data-sort_order'));
@@ -654,9 +653,8 @@ async function UIDesktop(options){
}
},
{
html: `Date modified`,
disabled: !is_auto_arrange_enabled,
html: i18n('date_modified'),
disabled: !is_auto_arrange_enabled,
icon: $(el_desktop).attr('data-sort_by') === 'modified' ? '✓' : '',
onClick: async function(){
sort_items(el_desktop, 'modified', $(el_desktop).attr('data-sort_order'));
@@ -664,9 +662,8 @@ async function UIDesktop(options){
}
},
{
html: `Type`,
disabled: !is_auto_arrange_enabled,
html: i18n('type'),
disabled: !is_auto_arrange_enabled,
icon: $(el_desktop).attr('data-sort_by') === 'type' ? '✓' : '',
onClick: async function(){
sort_items(el_desktop, 'type', $(el_desktop).attr('data-sort_order'));
@@ -674,9 +671,8 @@ async function UIDesktop(options){
}
},
{
html: `Size`,
disabled: !is_auto_arrange_enabled,
html: i18n('size'),
disabled: !is_auto_arrange_enabled,
icon: $(el_desktop).attr('data-sort_by') === 'size' ? '✓' : '',
onClick: async function(){
sort_items(el_desktop, 'size', $(el_desktop).attr('data-sort_order'));
@@ -688,9 +684,8 @@ async function UIDesktop(options){
// -------------------------------------------
'-',
{
html: `Ascending`,
disabled: !is_auto_arrange_enabled,
html: i18n('ascending'),
disabled: !is_auto_arrange_enabled,
icon: $(el_desktop).attr('data-sort_order') === 'asc' ? '✓' : '',
onClick: async function(){
const sort_by = $(el_desktop).attr('data-sort_by')
@@ -699,9 +694,8 @@ async function UIDesktop(options){
}
},
{
html: `Descending`,
disabled: !is_auto_arrange_enabled,
html: i18n('descending'),
disabled: !is_auto_arrange_enabled,
icon: $(el_desktop).attr('data-sort_order') === 'desc' ? '✓' : '',
onClick: async function(){
const sort_by = $(el_desktop).attr('data-sort_by')