Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: forgot to update i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
glazk0 committed Nov 4, 2023
1 parent 098ba72 commit fc499bf
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"scripts": {
"start": "node main",
"dev": "npm run build && NODE_ENV=development node dist/main.js",
"build": "rm -rf dist && tsc",
"build": "tsc",
"bot:up": "docker-compose -p lilith --env-file .env -f .docker/docker-compose.yml up --build -d",
"bot:restart": "docker-compose -p lilith -f .docker/docker-compose.yml restart",
"bot:update": "docker-compose -p lilith -f .docker/docker-compose.yml exec bot sh -c 'npm install'",
"bot:stop": "docker-compose -p lilith -f .docker/docker-compose.yml stop",
"bot:clean": "docker-compose -p lilith -f .docker/docker-compose.yml down",
"bot:rebuild": "npm run bot:clean && npm run bot:up",
"typesafe-i18n": "typesafe-i18n"
"i18n": "typesafe-i18n"
},
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/i18n-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export type Locales =
| 'ja'
| 'pl'
| 'pt'
| 'ru'
| 'tr'

export type Translation = RootTranslation & DisallowNamespaces
Expand Down
4 changes: 4 additions & 0 deletions src/i18n/i18n-util.async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const localeTranslationLoaders = {
ja: () => import('./ja'),
pl: () => import('./pl'),
pt: () => import('./pt'),
ru: () => import('./ru'),
tr: () => import('./tr'),
}

Expand Down Expand Up @@ -50,6 +51,9 @@ const localeNamespaceLoaders = {
pt: {
commands: () => import('./pt/commands')
},
ru: {
commands: () => import('./ru/commands')
},
tr: {
commands: () => import('./tr/commands')
}
Expand Down
6 changes: 6 additions & 0 deletions src/i18n/i18n-util.sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import it from './it'
import ja from './ja'
import pl from './pl'
import pt from './pt'
import ru from './ru'
import tr from './tr'

import bg_commands from './bg/commands'
Expand All @@ -27,6 +28,7 @@ import it_commands from './it/commands'
import ja_commands from './ja/commands'
import pl_commands from './pl/commands'
import pt_commands from './pt/commands'
import ru_commands from './ru/commands'
import tr_commands from './tr/commands'

const localeTranslations = {
Expand Down Expand Up @@ -70,6 +72,10 @@ const localeTranslations = {
...pt,
commands: pt_commands
},
ru: {
...ru,
commands: ru_commands
},
tr: {
...tr,
commands: tr_commands
Expand Down
1 change: 1 addition & 0 deletions src/i18n/i18n-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const locales: Locales[] = [
'ja',
'pl',
'pt',
'ru',
'tr'
]

Expand Down

0 comments on commit fc499bf

Please sign in to comment.