📄️ I18nKeyless.init()
The init function is the main configuration method that initializes i18n-keyless for your application. This function must be called once before using any translation components or hooks.
📄️ I18nKeylessText
The I18nKeylessText component is the primary translation component for React applications using i18n-keyless. It wraps text content and automatically handles translation using the text itself as the key.
📄️ getTranslation()
The getTranslation function is a React hook that returns translated text for use outside of JSX components. It's perfect for scenarios where you need translated strings for component props, function returns, or any JavaScript context where the I18nKeylessText component cannot be used.
📄️ useCurrentLanguage()
The useCurrentLanguage hook returns the currently selected language for the i18n-keyless system. This hook is essential for building language selectors and managing language-dependent UI behavior.
📄️ setCurrentLanguage()
The setCurrentLanguage function allows you to programmatically change the active language in your i18n-keyless application. When called, it updates the language state and triggers a re-render of all components using translated text.
📄️ getSupportedLanguages()
The getSupportedLanguages function returns the array of supported languages configured in your i18n-keyless application. This function is useful for building dynamic language selectors or checking if a specific language is supported.
📄️ useI18nKeyless()
The useI18nKeyless hook provides direct access to the i18n-keyless store state. This hook allows you to access configuration, translations state, and other internal properties using a selector function.