Skip to content

Can't install translations in application #106

Open
@Arc676

Description

@Arc676

The API doesn't include a wrapper for QTranslator and since struct QmlEngineHolderis hidden within the crate and QmlEngineHolder::app is not visible to external code, there is no way to load translations via QCoreApplication::installTranslator, even from within an unsafe cpp! block.

Is there another way to load translations without CMake? The end goal is to be able to use i18n.tr in the QML frontend (and possibly the backend, though the frontend is currently the priority for me personally) and load translations based on the user's locale.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-wrappersArea: Wrappers and bindingsC-feature-requestCategory: A feature request, i.e: not implemented / a PR.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions