Skip to content

cueavy/langful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ]