diff --git a/backend/src/translations/_en.ts b/backend/src/translations/_en.ts index ddd07eb..2250e58 100644 --- a/backend/src/translations/_en.ts +++ b/backend/src/translations/_en.ts @@ -1,4 +1,4 @@ -export const en = { +export default { 'Welcome': 'Up and running!', 'HowGoodAmI.Thinking': 'Hmm... Let me think 🤔', diff --git a/backend/src/translations/_ru.ts b/backend/src/translations/_ru.ts index 57a52c2..ed5bea3 100644 --- a/backend/src/translations/_ru.ts +++ b/backend/src/translations/_ru.ts @@ -1,9 +1,9 @@ import type { Translation } from '.' -export const ru: Translation = { +export default { 'Welcome': 'Всё работает!', 'HowGoodAmI.Thinking': 'Дай-ка подумаю 🤔', 'HowGoodAmI.Answer': (percent: number) => `Ты лучше чем ${percent}% студентов!`, 'HowGoodAmI.Failed': 'Я не знаю 🤷‍♂️', -} +} satisfies Translation diff --git a/backend/src/translations/index.ts b/backend/src/translations/index.ts index b96eb32..ab58cc3 100644 --- a/backend/src/translations/index.ts +++ b/backend/src/translations/index.ts @@ -1,5 +1,5 @@ -import { en } from './_en' -import { ru } from './_ru' +import en from './_en' +import ru from './_ru' export type Translation = typeof en