From d4943c14dffd0ac41a32834e3367d96d6a9a292e Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Wed, 18 Dec 2024 12:15:54 +0900 Subject: [PATCH] lookupErrors-> remoteLookupErrors --- locales/index.d.ts | 2 +- locales/ja-JP.yml | 2 +- packages/frontend/src/scripts/lookup.ts | 24 ++++++++++++------------ 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index e8fdbdf5ad6f..63878d3d4771 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -10601,7 +10601,7 @@ export interface Locale extends ILocale { */ "sent": string; }; - "_lookupErrors": { + "_remoteLookupErrors": { "_federationNotAllowed": { /** * このサーバーとは通信できません diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 23e5db388141..d78bd4ee656d 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -2827,7 +2827,7 @@ _followRequest: recieved: "受け取った申請" sent: "送った申請" -_lookupErrors: +_remoteLookupErrors: _federationNotAllowed: title: "このサーバーとは通信できません" description: "このサーバーとの通信が無効化されているか、このサーバーをブロックしている・ブロックされている可能性があります。\nサーバー管理者にお問い合わせください。" diff --git a/packages/frontend/src/scripts/lookup.ts b/packages/frontend/src/scripts/lookup.ts index c45e002e35f4..ddcbfe1a8de5 100644 --- a/packages/frontend/src/scripts/lookup.ts +++ b/packages/frontend/src/scripts/lookup.ts @@ -39,28 +39,28 @@ export async function lookup(router?: Router) { switch (err.id) { case '974b799e-1a29-4889-b706-18d4dd93e266': - title = i18n.ts._lookupErrors._federationNotAllowed.title; - text = i18n.ts._lookupErrors._federationNotAllowed.description; + title = i18n.ts._remoteLookupErrors._federationNotAllowed.title; + text = i18n.ts._remoteLookupErrors._federationNotAllowed.description; break; case '1a5eab56-e47b-48c2-8d5e-217b897d70db': - title = i18n.ts._lookupErrors._uriInvalid.title; - text = i18n.ts._lookupErrors._uriInvalid.description; + title = i18n.ts._remoteLookupErrors._uriInvalid.title; + text = i18n.ts._remoteLookupErrors._uriInvalid.description; break; case '81b539cf-4f57-4b29-bc98-032c33c0792e': - title = i18n.ts._lookupErrors._requestFailed.title; - text = i18n.ts._lookupErrors._requestFailed.description; + title = i18n.ts._remoteLookupErrors._requestFailed.title; + text = i18n.ts._remoteLookupErrors._requestFailed.description; break; case '70193c39-54f3-4813-82f0-70a680f7495b': - title = i18n.ts._lookupErrors._responseInvalid.title; - text = i18n.ts._lookupErrors._responseInvalid.description; + title = i18n.ts._remoteLookupErrors._responseInvalid.title; + text = i18n.ts._remoteLookupErrors._responseInvalid.description; break; case 'a2c9c61a-cb72-43ab-a964-3ca5fddb410a': - title = i18n.ts._lookupErrors._responseInvalid.title; - text = i18n.ts._lookupErrors._responseInvalidIdHostNotMatch.description; + title = i18n.ts._remoteLookupErrors._responseInvalid.title; + text = i18n.ts._remoteLookupErrors._responseInvalidIdHostNotMatch.description; break; case 'dc94d745-1262-4e63-a17d-fecaa57efc82': - title = i18n.ts._lookupErrors._noSuchObject.title; - text = i18n.ts._lookupErrors._noSuchObject.description; + title = i18n.ts._remoteLookupErrors._noSuchObject.title; + text = i18n.ts._remoteLookupErrors._noSuchObject.description; break; }