You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AFAIK, seems possible the reading of the source code to search for the location of the fluent-templates static_loader! macro definition and parse its content:
Because we are passing TRANSLATIONS to leptos_fluent! macro, we can know where is defined. Even if is not inside the current file, altough that case could be a bit difficult.
This will allow to not need to duplicate the locales: "..." argument and the future argument core_locales: "..." (see #89).
The text was updated successfully, but these errors were encountered:
To get the definition site or source file of a syn::Ident we need to pass RUSTFLAGS='--cfg procmacro2_semver_exempt' to proc-macro2. This is not ideal because it would force all consumers of this library to pass it.
So this issue is blocked until proc_macro2::Span implements def_site and/or source_file at least in nightly.
AFAIK, seems possible the reading of the source code to search for the location of the fluent-templates
static_loader!
macro definition and parse its content:Because we are passing
TRANSLATIONS
toleptos_fluent!
macro, we can know where is defined. Even if is not inside the current file, altough that case could be a bit difficult.This will allow to not need to duplicate the
locales: "..."
argument and the future argumentcore_locales: "..."
(see #89).The text was updated successfully, but these errors were encountered: