initial relay scaffold
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
export const DEFAULT_LANG = 'en_US'
|
||||
|
||||
const dict = {
|
||||
// main.ts
|
||||
'Starting Recap...': 0,
|
||||
'Web Interface': 1,
|
||||
'Recap is ready': 2,
|
||||
'Recap is not responding': 3,
|
||||
|
||||
// interfaces.ts
|
||||
'Web UI': 4,
|
||||
'The web interface for Recap — browse, search, and manage your transcript library': 5,
|
||||
} as const
|
||||
|
||||
/**
|
||||
* Plumbing. DO NOT EDIT.
|
||||
*/
|
||||
export type I18nKey = keyof typeof dict
|
||||
export type LangDict = Record<(typeof dict)[I18nKey], string>
|
||||
export default dict
|
||||
@@ -0,0 +1,4 @@
|
||||
import { LangDict } from './default'
|
||||
|
||||
// English-only for now. Add translations here as needed.
|
||||
export default {} satisfies Record<string, LangDict>
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Plumbing. DO NOT EDIT this file.
|
||||
*/
|
||||
import { setupI18n } from '@start9labs/start-sdk'
|
||||
import defaultDict, { DEFAULT_LANG } from './dictionaries/default'
|
||||
import translations from './dictionaries/translations'
|
||||
|
||||
export const i18n = setupI18n(defaultDict, translations, DEFAULT_LANG)
|
||||
Reference in New Issue
Block a user