πi18n
The module provides a simple way to management different languages.
Imports
import { i18nService } from 'niro-health';import { i18nModule } from 'niro-health';import type { Ii18nService } from 'niro-health';Environment Variables
name
description
REDIS_HOST=redis://localhost:6379
REDIS_PORT=6379
REDIS_PASSWORD=Detailed Section
πStartingMethod of Use
import { Module } from '@nestjs/common';
import {
i18nService,
ConfigurationService,
ValidatorRegexpService,
StringExService,
RedisService,
DebugService,
PropStringService,
} from 'niro-health';
import { AppController } from './app.controller';
import { AppService } from './app.service';
@Module({
controllers: [AppController],
providers: [
AppService,
{
provide: 'Ii18nService',
useClass: i18nService,
},
{
provide: 'IConfigurationService',
useClass: ConfigurationService,
},
{
provide: 'IValidatorRegexpService',
useClass: ValidatorRegexpService,
},
{
provide: 'IStringExService',
useClass: StringExService,
},
{
provide: 'IRedisService',
useClass: RedisService,
},
{
provide: 'IDebugService',
useClass: DebugService,
},
{
provide: 'IPropStringService',
useClass: PropStringService,
},
],
})
export class AppModule {}With dependencies
Interface
Service
Properties
Property
Scope
Description
Methods
Method
Scope
Description
Last updated