fix lint & add i18n

This commit is contained in:
まっちゃとーにゅ 2024-03-07 05:23:22 +09:00
parent 7abf5dcb78
commit b4fc96ca5b
No known key found for this signature in database
GPG key ID: 6AFBBF529601C1DB
10 changed files with 10 additions and 8 deletions

View file

@ -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"

View file

@ -2315,6 +2315,7 @@ _notification:
sendTestNotification: "테스트 알림 보내기"
notificationWillBeDisplayedLikeThis: "알림이 이렇게 표시됩니다"
reactedBySomeUsers: "{n}명이 반응했습니다"
likedBySomeUsers: "{n}명이 좋아요했습니다"
renotedBySomeUsers: "{n}명이 리노트했습니다"
followedBySomeUsers: "{n}명에게 팔로우됨"
_types:

View file

@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import FastifyReply from "fastify";
import FastifyReply from 'fastify';
declare module 'fastify' {
interface FastifyReply {

View file

@ -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 {

View file

@ -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';

View file

@ -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 = {

View file

@ -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'],

View file

@ -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'],

View file

@ -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,

View file

@ -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<string, AudioBuffer>();