extends |
Controller |
|---|---|
uses |
ResolvesCardI18nBundle, ServesVersionedFiles |
Serves a Card's i18n resource bundle at a URL relative to the card manifest
(card/{ns}@{ver}/i18n/{file}), so the sandboxed sap.ui.integration
widget can resolve its own translations. The pointer is declared by
{@see CardController}, which injects sap.app/i18n.bundleUrl = "i18n/i18n.properties" into the manifest.
Files live in the card's self-contained folder
(resources/ui5/cards/{slug}/i18n/); the directory is resolved by the
shared {@see ResolvesCardI18nBundle} convention.
The manifest is rendered per request and sets no cache header of its own. A bundle is a file behind the module's version: kept for good when built and asked for under that version, revalidated otherwise ({@see ServesVersionedFiles}).
| Methods | ||
|---|---|---|
public
|
__invoke(
Request $request,
Ui5ContextInterface $context,
string $namespace,
string $version,
string $file,
): BinaryFileResponse
|
# |