Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Localization of custom Azure Pipelines build tasks

I am working on creating a custom task for Azure Pipelines and would like to know more and support localization. Please help out if localization of Azure Pipelines custom build tasks is supported by providing additional JSON files for each locale.

like image 547
vCillusion Avatar asked Oct 15 '25 19:10

vCillusion


1 Answers

I failed to find the instructions in the official docs, but this is what I can see on Github for Microsoft Azure Pipelines tasks. Not sure it will work without some custom magic, but it's worth trying at least.

Let's take PowerShell task as an example:

  • there's a file called task.loc.json, which contains placeholders instead of translatable phrases, like this: "description": "ms-resource:loc.description"
  • then, there's a folder /Strings/resources.resjson, full of subfolders, one per particular culture
  • each culture subfolder contans a resources.resjson file with translations tied to those placeholders, e.g. "loc.description": "Выполнение скрипта PowerShell в Windows, macOS или Linux."

This looks like a convention. There might be some magic hidden in the build scripts to make it work, but I failed to find it at first glance.

like image 182
Yan Sklyarenko Avatar answered Oct 18 '25 17:10

Yan Sklyarenko