{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/6"}],"enrichment":{"capability":"Provides internationalization (i18n) functionality for Python applications, enabling translation of strings into multiple languages with support for pluralization, placeholders, and fallback locales.","skillfed_tags":["localization","multilingual","translation-management"],"use_cases":["Build a web application that serves content in multiple languages by loading translations from YAML or JSON files organized by locale.","Add placeholder and pluralization support to user-facing messages (e.g., 'You have %{count} new emails').","Integrate translations into a Python microservice that reuses i18n JSON files from another project without modifying the file structure.","Set up fallback locales so that missing translations in the user's preferred language automatically fall back to a default.","Organize translations hierarchically using directory and file namespaces to keep large translation sets manageable."],"what_it_does":"python-i18n is a translation library that brings Rails-style internationalization to Python. It lets you manage translations for multiple languages in your application by loading them from YAML or JSON files, adding them programmatically, or both. The library handles common i18n tasks: substituting placeholders like %{name} into strings, choosing the right plural form based on a count, falling back to a default language when a translation is missing, and organizing translations into namespaces based on file and folder structure.\n\nYou set a locale, add or load translations, and call i18n.t() with a key to retrieve the translated string. It supports memoization to cache translations in memory after the first load, and optional configuration to skip locale root elements in JSON files. With no external runtime dependencies, it installs cleanly and works out of the box.","worth_installing":"Yes, if you need straightforward Rails-style i18n for a Python project and can accept that the package is aging (last release 2020-08-26). It has no dependencies, installs easily, carries no known vulnerabilities, and is permissively licensed. However, verify Python support matches your target version, and consider whether the lack of recent maintenance poses a risk for your use case."},"id":"python-i18n","links":{"html":"https://skillfed.io/packages/python-i18n","md":"https://skillfed.io/packages/python-i18n.md","pypi":"https://pypi.org/project/python-i18n/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2020-08-26","license_spdx":null,"license_treatment":"permissive","name":"python-i18n","python_support":"unspecified","summary":"Translation library for Python"},"popularity":{"monthly_downloads":399331,"position":6949,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.9"}
