Skip to main content

AkariBot-I18N

小可使用的本地化组件。

运行时存储

load_locale_file() 会把 JSON 语言文件编译为版本化 SQLite 快照。多个进程使用同一组语言目录时会共享快照文件,并在其他进程发布新版本后自动刷新只读连接。

快照默认保存在当前用户的临时目录。可通过 AKARI_BOT_I18N_CACHE_DIR 指定本机缓存目录;所有 worker 必须使用相同配置。Locale.data 和模块级 locale_data 现在是只读映射,翻译内容应通过 JSON 文件和 Locale.reload() 更新。

Download files

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

Source Distribution

akari_bot_i18n-0.1.0.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

akari_bot_i18n-0.1.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file akari_bot_i18n-0.1.0.tar.gz.

File metadata

  • Download URL: akari_bot_i18n-0.1.0.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for akari_bot_i18n-0.1.0.tar.gz
Algorithm Hash digest
SHA256 486be400eb30b403595ea55881008cee160b0b3b9a1f452ac89b53aba8157e37
MD5 a23494d1f8830c6f1c08dabbfa842bd4
BLAKE2b-256 b4cb113063a11ef954a00ad654937251456fcab0bbc379780dbe212806cb10ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for akari_bot_i18n-0.1.0.tar.gz:

Publisher: python-publish.yml on Teahouse-Studios/akari-bot-i18n

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

File details

Details for the file akari_bot_i18n-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: akari_bot_i18n-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for akari_bot_i18n-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 010eb3ef99066fe58639962db2b2d3c481c74461860215251e6074aed98d567d
MD5 2c6af5e8b42ce22d29b12f64b776c9f0
BLAKE2b-256 7cfe131e831ab646fed58be0ec3896726a0bf1febb9eec38395f1ccc36dcfe1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for akari_bot_i18n-0.1.0-py3-none-any.whl:

Publisher: python-publish.yml on Teahouse-Studios/akari-bot-i18n

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

Release history Release notifications | RSS feed

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

This release

0.1.0 This release

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page