I18n CI and small type improvement (#10092)
This commit is contained in:
3
.github/workflows/i18n-force-pull.yml
vendored
3
.github/workflows/i18n-force-pull.yml
vendored
@ -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
|
||||
|
||||
3
.github/workflows/i18n-pull.yaml
vendored
3
.github/workflows/i18n-pull.yaml
vendored
@ -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
|
||||
|
||||
3
.github/workflows/i18n-upload.yml
vendored
3
.github/workflows/i18n-upload.yml
vendored
@ -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: |
|
||||
|
||||
@ -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(
|
||||
|
||||
@ -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,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user