quarkiverse / quarkus-renarde

Server-side Web Framework with Qute templating, magic/easier controllers, auth, reverse-routing
Apache License 2.0
78 stars 19 forks source link

Merge i18n messages files #172

Closed gbourant closed 9 months ago

gbourant commented 1 year ago

Assume you have following projects:

.
├── admin
├── project-a
├── project-b
├── project-c
└── project-d

In this setup, "admin" project acts as a foundational dependency for all other projects, resulting in the other projects overriding the message files initially defined in "admin."

Now, here's a feature request: Merge the message files from the "admin" project with those of each individual project.

FroMage commented 12 months ago

That's interesting. So, each project is a Renarde project? So you want the message bundles to compose together, then? Or make it so each project only sees its own resource bundles?

gbourant commented 12 months ago

In my case each project is a Renarde project and each one has a dependency to the admin project (admin is also a Renarde project).

So,

project-a has a dependency to admin project, project-b has a dependency to admin project, project-c has a dependency to admin project, project-d has a dependency to admin project.

With this setup then project-a should be able to see admin's and it's resource bundles (composed together) but not project-b-c-d since it does not have a dependency to those.

FroMage commented 11 months ago

Oh, OK, I see. Yeah, this makes sense.

gbourant commented 11 months ago

Well, seems i didn't describe why i opened the ticket in the first place, so here we go.

When i run the project-a project which has a dependency to the admin project, all the admin's messages resource bundles are not available.

So the following image is when i run quarkus:dev in project-a which displays the login page which exists in admin project. (The same page is displayed correctly if i run admin with quarkus:dev)

image