i18n strings

This commit is contained in:
PrivateGER 2023-05-26 10:51:11 +02:00 committed by PrivateGER
parent 7e1e42bc47
commit 5dd106e956
3 changed files with 53 additions and 47 deletions

View file

@ -5,6 +5,7 @@ introMisskey: "Welcome! Calckey is an open source, decentralized social media pl
\ that's free forever! \U0001F680"
monthAndDay: "{month}/{day}"
search: "Search"
search_placeholder: "Enter search terms..."
notifications: "Notifications"
username: "Username"
password: "Password"
@ -1548,6 +1549,10 @@ _widgets:
userList: "User list"
_userList:
chooseList: "Select a list"
meiliStatus: "Server Status"
meiliSize: "Index size"
meiliIndexCount: "Indexed posts"
_cw:
hide: "Hide"
show: "Show content"

View file

@ -5,7 +5,7 @@ import { mainRouter } from "@/router";
export async function search() {
const { canceled, result: query } = await os.inputText({
title: i18n.ts.search,
placeholder: "Enter search terms...",
placeholder: i18n.ts.search_placeholder,
text:
"Advanced search operators\n" +
"from:user => filter by user\n" +

View file

@ -2,9 +2,9 @@
<div class="ms_stats">
<div>
<p><i class="ph-file-search ph-bold ph-lg"></i>MeiliSearch</p>
<p>Server Status: {{ available }}</p>
<p>Total: {{ bytes(total_size, 2) }}</p>
<p>Posts Indexed: {{ index_count }}</p>
<p>{{ i18n.ts._widgets.meiliStatus }}: {{ available }}</p>
<p>{{ i18n.ts._widgets.meiliSize }}: {{ bytes(total_size, 2) }}</p>
<p>{{ i18n.ts._widgets.meiliIndexCount }}: {{ index_count }}</p>
</div>
</div>
<br />
@ -13,6 +13,7 @@
<script lang="ts" setup>
import {} from "vue";
import bytes from "@/filters/bytes";
import {i18n} from "@/i18n";
const props = defineProps<{
meta: any; // TODO