16 lines
378 B
TypeScript
16 lines
378 B
TypeScript
export const DEFAULT_LANG = 'en_US'
|
|
|
|
const dict = {
|
|
Database: 0,
|
|
'The database is not ready': 1,
|
|
'The database is ready': 2,
|
|
'Todo API': 3,
|
|
'The Todo API is ready': 4,
|
|
'The Todo API is not ready': 5,
|
|
'REST API for todo items': 6,
|
|
} as const
|
|
|
|
export type I18nKey = keyof typeof dict
|
|
export type LangDict = Record<(typeof dict)[I18nKey], string>
|
|
export default dict
|