









i18n locale file dynamic load library
Automatically translated from Japanese by AI
021
As part of i18n (Internationalization), every time you add a language file, you had to prepare imports and functions for dynamic loading each time, and contributing to i18n in OSS was extremely tedious. This is a package suite that automatically loads files when you specify a designated folder and default language, and even fills in missing keys with the default language.
The core logic itself is written in Rust and is designed to be usable as an external library for various languages.
The basic file formats are JSON, YAML, and TOML.
It can also be used with applications that want build-time embedding (like Vite and Go).
A tool called rokeeru-cli is also included. With rokeeru-cli, you can check:
It's not required, but it's convenient to have. Incidentally, rokeeru-cli can read TS files in addition to JSON, YAML, and TOML ({locales}.ts is also commonly seen).
# 使用コマンド
rokeerurokeeru is merely a library that automatically scans and returns i18n locale files (something like dynamic loading). It shouldn't conflict with existing i18n libraries. Conversely, it has no capabilities beyond that. It's recommended for those who are tired of writing functions every time or having to import things repeatedly.
Reactions & commentsFeedback
Share your thoughts, bug reports, or suggestions directly with the developer
Log in to share your feedback
Log in to leave feedback