Skip to content

Instantly share code, notes, and snippets.

@FunnyGhost
Created December 13, 2021 15:45
Show Gist options
  • Save FunnyGhost/84d0d07f325edf7299a564db2eb80f7a to your computer and use it in GitHub Desktop.
Save FunnyGhost/84d0d07f325edf7299a564db2eb80f7a to your computer and use it in GitHub Desktop.
How to import the LanguageService
@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