Skip to content

Commit 3e74955

Browse files
committed
Move search-in-results localization key to common translations and update usages
- extract parent folder selection to `apps/editor/src/utils` (put translations in `apps/editor/src/i18n/translations/utils` - move feature.search-files.search-in-results to `apps/editor/src/i18n/translations/common.ts`
1 parent 8306158 commit 3e74955

5 files changed

Lines changed: 21 additions & 21 deletions

File tree

‎apps/editor/src/commands/select-clipboard-paths-command.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export const select_clipboard_paths_command = (
133133
}
134134
const search_button = {
135135
iconPath: new vscode.ThemeIcon('search'),
136-
tooltip: t('feature.search-files.search-in-results')
136+
tooltip: t('common.search-in-results')
137137
}
138138

139139
quick_pick.buttons = [search_button, close_button]

‎apps/editor/src/features/search-files/utils/prompt-for-intelligent-search-results.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const prompt_for_intelligent_search_results = async (params: {
5454
}
5555
const search_in_results_button = {
5656
iconPath: new vscode.ThemeIcon('search'),
57-
tooltip: t('feature.search-files.search-in-results')
57+
tooltip: t('common.search-in-results')
5858
}
5959

6060
const quick_pick_items = await Promise.all(

‎apps/editor/src/features/search-files/utils/prompt-for-search-results.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const prompt_for_search_results = async (params: {
3232
}
3333
const search_in_results_button = {
3434
iconPath: new vscode.ThemeIcon('search'),
35-
tooltip: t('feature.search-files.search-in-results')
35+
tooltip: t('common.search-in-results')
3636
}
3737

3838
const currently_checked = params.workspace_provider.get_checked_files()

‎apps/editor/src/i18n/translations/common.ts‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,5 +286,23 @@ export const translations = {
286286
cs: 'Smazat',
287287
hu: 'Törlés',
288288
bg: 'Изтриване'
289+
},
290+
'common.search-in-results': {
291+
en: 'Search in results',
292+
pl: 'Szukaj w wynikach',
293+
'zh-cn': '在结果中搜索',
294+
ja: '結果内を検索',
295+
'zh-tw': '在結果中搜尋',
296+
de: 'In den Ergebnissen suchen',
297+
es: 'Buscar en los resultados',
298+
fr: 'Rechercher dans les résultats',
299+
'pt-br': 'Pesquisar nos resultados',
300+
ru: 'Искать в результатах',
301+
ko: '결과에서 검색',
302+
it: 'Cerca nei risultati',
303+
tr: 'Sonuçlarda ara',
304+
cs: 'Hledat ve výsledcích',
305+
hu: 'Keresés az eredményekben',
306+
bg: 'Търсене в резултатите'
289307
}
290308
} as const

‎apps/editor/src/i18n/translations/features/search-files.ts‎

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,23 +1173,5 @@ export const translations = {
11731173
cs: 'Hledat jak v obsahu, tak v názvech souborů',
11741174
hu: 'Keresés tartalmában és fájlnevekben egyaránt',
11751175
bg: 'Търсене както в съдържанието, така и в имената на файловете'
1176-
},
1177-
'feature.search-files.search-in-results': {
1178-
en: 'Search in results',
1179-
pl: 'Szukaj w wynikach',
1180-
'zh-cn': '在结果中搜索',
1181-
ja: '結果内を検索',
1182-
'zh-tw': '在結果中搜尋',
1183-
de: 'In den Ergebnissen suchen',
1184-
es: 'Buscar en los resultados',
1185-
fr: 'Rechercher dans les résultats',
1186-
'pt-br': 'Pesquisar nos resultados',
1187-
ru: 'Искать в результатах',
1188-
ko: '결과에서 검색',
1189-
it: 'Cerca nei risultati',
1190-
tr: 'Sonuçlarda ara',
1191-
cs: 'Hledat ve výsledcích',
1192-
hu: 'Keresés az eredményekben',
1193-
bg: 'Търсене в резултатите'
11941176
}
11951177
} as const

0 commit comments

Comments
 (0)