Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support preferred language #3

Open
ufl-taeber opened this issue Jul 25, 2019 · 0 comments
Open

Support preferred language #3

ufl-taeber opened this issue Jul 25, 2019 · 0 comments

Comments

@ufl-taeber
Copy link
Contributor

Add a preferred language property to the Client, so that, for example, when there are multiple language strings in a call to Single(), the one with the preferred language will be returned.

  Results() => ["color"@en-US, "colour"@en-GB, "couleur"@fr-FR"]

By default, Single returns first item.
  Single() => "color"
  
If the preferred language is set and a string with that language suffix exists, it is returned instead.
  client(..., "fr-FR")
  Single() => "couleur"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant