Multilingual WebApp names

As of Sitevision 10.1 you can deploy WebApps with different names in different languages.

Starting in Sitevision 10.1 your apps can now have different names in different languages. In order to add multilingual WebApp names changes will have to be made to your manifest. Consider this example.

Previously your app had one name and description regardless of the users language.

// manifest.json
{
   "id": "sitevision.button",
   "version": "0.0.1",
   "type": "WebApp",
   "name": "Knapp",
   "description": "Visar en knapp som användaren kan klicka på",
   "author": "Sitevision AB",
   "helpUrl": "https://help.sitevision.se/button",
   "bundled": true
}

As of Sitevision 10.1 you can specify different names for different languages. You specify name and/or description as a map where the key is a language tag and the value is the localized value.

// manifest.json
{
   "id": "sitevision.button",
   "version": "0.0.1",
   "type": "WebApp",
   "name": { 
      "sv": "Knapp",
      "en": "Button",
   },
   "description": {
      "sv": "Visar en knapp som användaren kan klicka på",
      "en": "Present a button that the user can click on"
   },
   "author": "Sitevision AB",
   "helpUrl": "https://help.sitevision.se/button",
   "bundled": true
}

When your multilingual app is accessed in a languange that is not among your translations the name will fallback to English. Therefore an English entry is always required.

Sitevision 10.1 also supports the previous/basic manifest format (above). Old apps will continue to work as before but will get their name from the manifest which is a change from previous versions.

When writing multilingual apps an English translation is required.

The new Manifest format is not supported by Sitevision versions prior to 10.1

Do you want to subscribe to News from Sitevision Developer team? Subscribe here!