Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

459 B
Raw Blame
import { Injectable } from '@angular/core';
import {environment} from "../../environments/environment";
import {HttpClient} from "@angular/common/http";
import {Language} from "../_models/metadata/language";

@Injectable({
  providedIn: 'root'
})
export class LocalizationService {

  baseUrl = environment.apiUrl;

  constructor(private httpClient: HttpClient) { }

  getLocales() {
    return this.httpClient.get<Language[]>(this.baseUrl + 'locale');
  }
}