Language file for packages

Information on how to use language files to make your Umbraco package UI support multiple languages

If you want your package to be available in different languages, you can use the existing localizations from Umbraco or register your own localizations. The localizations are written as a key-value pair pattern.

To register localizations to a language, you must add a new manifest to the Extension API. The manifest can be added through the umbraco-package.json file like this:

umbraco-package.json
{
  ...
  "name": "MyPackage",
  "extensions": [
    {
      "type": "localization",
      "alias": "MyPackage.Localize.EnUS",
      "name": "English (United States)",
      "meta": {
        "culture": "en-us"
      },
      "js": "/App_Plugins/MyPackage/Localization/en-us.js"
    }
  ]
}

Read the UI Localization documentation to learn in-depth on how you can use languages in your packages and Umbraco in general.

Last updated