Skip to content

Provide option for generated code to use Language Fallback #235

Open
@jvtroyen

Description

@jvtroyen

Currently, if you want to provide language fallback on properties, you need to provide partial classes and implement it for each Variant property.

It would be nice if there was an appSetting to enable generated code to do this automatically.

[ImplementPropertyType("message")]
public string Message => this.Value("message", fallback: Fallback.ToLanguage);

(I've already started work on a PR #236)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions