From bd2ece3a01f4829791e52a0f321b4e8347f43035 Mon Sep 17 00:00:00 2001 From: PrivateGER Date: Fri, 26 May 2023 10:51:11 +0200 Subject: [PATCH] i18n strings --- locales/en-US.yml | 5 + packages/client/src/scripts/search.ts | 2 +- .../src/widgets/server-metric/meilisearch.vue | 93 ++++++++++--------- 3 files changed, 53 insertions(+), 47 deletions(-) diff --git a/locales/en-US.yml b/locales/en-US.yml index 6fe8bccfc..e134a0591 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -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" diff --git a/packages/client/src/scripts/search.ts b/packages/client/src/scripts/search.ts index 15f916cfc..c7b8582ac 100644 --- a/packages/client/src/scripts/search.ts +++ b/packages/client/src/scripts/search.ts @@ -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" + diff --git a/packages/client/src/widgets/server-metric/meilisearch.vue b/packages/client/src/widgets/server-metric/meilisearch.vue index 182896cc0..cb50c0301 100644 --- a/packages/client/src/widgets/server-metric/meilisearch.vue +++ b/packages/client/src/widgets/server-metric/meilisearch.vue @@ -1,46 +1,47 @@ - - - - - + + + + +