Skip to content

Commit

Permalink
Merge pull request #53 from gavrylenkoIvan/dev
Browse files Browse the repository at this point in the history
fix(i18n module): don't generate types in production
  • Loading branch information
havrydotdev committed Dec 6, 2023
2 parents f5909e5 + 273a4df commit 69e22b3
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 84 deletions.
160 changes: 80 additions & 80 deletions src/generated/i18n.generated.ts
Original file line number Diff line number Diff line change
@@ -1,89 +1,89 @@
/* DO NOT EDIT, file generated by nestjs-i18n */

import { Path } from "nestjs-i18n";
import { Path } from 'nestjs-i18n';
export type I18nTranslations = {
"buttons": {
"profile": string;
"change_lang": string;
"help": string;
"partner": string;
buttons: {
profile: string;
change_lang: string;
help: string;
partner: string;
};
commands: {
start: string;
help: string;
coop: string;
profiles: string;
};
errors: {
unknown: string;
only_private: string;
limit_exceeded: string;
age: {
invalid: string;
};
"commands": {
"start": string;
"help": string;
"coop": string;
"profiles": string;
about: {
invalid: string;
};
"errors": {
"unknown": string;
"only_private": string;
"limit_exceeded": string;
"age": {
"invalid": string;
};
"about": {
"invalid": string;
};
"forbidden": string;
forbidden: string;
};
messages: {
lang: {
update: string;
select: string;
changed: string;
invalid: string;
};
"messages": {
"lang": {
"update": string;
"select": string;
"changed": string;
"invalid": string;
};
"user": {
"new": string;
};
"name": {
"send": string;
};
"age": {
"send": string;
"invalid": string;
};
"picture": {
"send": string;
};
"about": {
"send": string;
};
"game": {
"invalid": string;
"ok": string;
"already_added": string;
"send": string;
};
"register": {
"completed": string;
};
"next_action": string;
"searching_teammates": string;
"report": {
"ad": string;
"send": string;
"ok": string;
"channel": {
"ok": string;
};
};
"profile": {
"last": {
"clear": string;
"cleared": string;
"no_more": string;
};
"delete_success": string;
"deleted": string;
"update": string;
};
"send_message": {
"enter_ua": string;
"enter_en": string;
"photo": string;
"sent": string;
};
user: {
new: string;
};
name: {
send: string;
};
age: {
send: string;
invalid: string;
};
picture: {
send: string;
};
about: {
send: string;
};
game: {
invalid: string;
ok: string;
already_added: string;
send: string;
};
register: {
completed: string;
};
next_action: string;
searching_teammates: string;
report: {
ad: string;
send: string;
ok: string;
channel: {
ok: string;
};
};
profile: {
last: {
clear: string;
cleared: string;
no_more: string;
};
delete_success: string;
deleted: string;
update: string;
};
send_message: {
enter_ua: string;
enter_en: string;
photo: string;
sent: string;
};
};
};
export type I18nPath = Path<I18nTranslations>;
8 changes: 4 additions & 4 deletions src/services/i18n/i18n.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import { join } from 'path';
watch: true,
},
logging: false,
typesOutputPath: join(
__dirname,
'../../../src/generated/i18n.generated.ts',
),
typesOutputPath:
configService.get<string>('NODE_ENV') === 'dev'
? join(__dirname, '../../../src/generated/i18n.generated.ts')
: undefined,
}),
}),
],
Expand Down

1 comment on commit 69e22b3

@vercel
Copy link

@vercel vercel bot commented on 69e22b3 Dec 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.