Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶ added in v0.2.1
func Register(values Translations)
Register adds startup module translations
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error identifies a localizable error and its interpolation variables
type Key ¶
type Key string
Key identifies a localized message
const ( PromptCommand Key = "prompt.command" ErrorMessage Key = "error.message" ErrorNoDocument Key = "error.noDocument" ErrorNoSuchCommand Key = "error.noSuchCommand" ErrorInvalidKey Key = "error.invalidKey" ErrorInvalidBinding Key = "error.invalidBinding" ErrorBindingExists Key = "error.bindingExists" ErrorAleCommandArguments Key = "error.aleCommandArguments" ErrorAleContext Key = "error.aleContext" ErrorAleBindingModeType Key = "error.aleBindingModeType" ErrorAleBindingUnknownMode Key = "error.aleBindingUnknownMode" ErrorAleBindingPairs Key = "error.aleBindingPairs" ErrorAleBindingAction Key = "error.aleBindingAction" ErrorAleBindingOptionNames Key = "error.aleBindingOptionNames" ErrorAleBindingDuplicate Key = "error.aleBindingDuplicate" ErrorAleBindingKeyTypes Key = "error.aleBindingKeyTypes" ErrorAleBindingDocType Key = "error.aleBindingDocType" ErrorAleBindingWhenType Key = "error.aleBindingWhenType" ErrorAleBindingUnknown Key = "error.aleBindingUnknown" ErrorAleBindingModesMissing Key = "error.aleBindingModesMissing" ErrorAleBindingModesEmpty Key = "error.aleBindingModesEmpty" ErrorAleBindingKeysMissing Key = "error.aleBindingKeysMissing" ErrorAleBindingKeysEmpty Key = "error.aleBindingKeysEmpty" ErrorWorkspaceUntrustedHint Key = "error.workspaceUntrustedHint" StatusClipboardCopied Key = "status.clipboardCopied" StatusPickerTypeToSearch Key = "status.pickerTypeToSearch" StatusPickerSearching Key = "status.pickerSearching" StatusPickerNoResults Key = "status.pickerNoResults" StatusImageLoading Key = "status.imageLoading" StatusImageUnsupported Key = "status.imageUnsupported" StatusTerminalStarting Key = "status.terminalStarting" StatusPaneMaximized Key = "status.paneMaximized" StatusFileDeleted Key = "status.fileDeleted" StatusFileChanged Key = "status.fileChanged" StatusReloadFailed Key = "status.reloadFailed" StatusFileReloaded Key = "status.fileReloaded" )
type Translations ¶ added in v0.2.1
Translations contains messages resolved for the current locale
func LoadTranslations ¶ added in v0.2.1
func LoadTranslations(files fs.FS) Translations
LoadTranslations loads and resolves every locale file in files. Each embedded set holds exactly one module's translations, so the whole tree is taken rather than a caller-supplied glob
Click to show internal directories.
Click to hide internal directories.