mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix: language seed
This commit is contained in:
parent
9c44bafb8a
commit
7425f60284
@ -25,11 +25,11 @@ export class LanguageCreateDto {
|
|||||||
@ApiProperty({ description: 'Whether Language is RTL', type: Boolean })
|
@ApiProperty({ description: 'Whether Language is RTL', type: Boolean })
|
||||||
@IsBoolean()
|
@IsBoolean()
|
||||||
isRTL: boolean;
|
isRTL: boolean;
|
||||||
}
|
|
||||||
|
|
||||||
export class LanguageUpdateDto extends PartialType(LanguageCreateDto) {
|
|
||||||
@ApiProperty({ description: 'Is Default Language ?', type: Boolean })
|
@ApiProperty({ description: 'Is Default Language ?', type: Boolean })
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
@IsBoolean()
|
@IsBoolean()
|
||||||
isDefault?: boolean;
|
isDefault?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export class LanguageUpdateDto extends PartialType(LanguageCreateDto) {}
|
||||||
|
@ -14,6 +14,7 @@ export const languageModels: LanguageCreateDto[] = [
|
|||||||
title: 'English',
|
title: 'English',
|
||||||
code: 'en',
|
code: 'en',
|
||||||
isRTL: false,
|
isRTL: false,
|
||||||
|
isDefault: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Français',
|
title: 'Français',
|
||||||
|
Loading…
Reference in New Issue
Block a user