Skip to content

Commit 9f5ccd1

Browse files
committed
fix: Use typeof for TranslationMessages type inference
- Replace manual interface with typeof en for automatic type inference - Add JSON imports to enable TypeScript type checking - Maintain type safety while reducing maintenance overhead
1 parent c1417e6 commit 9f5ccd1

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/lib/translations/index.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
// Import translation files
2+
import en from './en.json';
3+
import es from './es.json';
4+
import fr from './fr.json';
5+
import de from './de.json';
6+
import it from './it.json';
7+
import pt from './pt.json';
8+
import ru from './ru.json';
9+
import ja from './ja.json';
10+
import ko from './ko.json';
11+
import zh from './zh.json';
12+
import ar from './ar.json';
13+
import hi from './hi.json';
14+
115
// Export all translation files
216
export { default as en } from './en.json';
317
export { default as es } from './es.json';

0 commit comments

Comments
 (0)