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

Allow setting the default resource options in scope #100

Open
AdmiringWorm opened this issue Nov 22, 2019 · 5 comments
Open

Allow setting the default resource options in scope #100

AdmiringWorm opened this issue Nov 22, 2019 · 5 comments
Assignees
Labels
Milestone

Comments

@AdmiringWorm
Copy link
Member

Is your feature request related to a problem? Please describe.
Instead of needing to set the different options again and again for every localize tag, a scoped tag for setting default options would be useful.

Describe the solution you'd like
The solution would be something similar to:

<localize-options resource-name="Common" html="true">
  <p localize>
    <a href="https://google.com">Test</a>
  </p>
</localize-options>

These should also be able to be nested, and overridden when necessary (This would also then need to allow the ability to ignore these settings when necessary).

@AdmiringWorm AdmiringWorm added this to the 1.0.0 milestone Nov 22, 2019
@AdmiringWorm AdmiringWorm self-assigned this Nov 22, 2019
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label Feature to this issue, with a confidence of 0.99. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@stale
Copy link

stale bot commented Jan 21, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@AdmiringWorm
Copy link
Member Author

Still being worked on.

Expected to use <localize-scope> as the tag helper name instead of <localize-options>.

This is not guaranteed as I am also considering changing elements and attributes to have loc- as a prefix (in the case of <localize> element, that would be changed to <loc> and most likely removing the localize attribute (or make it optional if other attributes are used).)
This is not been decided yet though.

@stale stale bot removed the Pending Closure label Jan 21, 2020
@stale
Copy link

stale bot commented Mar 21, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale
Copy link

stale bot commented May 22, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant