bevy_easy_localize
A simple crate to localize your game using .csv files.
Features
- Loading from
.csv
files - Loading the translation file from the asset folder
- Automatically updating text components
- Hot reloading
- Lightweight
Upcoming features
- Per-language fonts
- More flexible and customizable
.csv
file loading
How to use
The .csv
file currently must be arranged in this order:
Keyword | Comments | Language_0 | Language_1 | ... |
---|---|---|---|---|
word | comment | translation0 | translation1 | ... |
In your project:
use *;
use Localize;
Using the LocalizeText
component:
commands.spawn;
Examples
simple
– Reading from a file to initialize the resource.asset
– Using asset handles to initialize the resource.text
– Using theLocalizeText
component to update text.sys_locale
- Using the cratesys-locale
to set the default language.
Bevy Compatibility
bevy | bevy_easy_localize |
---|---|
0.14 | 0.6 |
0.13 | 0.5 |
0.12 | 0.4 |
0.11 | 0.3 |
0.10 | 0.2 |
0.9 | 0.1 |
About
I made this crate for my personal projects.
The obvious alternative is bevy_fluent
, but my goal is to just translate some text and
I don't need all of the fancy features it offers.
I will definitely be updating this crate and if you want to add a feature, please submit a pull request.