Refactor imports across multiple components for consistency and clarity
- Reorganized import statements in various components to ensure consistent ordering and grouping. - Removed unnecessary imports and added missing ones where applicable. - Improved readability and maintainability of the codebase by standardizing import styles.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { cmdGetProxyDelay } from "./cmds";
|
||||
import { cmdGetProxyDelay } from "@/services/cmds";
|
||||
|
||||
const hashKey = (name: string, group: string) => `${group ?? ""}::${name}`;
|
||||
|
||||
|
||||
@@ -30,7 +30,9 @@ export const loadLanguage = async (language: string) => {
|
||||
const module = await import(`@/locales/${language}.json`);
|
||||
return module.default;
|
||||
} catch (error) {
|
||||
console.warn(`Failed to load language ${language}, fallback to zh`);
|
||||
console.warn(
|
||||
`Failed to load language ${language}, fallback to zh, ${error}`,
|
||||
);
|
||||
const fallback = await import("@/locales/zh.json");
|
||||
return fallback.default;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user