Skip to content

Commit

Permalink
refactor(bot): refactor translations exports
Browse files Browse the repository at this point in the history
  • Loading branch information
evermake committed Mar 17, 2024
1 parent 93c1d1f commit 748b1a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend/src/translations/_en.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const en = {
export default {
'Welcome': 'Up and running!',

'HowGoodAmI.Thinking': 'Hmm... Let me think 🤔',
Expand Down
4 changes: 2 additions & 2 deletions backend/src/translations/_ru.ts
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions backend/src/translations/index.ts
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 748b1a9

Please sign in to comment.