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 implemented something that is similar to this proposal from fluent: projectfluent/fluent#140
typing for messageformat based definitions is done manually.
currently has support for string, number, datetime, monetary and element. element is a special case, which accepts React.ReactNode as param, and switches any localization string that has a element param to return Array<React.ReactNode> instead of string.
Currently,
intl-codegen
just collects all the used variables inside the translations to generate some type hints.The goal here is:
<Localized />
select
number
date
/time
currency
type (Add nice currency formatting support #14)ReactNode
(Experiment withDOM Overlays
#15)The way our usage of
intl-codegen
has changes shows me that it might be a good idea to define some kind ofschema
that defines:The text was updated successfully, but these errors were encountered: