diff --git a/package.json b/package.json index 59b6920..2bab5e8 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/i18n/i18n-types.ts b/src/i18n/i18n-types.ts index 97fc368..f98c2d9 100644 --- a/src/i18n/i18n-types.ts +++ b/src/i18n/i18n-types.ts @@ -16,6 +16,7 @@ export type Locales = | 'ja' | 'pl' | 'pt' + | 'ru' | 'tr' export type Translation = RootTranslation & DisallowNamespaces diff --git a/src/i18n/i18n-util.async.ts b/src/i18n/i18n-util.async.ts index 174c9be..2cf498b 100644 --- a/src/i18n/i18n-util.async.ts +++ b/src/i18n/i18n-util.async.ts @@ -16,6 +16,7 @@ const localeTranslationLoaders = { ja: () => import('./ja'), pl: () => import('./pl'), pt: () => import('./pt'), + ru: () => import('./ru'), tr: () => import('./tr'), } @@ -50,6 +51,9 @@ const localeNamespaceLoaders = { pt: { commands: () => import('./pt/commands') }, + ru: { + commands: () => import('./ru/commands') + }, tr: { commands: () => import('./tr/commands') } diff --git a/src/i18n/i18n-util.sync.ts b/src/i18n/i18n-util.sync.ts index e59e6c5..b427f32 100644 --- a/src/i18n/i18n-util.sync.ts +++ b/src/i18n/i18n-util.sync.ts @@ -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' @@ -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 = { @@ -70,6 +72,10 @@ const localeTranslations = { ...pt, commands: pt_commands }, + ru: { + ...ru, + commands: ru_commands + }, tr: { ...tr, commands: tr_commands diff --git a/src/i18n/i18n-util.ts b/src/i18n/i18n-util.ts index 17c045e..f002afd 100644 --- a/src/i18n/i18n-util.ts +++ b/src/i18n/i18n-util.ts @@ -21,6 +21,7 @@ export const locales: Locales[] = [ 'ja', 'pl', 'pt', + 'ru', 'tr' ]