Skip to content

Commit

Permalink
Added the translations object as a global variable for type script
Browse files Browse the repository at this point in the history
  • Loading branch information
Naviary2 committed Dec 13, 2024
1 parent 773cdd4 commit 30f51f7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/globals.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* eslint-disable no-unused-vars */

declare global {
// Add "translations" as a global object (for client)
const translations: {
[key: string]: any; // Allows other dynamic keys if needed
};
}

export {}; // Ensures this file is treated as a module

0 comments on commit 30f51f7

Please sign in to comment.