provides internationalization for python
Project description
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a769fa5ec95e4c4c097520df8542830d1c5f1b4467844908b01520a52ea06b0a
|
|
| MD5 |
22c295b873a77d186013721c9403c45b
|
|
| BLAKE2b-256 |
4e5026ea5a405625a49d8ea2b37acc92aa24c50205d0b6489d8c17d7920d0eca
|
Provenance
The following attestation bundles were made for langful-1.0.6-py3-none-any.whl:
Publisher:
build.yml on cueavy/langful
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
langful-1.0.6-py3-none-any.whl -
Subject digest:
a769fa5ec95e4c4c097520df8542830d1c5f1b4467844908b01520a52ea06b0a - Sigstore transparency entry: 415217813
- Sigstore integration time:
-
Permalink:
cueavy/langful@4e230de8c2adbfe908b5a41d37cbf364ac1566f6 -
Branch / Tag:
refs/tags/1.0.6 - Owner: https://github.com/cueavy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@4e230de8c2adbfe908b5a41d37cbf364ac1566f6 -
Trigger Event:
push
-
Statement type: