Third party wallpaper plugin can't load its built-in translations like widgets do

I am trying to add localization support to a third-party wallpaper plugin (smart-video-wallpaper-reborn), but translations are not loading when they are built into the wallpaper (contents/translations/).

If I copy the translation files to /usr/share/locale or ~/.local/share/locale/ then they load only if the translation domain is passed on all translatable strings i18nd() and this confused me even more because widgets for example don’t require passing domain.

Am I doing something wrong? Or this is not supported / maybe a bug?

My system details

Operating System: Arch Linux
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.13.4-arch1-1 (64-bit)
Graphics Platform: Wayland

You need something akin to add_definitions(-DTRANSLATION_DOMAIN=\"plasma_wallpaper_org.kde.image\") and a file such as wallpapers/image/Messages.sh · master · Plasma / Plasma Workspace · GitLab (this is handled by the kpac thing it seems).
And checkout qt qml translation documentation.

So the QT il18n can match the translations to the code.

Generally a good idea to have a look at reference implementation in Plasma/breeze, like here wallpapers/image/CMakeLists.txt · master · Plasma / Plasma Workspace · GitLab compared to plasma-smart-video-wallpaper-reborn/CMakeLists.txt at main · luisbocanegra/plasma-smart-video-wallpaper-reborn · GitHub

Wasn’t this for cpp files only?

(this is handled by the kpac thing it seems)

Yes, I already tried adding the domain in the qml files like this

Kirigami.FormData.label: i18nd("plasma_wallpaper_luisbocanegra.smart.video.wallpaper.reborn", "Pause video:")

Then with kpac I generate the *.mo files in package/contents/locale just like for plasmoids (for which it works) but they are not loaded for wallpapers.

If I instead copy the same package/contents/locale to either /usr/share/locale or ~/.local/share/locale only then they are loaded. But can’t figure out why they can’t be loaded from where the wallpaper is normally installed when downloading from the KDE Store ~/.local/share/plasma/wallpapers/luisbocanegra.smart.video.wallpaper.reborn/contents/locale/