Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

Stars 1,019
Forks 115
Open issues 54
PowerShell Gallery downloads 7,576,901
Release v1.41.0
Language: PowerShell Updated: 2026-10-03
Command

New-TableLanguage

Module PSWriteHTML

Provides ability to overwrite texts available in the table.

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

Description

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

Parameters

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

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.