Skip to content

Provide option for generated code to use Language Fallback #235

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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