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
feat: add support for locales=* Contentful responses (#24)
Fixes#20
## Overview
Add a new `--localization` flag. When enabled, generated fields will wrapped in `LocalizedField` helper , for example:
```ts
export interface IMyContentTypeFields {
/** Array field */
arrayField: LocalizedField<(\"one\" | \"of\" | \"the\" | \"above\")[]>
}
```
This flag is very useful when entries are being fetched with `locale="*"`.
## Notes
* `field.required` is ignored, because contentful api ignores it as well.
* we have to use a custom localized version of `Asset`
0 commit comments