refactor: fix all lint errors and improve code quality
This commit is contained in:
@@ -48,7 +48,7 @@ export const languageStore = new LanguageStore();
|
||||
// Helper function to get nested translation value
|
||||
export function t(path: string): string {
|
||||
const keys = path.split('.');
|
||||
let value: any = languageStore.t;
|
||||
let value: unknown = languageStore.t;
|
||||
|
||||
for (const key of keys) {
|
||||
if (value && typeof value === 'object' && key in value) {
|
||||
|
||||
Reference in New Issue
Block a user