Socket
Book a DemoInstallSign in
Socket

langful

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

langful

provides internationalization for python

1.0.6
Source
pipPyPI
Maintainers
1

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

[ github | pypi ]

Keywords

i18n

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.