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" darkThemes: "Dark themes"
syncDeviceDarkMode: "Sync Dark Mode with your device settings" syncDeviceDarkMode: "Sync Dark Mode with your device settings"
drive: "Drive" drive: "Drive"
driveSearchbarPlaceholder: "Search drive"
fileName: "Filename" fileName: "Filename"
selectFile: "Select a file" selectFile: "Select a file"
selectFiles: "Select files" selectFiles: "Select files"

4
locales/index.d.ts vendored
View File

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

View File

@ -321,6 +321,7 @@ lightThemes: "明るいテーマ"
darkThemes: "暗いテーマ" darkThemes: "暗いテーマ"
syncDeviceDarkMode: "デバイスのダークモードと同期する" syncDeviceDarkMode: "デバイスのダークモードと同期する"
drive: "ドライブ" drive: "ドライブ"
driveSearchbarPlaceholder: "検索ドライブ"
fileName: "ファイル名" fileName: "ファイル名"
selectFile: "ファイルを選択" selectFile: "ファイルを選択"
selectFiles: "ファイルを選択" 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> <span v-if="folder != null" :class="[$style.navPathItem, $style.navCurrent]">{{ folder.name }}</span>
</div> </div>
<div :class="$style.navMenu"> <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> <template #prefix><i class="ph-magnifying-glass ph-bold ph-lg"></i></template>
</MkInput> </MkInput>