我正在尝试按照Teams docs中概述的说明对应用程序进行本地化。尽管所做的更改几乎与网站上提供的更改相同,但这些文本并未在我的应用程序中本地化。
我正在使用清单的1.5版,因此应该支持本地化。
manifest.json:
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.5/MicrosoftTeams.schema.json",
"manifestVersion": "1.5",
"version": "1.0.0",
"id": "00000000-0000-0000-0000-000000000000",
"packageName": "com.foobar.myapp",
"localizationInfo": {
"defaultLanguageTag": "en-us",
"additionalLanguages": [
{
"languageTag": "fr-ca",
"file": "fr-ca.json"
}
]
},
"developer": {
"name": "FooBar",
"websiteUrl": "https://www.foobar.com/",
"privacyUrl": "https://www.foobar.com/privacy-policy",
"termsOfUseUrl": "https://www.foobar.com/collaborative-canvas"
},
"icons": {
"color": "color.png",
"outline": "outline.png"
},
"name": {
"short": "Foo Bar",
"full": "FooFoo BarBar"
},
"description": {
"short": "Content",
"full": "Some more content"
},
"accentColor": "#FFFFFF",
"staticTabs": [
{
"entityId": "TestId",
"name": "Test",
"contentUrl": "https://foobar.net/Test",
"scopes": [
"personal"
]
}
],
"permissions": [
"identity"
],
"validDomains": [
"foobar.net"
],
"devicePermissions": [
"openExternal"
]
}
fr-ca.json:
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.5/MicrosoftTeams.Localization.schema.json",
"name.short": "FooBar translated",
"name.full": "FooFoo BarBar translated",
"description.short": "test short",
"description.full": "test full translation",
"staticTabs[0].name": "test translated"
}
当我压缩程序包清单文件时,请确保包含fr-ca.json文件。
我还将我的团队语言设置更改为法语(加拿大),所以我不确定为什么没有选择本地化。
我知道本地化还不适用于发布到Teams应用商店的应用程序,但是据我了解,本地化应该适用于自我上传的个人应用程序。我尝试通过“应用程序”菜单和App Studio进行上传。
感谢您的帮助,谢谢!