From c472794959a20c8e493453961bb8f1cacb849085 Mon Sep 17 00:00:00 2001 From: CenTdemeern1 Date: Sun, 8 Dec 2024 15:05:43 +0100 Subject: [PATCH] Move strings to sharkey-locales --- locales/index.d.ts | 8 ++++++++ packages/frontend/src/pages/about-sharkey.vue | 4 ++-- sharkey-locales/en-US.yml | 2 ++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index d8eb90f4e5..6df2191e9d 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -7396,6 +7396,14 @@ export interface Locale extends ILocale { * Testers */ "testers": string; + /** + * Misskey Contributors + */ + "misskeyContributors": string; + /** + * Our lovely Sponsors + */ + "ourLovelySponsors": string; }; "_displayOfSensitiveMedia": { /** diff --git a/packages/frontend/src/pages/about-sharkey.vue b/packages/frontend/src/pages/about-sharkey.vue index 18d8045db7..1746fc0e68 100644 --- a/packages/frontend/src/pages/about-sharkey.vue +++ b/packages/frontend/src/pages/about-sharkey.vue @@ -202,7 +202,7 @@ const everyone = ref([ ], }, { - heading: 'Misskey Contributors', + heading: i18n.ts._aboutMisskey.misskeyContributors, people: [ { handle: '@syuilo', @@ -271,7 +271,7 @@ const containerEl = shallowRef(); await misskeyApi('sponsors', { forceUpdate: false }).then((res) => { const section: Section = { - heading: 'Our lovely Sponsors', + heading: i18n.ts._aboutMisskey.ourLovelySponsors, people: [], }; for (const sponsor of res.sponsor_data) { diff --git a/sharkey-locales/en-US.yml b/sharkey-locales/en-US.yml index 1f9b6ef4f5..6fc38b414c 100644 --- a/sharkey-locales/en-US.yml +++ b/sharkey-locales/en-US.yml @@ -231,6 +231,8 @@ _aboutMisskey: translation: "Translate Sharkey" donate_sharkey: "Donate to Sharkey" testers: "Testers" + misskeyContributors: "Misskey Contributors" + ourLovelySponsors: "Our lovely Sponsors" _serverDisconnectedBehavior: disabled: "Disable warning" _channel: