Expose content language in HTML

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2021-11-13 15:58:54 +01:00
parent cf7744ab51
commit 0a37719029
16 changed files with 60 additions and 11 deletions

View File

@@ -90,6 +90,7 @@ export interface IEvent {
options: IEventOptions;
metadata: IEventMetadata[];
contacts: IActor[];
language: string;
toEditJSON(): IEventEditJSON;
}
@@ -134,6 +135,8 @@ export class EventModel implements IEvent {
publishAt = new Date();
language = "und";
participantStats = {
notApproved: 0,
notConfirmed: 0,
@@ -210,6 +213,7 @@ export class EventModel implements IEvent {
this.tags = hash.tags;
this.metadata = hash.metadata;
this.language = hash.language;
if (hash.options) this.options = hash.options;
}