UNPKG

@bobmatnyc/ai-code-review

Version:

A TypeScript-based tool for automated code reviews using AI models from Google Gemini, Anthropic Claude, and OpenRouter

35 lines (34 loc) 1.22 kB
/** * @fileoverview Internationalization (i18n) configuration for the application. * * This module sets up i18next for internationalization support, allowing the application * to be used in multiple languages. It configures language detection, loads translation * resources, and provides utility functions for translating text. */ import i18next from 'i18next'; export declare const SUPPORTED_LANGUAGES: string[]; /** * Initialize i18next with the specified language * @param lng Language code to use * @returns Promise that resolves when i18next is initialized */ export declare function initI18n(lng?: string): Promise<typeof i18next>; /** * Translate a key using i18next * @param key Translation key * @param options Translation options * @returns Translated text */ export declare function t(key: string, options?: Record<string, any>): string; /** * Get the current language * @returns Current language code */ export declare function getCurrentLanguage(): string; /** * Change the current language * @param lng Language code to change to * @returns Promise that resolves when the language is changed */ export declare function changeLanguage(lng: string): Promise<void>; export default i18next;