Add locales for search bar

This commit is contained in:
Leah 2024-06-28 17:17:13 +02:00
parent 1c0b1cab4f
commit b5a69c3aea
4 changed files with 8 additions and 1 deletions

View file

@ -321,6 +321,7 @@ lightThemes: "Light themes"
darkThemes: "Dark themes"
syncDeviceDarkMode: "Sync Dark Mode with your device settings"
drive: "Drive"
driveSearchbarPlaceholder: "Search drive"
fileName: "Filename"
selectFile: "Select a file"
selectFiles: "Select files"

4
locales/index.d.ts vendored
View file

@ -1300,6 +1300,10 @@ export interface Locale extends ILocale {
*
*/
"drive": string;
/**
*
*/
"driveSearchbarPlaceholder": string;
/**
*
*/

View file

@ -321,6 +321,7 @@ lightThemes: "明るいテーマ"
darkThemes: "暗いテーマ"
syncDeviceDarkMode: "デバイスのダークモードと同期する"
drive: "ドライブ"
driveSearchbarPlaceholder: "検索ドライブ"
fileName: "ファイル名"
selectFile: "ファイルを選択"
selectFiles: "ファイルを選択"

View file

@ -31,7 +31,8 @@ SPDX-License-Identifier: AGPL-3.0-only
<span v-if="folder != null" :class="[$style.navPathItem, $style.navCurrent]">{{ folder.name }}</span>
</div>
<div :class="$style.navMenu">
<MkInput v-model="searchQuery" :large="true" :autofocus="true" type="search" placeholder="Search drive via alt text or file names" @enter="search">
<!-- "Search drive via alt text or file names" -->
<MkInput v-model="searchQuery" :large="true" :autofocus="true" type="search" :placeholder="i18n.ts.driveSearchbarPlaceholder" @enter="search">
<template #prefix><i class="ph-magnifying-glass ph-bold ph-lg"></i></template>
</MkInput>