Evotec

Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars 995
Forks 114
Open issues 69
PowerShell Gallery downloads 7,436,513
Release v1.41.0
Language: PowerShell Updated: 2026-04-11

API Reference

Function

New-TableLanguage

Namespace PSWriteHTML

Provides ability to overwrite texts available in the table.

Remarks

Provides ability to overwrite texts available in the table. This is useful for translating to different languages or choosing different naming.

Examples

Authored help example

EXAMPLE 1


New-HTML -TitleText "Example41 - Table" -FilePath "$PSScriptRoot\Example41.html" {
    New-HTMLSection -HeaderText "Testing" -HeaderTextAlignment center -Content {
        New-HTMLTable -DataTable $Values {
            New-TableLanguage -Search 'Find' -PaginateFirst 'First Option' -EmptyTable 'No data in the table'
            New-HTMLTableConditionGroup {
                New-HTMLTableCondition -Name 'Test1' -Value 1 -ComparisonType number
                New-HTMLTableCondition -Name 'Test2' -Value 2 -ComparisonType number
            } -BackgroundColor Salmon -FailBackgroundColor Goldenrod -Logic OR -HighlightHeaders 'Test1', 'Test2', 'DisplayName', 'DomainName'
        } -DataStore JavaScript
    }
} -ShowHTML -Online
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

New-TableLanguage [-EmptyTable <String>] [-Info <String>] [-InfoFiltered <String>] [-PaginateFirst <String>] [-PaginateLast <String>] [-PaginateNext <String>] [-PaginatePrevious <String>] [-Search <String>] [-ZeroRecords <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

EmptyTable String optionalposition: 3pipeline: False
Overwrites the text when the table is empty. Default value is: "No data available in table"
Info String optionalposition: 0pipeline: False
Overwrites information about the table. Default value is: "Showing _START_ to _END_ of _TOTAL_ entries"
InfoFiltered String optionalposition: 1pipeline: False
Overwrites information about the table when filtered. Default value is: "(filtered from _MAX_ total entries)"
PaginateFirst String optionalposition: 5pipeline: False
Overwrites the text for the first page button. Default value is: "First"
PaginateLast String optionalposition: 6pipeline: False
Overwrites the text for the last page button. Default value is: "Last"
PaginateNext String optionalposition: 7pipeline: False
Overwrites the text for the next page button. Default value is: "Next"
PaginatePrevious String optionalposition: 8pipeline: False
Overwrites the text for the previous page button. Default value is: "Previous"
Search String optionalposition: 2pipeline: False
Overwrites the search text. Default value is: "Search:"
ZeroRecords String optionalposition: 4pipeline: False
Overwrites the text when no records match the search. Default value is: "No matching records found"