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" \ that's free forever! \U0001F680"
monthAndDay: "{month}/{day}" monthAndDay: "{month}/{day}"
search: "Search" search: "Search"
search_placeholder: "Enter search terms..."
notifications: "Notifications" notifications: "Notifications"
username: "Username" username: "Username"
password: "Password" password: "Password"
@ -1548,6 +1549,10 @@ _widgets:
userList: "User list" userList: "User list"
_userList: _userList:
chooseList: "Select a list" chooseList: "Select a list"
meiliStatus: "Server Status"
meiliSize: "Index size"
meiliIndexCount: "Indexed posts"
_cw: _cw:
hide: "Hide" hide: "Hide"
show: "Show content" show: "Show content"

View file

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

View file

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