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
We want to add a s.locale() schema method.
The type of the locale is a subtype of string: s.locale("en_us", "fr_fr") // type: "en_us" | "fr_fr"
NOTE: for optional locales, we're not sure yet. Perhaps: s.locale("en_us").optional("fr_fr"). The type for an optional would be the same as if the locale was not.
We want to add a
s.locale()schema method.The type of the locale is a subtype of string:
s.locale("en_us", "fr_fr") // type: "en_us" | "fr_fr"NOTE: for optional locales, we're not sure yet. Perhaps:
s.locale("en_us").optional("fr_fr"). The type for an optional would be the same as if the locale was not.The intended way to use it will be:
s.record()(see Extend s.record to support key validation #384)s.object()(see Add .locale() method on s.object #386)