Просмотр исходного кода

Use `i18n` for "Share With..."

jelveh 1 неделя назад
Родитель
Сommit
9c14a21fdd
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      src/gui/src/UI/lib/ui_item.js

+ 3 - 2
src/gui/src/UI/lib/ui_item.js

@@ -7,6 +7,7 @@ import UIAlert from '../UIAlert.js'
 import path from "../../lib/path.js"
 import launch_app from "../../helpers/launch_app.js"
 import open_item from "../../helpers/open_item.js"
+import i18n from '../../i18n/i18n.js';
 
 export const add_common_select_menu_items = (menu_items, {
     $selected_items,
@@ -70,7 +71,7 @@ export const add_multiple_select_menu_items = (menu_items, {
     }
     if(!are_trashed){
         menu_items.push({
-            html: 'Share With…',
+            html: i18n('Share With…'),
             onClick: async function(){
                 if(window.user.is_temp && 
                     !await UIWindowSaveAccount({
@@ -349,7 +350,7 @@ export const add_single_select_menu_items = async (menu_items, {
     // -------------------------------------------
     if(!is_trashed && !is_trash){
         menu_items.push({
-            html: 'Share With…',
+            html: i18n('Share With…'),
             onClick: async function(){
                 if(window.user.is_temp && 
                     !await UIWindowSaveAccount({