graphdb-workbench
Version:
The web application for GraphDB APIs
22 lines (21 loc) • 921 B
TypeScript
import { HttpService } from '../http/http.service';
import { LanguageConfig, TranslationBundle } from '../../models/language';
/**
* Service for handling language-related REST operations.
*/
export declare class LanguageRestService extends HttpService {
private readonly I18N_ENDPOINT;
/**
* Retrieves the translation bundle for a specific language.
*
* @param languageCode - The code of the language for which to fetch translations.
* @returns A Promise that resolves to a TranslationBundle containing the translations for the specified language.
*/
getLanguage(languageCode: string): Promise<TranslationBundle>;
/**
* Fetches the language configuration for the application.
*
* @returns A Promise that resolves to a {@link LanguageConfig} object containing the language configuration settings.
*/
getLanguageConfiguration(): Promise<LanguageConfig>;
}