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.
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:
task.loc.json
, which contains placeholders instead of translatable phrases, like this: "description": "ms-resource:loc.description"
/Strings/resources.resjson
, full of subfolders, one per particular cultureresources.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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With