Using heartbeat api instead
This commit is contained in:
parent
4cedb17b60
commit
d024280878
10 changed files with 319 additions and 40 deletions
14
src/i18n/loader.rs
Normal file
14
src/i18n/loader.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
use anyhow::Ok;
|
||||
use fluent_templates::static_loader;
|
||||
|
||||
static_loader! {
|
||||
pub static LOCALES = {
|
||||
locales: "./src/locales",
|
||||
fallback_language: "pt-BR",
|
||||
customise: |bundle| bundle.set_use_isolating(false),
|
||||
};
|
||||
}
|
||||
|
||||
pub fn init_locales() -> anyhow::Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue