I18n CI and small type improvement (#10092)

This commit is contained in:
Félix Malfait
2025-02-09 22:17:54 +01:00
committed by GitHub
parent bb24c97f80
commit f9d7f62ec2
5 changed files with 12 additions and 5 deletions

View File

@ -26,7 +26,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- uses: ./.github/actions/node-install
- name: Install dependencies
uses: ./.github/workflows/actions/yarn-install
- name: Pull translations from Crowdin
uses: crowdin/github-action@v2

View File

@ -24,7 +24,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- uses: ./.github/actions/node-install
- name: Install dependencies
uses: ./.github/workflows/actions/yarn-install
- name: Compile translations
id: compile_translations

View File

@ -22,7 +22,8 @@ jobs:
with:
token: ${{ github.token }}
- uses: ./.github/actions/node-install
- name: Install dependencies
uses: ./.github/workflows/actions/yarn-install
- name: Extract translations
run: |

View File

@ -52,7 +52,8 @@ export class ClientConfigResolver {
),
defaultSubdomain: this.environmentService.get('DEFAULT_SUBDOMAIN'),
frontDomain: this.domainManagerService.getFrontUrl().hostname,
debugMode: this.environmentService.get('NODE_ENV') === 'development',
debugMode:
this.environmentService.get('NODE_ENV') === NodeEnvironment.development,
support: {
supportDriver: this.environmentService.get('SUPPORT_DRIVER'),
supportFrontChatId: this.environmentService.get(

View File

@ -1,5 +1,7 @@
import { HttpAdapterHost } from '@nestjs/core';
import { NodeEnvironment } from 'src/engine/core-modules/environment/interfaces/node-environment.interface';
import { EnvironmentService } from 'src/engine/core-modules/environment/environment.service';
import { OPTIONS_TYPE } from 'src/engine/core-modules/exception-handler/exception-handler.module-definition';
import { ExceptionHandlerDriver } from 'src/engine/core-modules/exception-handler/interfaces';
@ -30,7 +32,8 @@ export const exceptionHandlerModuleFactory = async (
release: environmentService.get('SENTRY_RELEASE'),
dsn: environmentService.get('SENTRY_DSN') ?? '',
serverInstance: adapterHost.httpAdapter?.getInstance(),
debug: environmentService.get('NODE_ENV') === 'development',
debug:
environmentService.get('NODE_ENV') === NodeEnvironment.development,
},
};
}