Skip to content

Optional Named Placeholders? #13

Description

@HugoRoss

I noticed your library is quite advanced with singular/plural- and boolean handling, can it also do something like this?

en-US: "SpeedKey", "You are driving {speedMph:0.0} Mph."
en-CA: "SpeedKey", "You are driving {speedKmh:0.0} km/h."
de-DE: "SpeedKey", "Sie fahren {speedKmh:0.0} km/h."

Label.Text = Tr("SpeedKey", { { "speedMph", speedMph }, { "speedKmh", speedKmh } });

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions