Created
December 13, 2021 15:45
-
-
Save FunnyGhost/84d0d07f325edf7299a564db2eb80f7a to your computer and use it in GitHub Desktop.
How to import the LanguageService
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class CarsService { | |
const userLanguage: LanguageShortName; | |
constructor( | |
private languageService: LanguageService, | |
) { | |
this.userLanguage = this.languageService.getLanguage('en'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment