feat: first take at M2

This commit is contained in:
hugo committed 2026-04-04 18:04:39 +02:00
1 parent b532104032
commit eedd0a9118
33 files changed
+2899 -78

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
use bds_core::i18n::{translate, translate_with, UiLocale};
/// Shorthand for translate in view code.
pub fn t(locale: UiLocale, key: &str) -> String {
translate(locale, key)
}
/// Shorthand for translate_with in view code.
pub fn tw(locale: UiLocale, key: &str, params: &[(&str, &str)]) -> String {
translate_with(locale, key, params)
}