fix all eslint errors
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
/* eslint-disable @typescript-eslint/no-restricted-imports */
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
import i18next from "i18next";
|
||||
import LanguageDetector from "i18next-browser-languagedetector";
|
||||
// import LanguageDetector from "i18next-browser-languagedetector";
|
||||
import { Settings } from "luxon";
|
||||
import { initReactI18next } from "react-i18next";
|
||||
|
||||
@@ -44,7 +42,7 @@ i18next
|
||||
});
|
||||
|
||||
|
||||
export function t(message: string, params?: Record<string, any> & {capfirst?: boolean}) {
|
||||
export function t(message: string, params?: Record<string, unknown>) {
|
||||
const result = i18next.t(message, params);
|
||||
if (params?.capfirst && typeof result === "string" && result.length) {
|
||||
return result.charAt(0).toUpperCase() + result.slice(1);
|
||||
|
||||
Reference in New Issue
Block a user