Skip to content

Information for translators

Wojciech Sciesinski edited this page Oct 10, 2016 · 2 revisions

Format-Pester can be used to prepare reports in languages different than English but a language file for your PSCulture/language need to be available.

To translate required strings to your language please

  • read general information about PowerShell support for internationalization
Get-Help about_Script_Internationalization

online version about_Script_Internationalization available here.

  • create subfolder with your language/culture code under Public - e.g. xx-XX
  • copy the file Format-Pester.psd1 from Public\en-US\ to your xx-XX - please don't translate module manifest - files have the same name!
  • translate required strings
  • test - please use Pester, to skip non-translation related tests please use the command
Invoke-Pester -Path .\tests\ -Tag Translations

you can also uncomment line in the Format-Pester.ps1 file (remember about re-import module with Force)

#$LocalizedStrings
  • use the Language parameter if your PSCulture is different than required language for output
  • submit your translation to public repo, pull requests are welcomed
Clone this wiki locally