Revert "refactor(common): Language"

This reverts commit bef6c6f75b.
This commit is contained in:
Tibo De Peuter 2025-04-02 00:22:05 +02:00
parent d24eb9832b
commit 61f3afd9ae
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
48 changed files with 56 additions and 65 deletions

View file

@ -1,6 +1,7 @@
import { LearningPathProvider } from './learning-path-provider.js';
import { LearningPath as LearningPathEntity } from '../../entities/content/learning-path.entity.js';
import { getLearningPathRepository } from '../../data/repositories.js';
import { Language } from '../../entities/content/language.js';
import learningObjectService from '../learning-objects/learning-object-service.js';
import { LearningPathNode } from '../../entities/content/learning-path-node.entity.js';
import { LearningPathTransition } from '../../entities/content/learning-path-transition.entity.js';
@ -12,7 +13,6 @@ import {
LearningPathResponse,
Transition,
} from 'dwengo-1-common/src/interfaces/learning-content';
import { Language } from 'dwengo-1-common/src/util/language.js';
/**
* Fetches the corresponding learning object for each of the nodes and creates a map that maps each node to its

View file

@ -1,4 +1,4 @@
import { Language } from 'dwengo-1-common/src/util/language.js';
import { Language } from '../../entities/content/language.js';
import { PersonalizationTarget } from './learning-path-personalization-util.js';
import { LearningPath, LearningPathResponse } from 'dwengo-1-common/src/interfaces/learning-content';

View file

@ -1,9 +1,9 @@
import dwengoApiLearningPathProvider from './dwengo-api-learning-path-provider.js';
import databaseLearningPathProvider from './database-learning-path-provider.js';
import { envVars, getEnvVar } from '../../util/envVars.js';
import { Language } from '../../entities/content/language.js';
import { PersonalizationTarget } from './learning-path-personalization-util.js';
import { LearningPath, LearningPathResponse } from 'dwengo-1-common/src/interfaces/learning-content';
import { Language } from 'dwengo-1-common/src/util/language.js';
const userContentPrefix = getEnvVar(envVars.UserContentPrefix);
const allProviders = [dwengoApiLearningPathProvider, databaseLearningPathProvider];