-
Notifications
You must be signed in to change notification settings - Fork 387
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
Place PO file relatively to the component file #2025
Comments
Hello and thanks for asking,
probably not as fine-grained as you want it but take a look at this config
I'm afraid I don't follow what you're saying TBH. Can you expand? TY 🙂 |
Sure, as you linked that config, the
And I would like to keep the translation dictionaries separate for components named the same, just placed in different parts of the app, and keep the PO files close to the source they belong to In this simple example I could register 3 catalogs, but in our case there are hundreds of such components and app parts at various levels of hierarchy |
I will duplicate my concern in this thread as well. I got your intention to provide more context for AI translation. But i didn't get how you are going to load these files later? The reason why i'm skeptical about this one is because it creates another feature which will lead users into a dead-way. The overall flow lacks proper consideration. Also having such granularity will completely eliminate the chance of reusing the translations between components, which negates all the benefits of the gettext approach (natural language used as a key) |
Is your feature request related to a problem? Please describe.
We are using AI to help with our codebase. We would auto-translate the PO files giving the AI also the original source file code to get as much context as possible. To effectively script it and keep it near the original context, we would like to place the PO file in the same directory as the original source code.
However, the
{name}
macro only gives the name of the original file...Describe proposed solution
Offer some
{dir}
macro that will resolve into a folder of the source componentDescribe alternatives you've considered
I was thinking about
{path}
macro as a full path to the component, but I thinkdir
is more versatile, as it can be combined with{name}
when needed and cover both (all) needs that I can imagineAdditional context
I could create a PR for this if approved. Otherwise I would like to learn if there are any serious reasons why you wouldn't like it.
The text was updated successfully, but these errors were encountered: