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

Feature: new sort option "contextAsc" #113

Open
aberonni opened this issue Jul 16, 2024 · 1 comment
Open

Feature: new sort option "contextAsc" #113

aberonni opened this issue Jul 16, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@aberonni
Copy link

Is your feature request related to a problem? Please describe.
We are trying to use auto-generated IDs and organise our translation files by context (kind of like how the default extraction works). In this setup, it helps to have the tags organised by context rather than by ID or addition date.

Describe the solution you'd like
A new sort option, "contextAsc", which just sorts the contents of the location string, eg:

<note category="location">src/app/components/page-layout/components/header/header.component.html:83</note>

@daniel-sc daniel-sc added the enhancement New feature or request label Jul 18, 2024
@daniel-sc
Copy link
Owner

hi @aberonni this seems like a meaningful enhancement! Would you like to give it a shot and create a PR?

Remarks:

  • probably it should validate that the context is not strippt, which is the default behaviour
  • I'd personally still recommend explicit IDs, as this approach will generate huge changes on refactorings
  • One should think about the case where the same (explicit) ID is used in several locations..

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

No branches or pull requests

2 participants