Skip to content

Commit 3e8f86e

Browse files
committed
fix: translate format dropdown results
1 parent 39a6801 commit 3e8f86e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

messages/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@
7777
"video": "Video",
7878
"doc": "Document",
7979
"image": "Image",
80-
"placeholder": "Search format"
80+
"placeholder": "Search format",
81+
"no_formats": "No formats available",
82+
"no_results": "No formats match your search"
8183
},
8284
"tooltips": {
8385
"unknown_file": "Unknown file type",

src/lib/components/functional/FormatDropdown.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,8 @@
483483
{:else}
484484
<div class="col-span-3 text-center p-4 text-muted">
485485
{searchQuery
486-
? "No formats match your search"
487-
: "No formats available"}
486+
? m["convert.dropdown.no_results"]()
487+
: m["convert.dropdown.no_formats"]()}
488488
</div>
489489
{/if}
490490
</div>

0 commit comments

Comments
 (0)