Replies: 1 comment 1 reply
-
Thinking about this some more, and actually the property names in the descriptor (f.e. I wonder if there should be specific functions with terser signatures for templating. For example (Vue.js): <template>
<p>{{ $fm("my-id-or-null-for-default", "default-message", {value: 123}, "optional-description") }}</p>
</template> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It's common for translation/localization functions to use short names like
t
,tr
, orfm
, because they are used so frequently in templates, and formatMessage/formatNumber etc. can be quite verbose.Consider allowing the developer to use different function names that are aliases for the built-in functions.
The configuration might look like this:
Beta Was this translation helpful? Give feedback.
All reactions