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

Markup Extension For AppTheme #34

Open
Axemasta opened this issue Oct 11, 2023 · 0 comments
Open

Markup Extension For AppTheme #34

Axemasta opened this issue Oct 11, 2023 · 0 comments

Comments

@Axemasta
Copy link
Owner

Add a translation extension to display the current app theme, api would look like:

<Label Text="{mocale:LocalizeAppTheme}"/>

This would default to using a pair of known keys:

  • "Mocale_CurrentAppTheme_Light"
  • "Mocale_CurrentAppTheme_Dark"
  • "Mocale_CurrentAppTheme_Unspecified"

And have the ability to override these keys to provide your own.

With overloads:

<Label Text="{mocale:LocalizeAppTheme LightKey='SomeOtherKey_Light', DarkKey='SomeOtherKey_Dark'}"/>
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