@@ -46,63 +46,63 @@ type OS = "macos" | "windows" | "linux" | "unknown"
4646const MAC_APPS = [
4747 {
4848 id : "vscode" ,
49- label : "VS Code " ,
49+ label : "session.header.open.app.vscode " ,
5050 icon : "vscode" ,
5151 openWith : "Visual Studio Code" ,
5252 } ,
53- { id : "cursor" , label : "Cursor " , icon : "cursor" , openWith : "Cursor" } ,
54- { id : "zed" , label : "Zed " , icon : "zed" , openWith : "Zed" } ,
55- { id : "textmate" , label : "TextMate " , icon : "textmate" , openWith : "TextMate" } ,
53+ { id : "cursor" , label : "session.header.open.app.cursor " , icon : "cursor" , openWith : "Cursor" } ,
54+ { id : "zed" , label : "session.header.open.app.zed " , icon : "zed" , openWith : "Zed" } ,
55+ { id : "textmate" , label : "session.header.open.app.textmate " , icon : "textmate" , openWith : "TextMate" } ,
5656 {
5757 id : "antigravity" ,
58- label : "Antigravity " ,
58+ label : "session.header.open.app.antigravity " ,
5959 icon : "antigravity" ,
6060 openWith : "Antigravity" ,
6161 } ,
62- { id : "terminal" , label : "Terminal " , icon : "terminal" , openWith : "Terminal" } ,
63- { id : "iterm2" , label : "iTerm2 " , icon : "iterm2" , openWith : "iTerm" } ,
64- { id : "ghostty" , label : "Ghostty " , icon : "ghostty" , openWith : "Ghostty" } ,
65- { id : "warp" , label : "Warp " , icon : "warp" , openWith : "Warp" } ,
66- { id : "xcode" , label : "Xcode " , icon : "xcode" , openWith : "Xcode" } ,
62+ { id : "terminal" , label : "session.header.open.app.terminal " , icon : "terminal" , openWith : "Terminal" } ,
63+ { id : "iterm2" , label : "session.header.open.app.iterm2 " , icon : "iterm2" , openWith : "iTerm" } ,
64+ { id : "ghostty" , label : "session.header.open.app.ghostty " , icon : "ghostty" , openWith : "Ghostty" } ,
65+ { id : "warp" , label : "session.header.open.app.warp " , icon : "warp" , openWith : "Warp" } ,
66+ { id : "xcode" , label : "session.header.open.app.xcode " , icon : "xcode" , openWith : "Xcode" } ,
6767 {
6868 id : "android-studio" ,
69- label : "Android Studio " ,
69+ label : "session.header.open.app.androidStudio " ,
7070 icon : "android-studio" ,
7171 openWith : "Android Studio" ,
7272 } ,
7373 {
7474 id : "sublime-text" ,
75- label : "Sublime Text " ,
75+ label : "session.header.open.app.sublimeText " ,
7676 icon : "sublime-text" ,
7777 openWith : "Sublime Text" ,
7878 } ,
7979] as const
8080
8181const WINDOWS_APPS = [
82- { id : "vscode" , label : "VS Code " , icon : "vscode" , openWith : "code" } ,
83- { id : "cursor" , label : "Cursor " , icon : "cursor" , openWith : "cursor" } ,
84- { id : "zed" , label : "Zed " , icon : "zed" , openWith : "zed" } ,
82+ { id : "vscode" , label : "session.header.open.app.vscode " , icon : "vscode" , openWith : "code" } ,
83+ { id : "cursor" , label : "session.header.open.app.cursor " , icon : "cursor" , openWith : "cursor" } ,
84+ { id : "zed" , label : "session.header.open.app.zed " , icon : "zed" , openWith : "zed" } ,
8585 {
8686 id : "powershell" ,
87- label : "PowerShell " ,
87+ label : "session.header.open.app.powershell " ,
8888 icon : "powershell" ,
8989 openWith : "powershell" ,
9090 } ,
9191 {
9292 id : "sublime-text" ,
93- label : "Sublime Text " ,
93+ label : "session.header.open.app.sublimeText " ,
9494 icon : "sublime-text" ,
9595 openWith : "Sublime Text" ,
9696 } ,
9797] as const
9898
9999const LINUX_APPS = [
100- { id : "vscode" , label : "VS Code " , icon : "vscode" , openWith : "code" } ,
101- { id : "cursor" , label : "Cursor " , icon : "cursor" , openWith : "cursor" } ,
102- { id : "zed" , label : "Zed " , icon : "zed" , openWith : "zed" } ,
100+ { id : "vscode" , label : "session.header.open.app.vscode " , icon : "vscode" , openWith : "code" } ,
101+ { id : "cursor" , label : "session.header.open.app.cursor " , icon : "cursor" , openWith : "cursor" } ,
102+ { id : "zed" , label : "session.header.open.app.zed " , icon : "zed" , openWith : "zed" } ,
103103 {
104104 id : "sublime-text" ,
105- label : "Sublime Text " ,
105+ label : "session.header.open.app.sublimeText " ,
106106 icon : "sublime-text" ,
107107 openWith : "Sublime Text" ,
108108 } ,
@@ -160,9 +160,9 @@ export function SessionHeader() {
160160 } )
161161
162162 const fileManager = createMemo ( ( ) => {
163- if ( os ( ) === "macos" ) return { label : "Finder " , icon : "finder" as const }
164- if ( os ( ) === "windows" ) return { label : "File Explorer " , icon : "file-explorer" as const }
165- return { label : "File Manager " , icon : "finder" as const }
163+ if ( os ( ) === "macos" ) return { label : "session.header.open.finder " , icon : "finder" as const }
164+ if ( os ( ) === "windows" ) return { label : "session.header.open.fileExplorer " , icon : "file-explorer" as const }
165+ return { label : "session.header.open.fileManager " , icon : "finder" as const }
166166 } )
167167
168168 createEffect ( ( ) => {
@@ -187,8 +187,10 @@ export function SessionHeader() {
187187
188188 const options = createMemo ( ( ) => {
189189 return [
190- { id : "finder" , label : fileManager ( ) . label , icon : fileManager ( ) . icon } ,
191- ...apps ( ) . filter ( ( app ) => exists [ app . id ] ) ,
190+ { id : "finder" , label : language . t ( fileManager ( ) . label ) , icon : fileManager ( ) . icon } ,
191+ ...apps ( )
192+ . filter ( ( app ) => exists [ app . id ] )
193+ . map ( ( app ) => ( { ...app , label : language . t ( app . label ) } ) ) ,
192194 ] as const
193195 } )
194196
0 commit comments