浏览代码

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

jelveh 2 周之前
父节点
当前提交
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({