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
I want to to have modifiers in caller instead of in the definition. so instead of defining value as @.lower:foo i would instead make a call like $t("foo::lower"). I am doing this with wrapper function where i detect the modifier, strip it from the string, translate via $t() as usual and then apply the modification before returning. This is working fine but screws up tracing in console. So i am wondering if it is possible to do this pre/post processing via configuration in createI18n?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to to have modifiers in caller instead of in the definition. so instead of defining value as
@.lower:foo
i would instead make a call like$t("foo::lower")
. I am doing this with wrapper function where i detect the modifier, strip it from the string, translate via $t() as usual and then apply the modification before returning. This is working fine but screws up tracing in console. So i am wondering if it is possible to do this pre/post processing via configuration increateI18n
?Beta Was this translation helpful? Give feedback.
All reactions