如何在 Fiori 应用程序中设置支持的语言?

How can I set supported languages in a Fiori application?

当我们有一个具有 index.html 的独立应用程序时,我们可以在引导部分使用类似 data-sap-ui-xx-supportedLanguages="en,de" 的东西来确定哪个语言在我们的应用程序中实现。在这种情况下,我们将不会再看到这样的错误:

https://webidetestingXXX.dispatcher.hana.ondemand.com/webapp/i18n/i18n_en_US.properties 404

因为我们确定我们的应用不支持 en_US!

我怎样才能在 Fiori 类型的应用程序中做同样的事情,我的意思是当我们没有任何 index.html 并且它只有 Component.js 作为起点时!

我记得以前我们在 manifest.json 中设置过,但我不确定!

在本文档的 支持的区域设置和后备区域设置 一章中提到了它:https://openui5.hana.ondemand.com/topic/ec753bc539d748f689e3ac814e129563

{
    "sap.ui5": {
        "models": {
            "i18n": {
                "type": "sap.ui.model.resource.ResourceModel",
                "settings": {
                    "bundleName": "myapp.i18n.i18n",
                    "supportedLocales": ["de", "en"],
                    "fallbackLocale": "de"
                }
            }
        }
    }
}

manifest.json 配置仅自 UI5 1.77 起受支持。

对于较低版本显然没有 application-level 配置。