import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class LanguagesService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Get all language * @param projectId The unique identifier of the project. * @param page * @param pageSize * @returns any Success * @throws ApiError */ getAllLanguages(projectId: string, page: number, pageSize: number): CancelablePromise<{ metadata: { fetched_at: string; total_count: number; total_pages: number; current_page: number; page_size: number; }; data: Array<{ /** * The language code, e.g. "en" for English */ language_code: string; /** * Optional variations for the language, e.g. ["US", "UK"] for English. */ variations: Array; /** * When the language was created */ created_at: string; /** * Email of the user who created the language */ created_by: string; /** * The default country code for the language, e.g. "US" for English (United States). This decides which flag to show for the translators and which exact locale to use in AI calls. */ default_country_code: string; /** * Indicates if this language is the base language for the project */ is_base_language: boolean; statistics: { /** * The total number of keys in this language */ total_number_of_words: number; /** * The total number of reviewed keys in this language */ number_of_reviewed_keys: number; /** * The total number of translated keys in this language */ number_of_translated_keys: number; }; /** * The date and time of the latest activity in this language. Activity can be a translation change or review event */ latest_activity_at: string; }>; }>; /** * Create language * @param projectId The unique identifier of the project. * @param requestBody * @returns any Success * @throws ApiError */ createLanguage(projectId: string, requestBody: { /** * The language code, e.g. "en" for English */ language_code: string; /** * The default country code for the language, e.g. "US" for English (United States). This decides which flag to show for the translators and which exact locale to use in AI calls. */ default_country_code?: string; /** * Optional variations for the language, e.g. ["US", "UK"] for English. */ variations: Array; /** * If true, all existing keys will be machine translated to the new language after creation */ translate_all_existing_keys?: boolean; }): CancelablePromise<{ /** * The language code, e.g. "en" for English */ language_code: string; /** * Optional variations for the language, e.g. ["US", "UK"] for English. */ variations: Array; /** * When the language was created */ created_at: string; /** * Email of the user who created the language */ created_by: string; /** * The default country code for the language, e.g. "US" for English (United States). This decides which flag to show for the translators and which exact locale to use in AI calls. */ default_country_code: string; /** * Indicates if this language is the base language for the project */ is_base_language: boolean; statistics: { /** * The total number of keys in this language */ total_number_of_words: number; /** * The total number of reviewed keys in this language */ number_of_reviewed_keys: number; /** * The total number of translated keys in this language */ number_of_translated_keys: number; }; /** * The date and time of the latest activity in this language. Activity can be a translation change or review event */ latest_activity_at: string; }>; /** * Get one language * @param projectId The unique identifier of the project. * @param locale The locale, eg "en". * @returns any Success * @throws ApiError */ getLanguage(projectId: string, locale: string): CancelablePromise<{ /** * The language code, e.g. "en" for English */ language_code: string; /** * Optional variations for the language, e.g. ["US", "UK"] for English. */ variations: Array; /** * When the language was created */ created_at: string; /** * Email of the user who created the language */ created_by: string; /** * The default country code for the language, e.g. "US" for English (United States). This decides which flag to show for the translators and which exact locale to use in AI calls. */ default_country_code: string; /** * Indicates if this language is the base language for the project */ is_base_language: boolean; statistics: { /** * The total number of keys in this language */ total_number_of_words: number; /** * The total number of reviewed keys in this language */ number_of_reviewed_keys: number; /** * The total number of translated keys in this language */ number_of_translated_keys: number; }; /** * The date and time of the latest activity in this language. Activity can be a translation change or review event */ latest_activity_at: string; }>; /** * Update language * @param projectId The unique identifier of the project. * @param locale The locale, eg "en". * @param requestBody * @returns any Success * @throws ApiError */ updateLanguage(projectId: string, locale: string, requestBody: { /** * Optional variations for the language, e.g. ["US", "UK"] for English. */ variations: Array; /** * The default country code for the language, e.g. "US" for English (United States). This decides which flag to show for the translators and which exact locale to use in AI calls. */ default_country_code: string; }): CancelablePromise<{ /** * The language code, e.g. "en" for English */ language_code: string; /** * Optional variations for the language, e.g. ["US", "UK"] for English. */ variations: Array; /** * When the language was created */ created_at: string; /** * Email of the user who created the language */ created_by: string; /** * The default country code for the language, e.g. "US" for English (United States). This decides which flag to show for the translators and which exact locale to use in AI calls. */ default_country_code: string; /** * Indicates if this language is the base language for the project */ is_base_language: boolean; statistics: { /** * The total number of keys in this language */ total_number_of_words: number; /** * The total number of reviewed keys in this language */ number_of_reviewed_keys: number; /** * The total number of translated keys in this language */ number_of_translated_keys: number; }; /** * The date and time of the latest activity in this language. Activity can be a translation change or review event */ latest_activity_at: string; }>; /** * Delete language * @param projectId The unique identifier of the project. * @param locale The locale, eg "en". * @returns any Success * @throws ApiError */ deleteLanguage(projectId: string, locale: string): CancelablePromise; } //# sourceMappingURL=LanguagesService.d.ts.map