the great renaming
This commit is contained in:
13
src/app/logic/language-support/language-support.service.ts
Normal file
13
src/app/logic/language-support/language-support.service.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Injectable } from "@angular/core";
|
||||
import { ELanguageShort } from "../../types/translations/language";
|
||||
import { Translation, TRANSLATIONS } from "../../types/translations/translation";
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class LanguageSupportService {
|
||||
private readonly translations: Record<ELanguageShort, Translation> = TRANSLATIONS;
|
||||
private readonly defaultLanguage: ELanguageShort = ELanguageShort.EN;
|
||||
|
||||
public acticeLanguage: Translation = this.translations[this.defaultLanguage];
|
||||
}
|
||||
Reference in New Issue
Block a user