There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-a848beb7-369e-4704-a485-1d00c4f2a7e4 XWIKI-24163 Open

Localization are not loaded from webjars installed as extensions

 
View issue   ยท   Add comment
 

1 update

 
cid:jira-generated-image-avatar-d9837000-8a75-453f-bf0b-1ab3968f898a Changes by Thomas Mortagne on 26/Mar/26 12:59
 
Description: h2. Reproduction steps

# Add an {{ApplicationResources.properties}} file in the resource folder of a webjar
#
Deploy Install the webjar extension on an instance
# Try to translate a translation key from the webjar

h2. Expected

The translation key is found.

h2. Actual

The translation key fails to resolve.

h2. Explanations


[
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-localization/xwiki-platform-localization-sources/xwiki-platform-localization-source-jar/src/main/java/org/xwiki/localization/jar/internal/JARTranslationBundleFactoryListener.java ] only check for jar and not webjars or any other supported extensions.
org.xwiki.extension.jar.internal.handler.JarExtensionHandler#isSupported must be used to determine of the resource can be handled as a jar.