Add translations support (#116)

This commit is contained in:
Sasha Sorokin
2023-11-11 23:03:58 +01:00
committed by GitHub
parent 1c18563dfb
commit 591ce0894e
11 changed files with 838 additions and 130 deletions

15
docs/.vitepress/env.d.ts vendored Normal file
View File

@@ -0,0 +1,15 @@
/// <reference types="vite/client" />
declare module '@modrinth/omorphia-dev/locales/index.js' {
interface LocaleExport {
messages: Record<string, any[]>
}
interface LocaleDefinition {
importFunction(): Promise<LocaleExport>
}
const localeDefinitions: Partial<Record<string, LocaleDefinition>>
export { localeDefinitions }
}