From b4fc96ca5b51ee87a3ae301d26494f0b1342b9e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BE=E3=81=A3=E3=81=A1=E3=82=83=E3=81=A8=E3=83=BC?= =?UTF-8?q?=E3=81=AB=E3=82=85?= <17376330+u1-liquid@users.noreply.github.com> Date: Thu, 7 Mar 2024 05:23:22 +0900 Subject: [PATCH] fix lint & add i18n --- locales/en-US.yml | 1 + locales/ko-KR.yml | 1 + packages/backend/src/@types/fastify.d.ts | 2 +- packages/backend/src/core/UserAuthService.ts | 2 +- packages/backend/src/core/entities/AnnouncementEntityService.ts | 2 +- packages/backend/src/queue/const.ts | 2 +- .../backend/src/server/api/endpoints/notes/local-timeline.ts | 2 +- packages/backend/src/server/api/endpoints/users/reactions.ts | 2 +- packages/backend/test/unit/AnnouncementService.ts | 2 +- packages/frontend/src/scripts/sound.ts | 2 +- 10 files changed, 10 insertions(+), 8 deletions(-) diff --git a/locales/en-US.yml b/locales/en-US.yml index 6b20134b2..49688d24e 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -2338,6 +2338,7 @@ _notification: sendTestNotification: "Send test notification" notificationWillBeDisplayedLikeThis: "Notifications look like this" reactedBySomeUsers: "{n} users reacted" + likedBySomeUsers: "{n} users liked" renotedBySomeUsers: "Renote from {n} users" followedBySomeUsers: "Followed by {n} users" flushNotification: "Clear notifications" diff --git a/locales/ko-KR.yml b/locales/ko-KR.yml index bf504378f..75578750c 100644 --- a/locales/ko-KR.yml +++ b/locales/ko-KR.yml @@ -2315,6 +2315,7 @@ _notification: sendTestNotification: "테스트 알림 보내기" notificationWillBeDisplayedLikeThis: "알림이 이렇게 표시됩니다" reactedBySomeUsers: "{n}명이 반응했습니다" + likedBySomeUsers: "{n}명이 좋아요했습니다" renotedBySomeUsers: "{n}명이 리노트했습니다" followedBySomeUsers: "{n}명에게 팔로우됨" _types: diff --git a/packages/backend/src/@types/fastify.d.ts b/packages/backend/src/@types/fastify.d.ts index b15176ec2..f63a90f94 100644 --- a/packages/backend/src/@types/fastify.d.ts +++ b/packages/backend/src/@types/fastify.d.ts @@ -3,7 +3,7 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -import FastifyReply from "fastify"; +import FastifyReply from 'fastify'; declare module 'fastify' { interface FastifyReply { diff --git a/packages/backend/src/core/UserAuthService.ts b/packages/backend/src/core/UserAuthService.ts index 39eb771d6..14f298c51 100644 --- a/packages/backend/src/core/UserAuthService.ts +++ b/packages/backend/src/core/UserAuthService.ts @@ -8,7 +8,7 @@ import * as OTPAuth from 'otpauth'; import { DI } from '@/di-symbols.js'; import type { MiUserProfile, UserProfilesRepository, UsersRepository } from '@/models/_.js'; import { bindThis } from '@/decorators.js'; -import { IdentifiableError } from "@/misc/identifiable-error.js"; +import { IdentifiableError } from '@/misc/identifiable-error.js'; @Injectable() export class UserAuthService { diff --git a/packages/backend/src/core/entities/AnnouncementEntityService.ts b/packages/backend/src/core/entities/AnnouncementEntityService.ts index 6a70aeece..b4a67460d 100644 --- a/packages/backend/src/core/entities/AnnouncementEntityService.ts +++ b/packages/backend/src/core/entities/AnnouncementEntityService.ts @@ -5,7 +5,7 @@ import { Inject, Injectable } from '@nestjs/common'; import { DI } from '@/di-symbols.js'; -import type { AnnouncementsRepository, AnnouncementReadsRepository, MiAnnouncement, MiUser } from "@/models/_.js"; +import type { AnnouncementsRepository, AnnouncementReadsRepository, MiAnnouncement, MiUser } from '@/models/_.js'; import type { Packed } from '@/misc/json-schema.js'; import { bindThis } from '@/decorators.js'; import { IdService } from '@/core/IdService.js'; diff --git a/packages/backend/src/queue/const.ts b/packages/backend/src/queue/const.ts index 1d0caecf9..06edef1a2 100644 --- a/packages/backend/src/queue/const.ts +++ b/packages/backend/src/queue/const.ts @@ -4,7 +4,7 @@ */ import type * as Bull from 'bullmq'; -import type { RedisOptions } from "ioredis"; +import type { RedisOptions } from 'ioredis'; import type { RedisOptionsSource } from '@/config.js'; export const QUEUE = { diff --git a/packages/backend/src/server/api/endpoints/notes/local-timeline.ts b/packages/backend/src/server/api/endpoints/notes/local-timeline.ts index 5583ab205..3a6a70a1d 100644 --- a/packages/backend/src/server/api/endpoints/notes/local-timeline.ts +++ b/packages/backend/src/server/api/endpoints/notes/local-timeline.ts @@ -17,8 +17,8 @@ import { QueryService } from '@/core/QueryService.js'; import { MetaService } from '@/core/MetaService.js'; import { MiLocalUser } from '@/models/User.js'; import { FanoutTimelineEndpointService } from '@/core/FanoutTimelineEndpointService.js'; +import { FanoutTimelineName } from '@/core/FanoutTimelineService.js'; import { ApiError } from '../../error.js'; -import { FanoutTimelineName } from "@/core/FanoutTimelineService.js"; export const meta = { tags: ['notes'], diff --git a/packages/backend/src/server/api/endpoints/users/reactions.ts b/packages/backend/src/server/api/endpoints/users/reactions.ts index 917f5efa8..101394172 100644 --- a/packages/backend/src/server/api/endpoints/users/reactions.ts +++ b/packages/backend/src/server/api/endpoints/users/reactions.ts @@ -12,8 +12,8 @@ import { DI } from '@/di-symbols.js'; import { CacheService } from '@/core/CacheService.js'; import { UserEntityService } from '@/core/entities/UserEntityService.js'; import { RoleService } from '@/core/RoleService.js'; +import { MiNoteReaction } from '@/models/_.js'; import { ApiError } from '../../error.js'; -import { MiNoteReaction } from "@/models/_.js"; export const meta = { tags: ['users', 'reactions'], diff --git a/packages/backend/test/unit/AnnouncementService.ts b/packages/backend/test/unit/AnnouncementService.ts index 4716454ef..81da0fac3 100644 --- a/packages/backend/test/unit/AnnouncementService.ts +++ b/packages/backend/test/unit/AnnouncementService.ts @@ -10,7 +10,7 @@ import { ModuleMocker } from 'jest-mock'; import { Test } from '@nestjs/testing'; import { GlobalModule } from '@/GlobalModule.js'; import { AnnouncementService } from '@/core/AnnouncementService.js'; -import { AnnouncementEntityService } from "@/core/entities/AnnouncementEntityService.js"; +import { AnnouncementEntityService } from '@/core/entities/AnnouncementEntityService.js'; import type { AnnouncementReadsRepository, AnnouncementsRepository, diff --git a/packages/frontend/src/scripts/sound.ts b/packages/frontend/src/scripts/sound.ts index d616101fa..b6927e0d6 100644 --- a/packages/frontend/src/scripts/sound.ts +++ b/packages/frontend/src/scripts/sound.ts @@ -5,7 +5,7 @@ import type { SoundStore } from '@/store.js'; import { defaultStore } from '@/store.js'; -import { $i } from "@/account.js"; +import { $i } from '@/account.js'; let ctx: AudioContext; const cache = new Map();