Get-KrLocalizedString
SYNOPSIS
Returns a localized string for the current request culture.
SYNTAX
__AllParameterSets
Get-KrLocalizedString [-Key] <string> [[-Default] <string>] [<CommonParameters>]
ALIASES
This cmdlet has the following aliases, {{Insert list of aliases}}
DESCRIPTION
Looks up a key in the request-local string table exposed by Kestrun localization middleware. The current culture is determined by middleware and is not passed explicitly.
EXAMPLES
EXAMPLE 1
Get-KrLocalizedString -Key ‘Labels.Save’
EXAMPLE 2
Get-KrLocalizedString -Key ‘Labels.Save’ -Default ‘Save’
PARAMETERS
-Default
Optional default value to return when the key is not present.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Key
The localization key to retrieve.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
System.String
{{ Fill in the Description }}
NOTES
RELATED LINKS
{{ Fill in the related links here }}