RizJa
RizJa

Reputation: 2031

MS Teams app localization using manifest not working

I'm trying to localize my app by following instructions as outlined in the Teams docs. Despite making the changes nearly identically to what's provided on the site, the text does not localize in my app.

I'm using version 1.5 of the manifest so localization should be supported.

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"
}

When I zip the package app manifest package, I ensure that the fr-ca.json file is included.

I've also changed my Teams language settings to French (Canada) so I'm not sure why the localization is not being picked up.

I'm aware that localization is not yet available for apps published to the Teams app store but from my understanding it should work fine for self-uploaded personal apps. I've tried uploading it both via the Applications menu as well as the App Studio.

Would appreciate any help, thanks!

Upvotes: 1

Views: 1105

Answers (1)

Gousia Begum
Gousia Begum

Reputation: 2124

@RizJa Your manifest file works as expected for me: enter image description here

Here is the language setting that I made to get this working: enter image description here

Could you please share a screenshot of what is the language setting you have used?

Upvotes: 1

Related Questions