# General Translation Python SDKs: get_i18n_manager URL: https://generaltranslation.com/en-US/docs/python/reference/functions/get-i18n-manager.mdx --- title: get_i18n_manager description: Access the active I18nManager in General Translation Python. API reference for get_i18n_manager. --- Returns the active [`I18nManager`](/docs/python/reference/classes/i18n-manager) — the module-level singleton that the translation functions read. Use it to reach manager methods directly, such as loading translations or reading the current locale. ## Overview [#overview] Call `get_i18n_manager` with no arguments. It returns the manager set by [`initialize_gt`](/docs/python/reference/functions/initialize-gt) or [`set_i18n_manager`](/docs/python/reference/functions/set-i18n-manager). ```python from gt_i18n import get_i18n_manager manager = get_i18n_manager() manager.set_locale("es") ``` Signature: ```python get_i18n_manager() -> I18nManager ``` Import `get_i18n_manager` from `gt_i18n`. It is not re-exported by the framework packages. ## How it works [#how-it-works] - **Singleton.** It returns the single module-level manager instance. - **Uninitialized.** If no manager has been set, it raises `RuntimeError` prompting you to call `initialize_gt` first. ## Parameters [#parameters] `get_i18n_manager` takes no parameters. ## Returns [#returns] **Type** [`I18nManager`](/docs/python/reference/classes/i18n-manager) The active manager instance. ## Example [#example] ```python from gt_i18n import get_i18n_manager manager = get_i18n_manager() await manager.get_translations("es") # load and cache a locale's translations ```