Skip to main content

provides internationalization for python

Project description

langful

PyPI version Python version license Github issues

[ English | 简体中文 ]


About

This is a simple module which is used for internationalization(i18n).

You just need place localization files in a directory, like this:

  • lang
    • en_us.json
    • zh_cn.json
import langful

lang = langful( "lang" )

print( lang )

The default language code is obtained using the locale module and follows the RFC 1766 standard.

langful supports three default localization file types, and you can easily add custom loaders.

Install

pip install langful

Links

[ github | pypi ]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langful-1.0.6-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file langful-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: langful-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for langful-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a769fa5ec95e4c4c097520df8542830d1c5f1b4467844908b01520a52ea06b0a
MD5 22c295b873a77d186013721c9403c45b
BLAKE2b-256 4e5026ea5a405625a49d8ea2b37acc92aa24c50205d0b6489d8c17d7920d0eca

See more details on using hashes here.

Provenance

The following attestation bundles were made for langful-1.0.6-py3-none-any.whl:

Publisher: build.yml on cueavy/langful

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page