getPluggableApplicationLocalizedTitle()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Resolves the application’s title in the given locale.
export declare function getPluggableApplicationLocalizedTitle(app: PluggableApplicationRegistryItem, locale: ILocale | undefined): string;
Parameters
Parameter | Type | Description |
|---|---|---|
app | application to resolve the title of | |
locale | ILocale | undefined | locale to resolve the title in |
Returns
string
the localized title, or the plain one
Remarks
Falls back to the manifest’s plain title when the locale is unknown or the application declares no translation for it. Each application carries its titles in the registry because its own locale bundle is loaded only once the user opens it.