< Summary - Kestrun — Combined Coverage

Information
Class: Public.Localization.Get-KrLocalizationCulture
Assembly: Kestrun.PowerShell.Public
File(s): /home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Public/Localization/Get-KrLocalizationCulture.ps1
Tag: Kestrun/Kestrun@ca54e35c77799b76774b3805b6f075cdbc0c5fbe
Line coverage
0%
Covered lines: 0
Uncovered lines: 6
Coverable lines: 6
Total lines: 30
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Coverage history

Coverage history 0 25 50 75 100 01/24/2026 - 19:35:59 Line coverage: 0% (0/6) Total lines: 30 Tag: Kestrun/Kestrun@f59dcba478ea75f69584d696e5f1fb1cfa40aa51

Metrics

File(s)

/home/runner/work/Kestrun/Kestrun/src/PowerShell/Kestrun/Public/Localization/Get-KrLocalizationCulture.ps1

#LineLine coverage
 1<#
 2.SYNOPSIS
 3    Retrieves the list of available localization cultures.
 4.DESCRIPTION
 5    Scans the localization resources and returns the list of available cultures.
 6.OUTPUTS
 7    PSCustomObject with a Name property representing each available culture.
 8.EXAMPLE
 9    Get-KrLocalizationCulture
 10    Retrieves the list of available localization cultures.
 11
 12#>
 13function Get-KrLocalizationCulture {
 14    [KestrunRuntimeApi('Everywhere')]
 15    [CmdletBinding()]
 16    [OutputType([PSCustomObject])]
 17    param()
 18
 019    $server = [Kestrun.KestrunHostManager]::Default
 020    if ($null -ne $server -and $null -ne $server.LocalizationStore) {
 021        $store = $server.LocalizationStore
 22        # AvailableCultures is an IReadOnlyCollection<string>
 023        $store.AvailableCultures | ForEach-Object {
 024            [PSCustomObject]@{
 025                Name = $_
 26            }
 27        }
 28        return
 29    }
 30}

Methods/Properties

Get-KrLocalizationCulture()