i18n

package
v0.0.0-...-1fdf9ae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FooBarError

type FooBarError struct {
	xi18n.LocalisableError
}

func NewFooBarError

func NewFooBarError(path string, reason error) FooBarError

NewFooBarError creates a FooBarError

func (FooBarError) FooBar

func (e FooBarError) FooBar() bool

FooBar enables the client to check if error is FooBarError via FooBarErrorBehaviourQuery

type FooBarErrorBehaviourQuery

type FooBarErrorBehaviourQuery interface {
	FooBar() bool
}

FooBarErrorBehaviourQuery used to query if an error is: "Failed to read directory contents from the path specified"

type FooBarTemplData

type FooBarTemplData struct {
	Path   string
	Reason error
	// contains filtered or unexported fields
}

FooBarTemplData - TODO: this is a none existent error that should be replaced by the client. Its just defined here to illustrate the pattern that should be used to implement i18n with extendio. Also note, that this message has been removed from the translation files, so it is not useable at run time.

func (FooBarTemplData) Message

func (td FooBarTemplData) Message() *i18n.Message

the ID should use spp/library specific code, so replace arcadia with the name of the library implementing this template project.

func (FooBarTemplData) SourceID

func (td FooBarTemplData) SourceID() string

type RootCmdConfigFileUsageTemplData

type RootCmdConfigFileUsageTemplData struct {
	ConfigFileName string
	// contains filtered or unexported fields
}

🧊 RootCmdConfigFileUsage

func (RootCmdConfigFileUsageTemplData) Message

func (RootCmdConfigFileUsageTemplData) SourceID

func (td RootCmdConfigFileUsageTemplData) SourceID() string

type RootCmdLangUsageTemplData

type RootCmdLangUsageTemplData struct {
	// contains filtered or unexported fields
}

func (RootCmdLangUsageTemplData) Message

func (td RootCmdLangUsageTemplData) Message() *i18n.Message

func (RootCmdLangUsageTemplData) SourceID

func (td RootCmdLangUsageTemplData) SourceID() string

type RootCmdLongDescTemplData

type RootCmdLongDescTemplData struct {
	// contains filtered or unexported fields
}

🧊 RootCmdLongDesc

func (RootCmdLongDescTemplData) Message

func (td RootCmdLongDescTemplData) Message() *i18n.Message

func (RootCmdLongDescTemplData) SourceID

func (td RootCmdLongDescTemplData) SourceID() string

type RootCmdShortDescTemplData

type RootCmdShortDescTemplData struct {
	// contains filtered or unexported fields
}

🧊 RootCmdShortDesc

func (RootCmdShortDescTemplData) Message

func (td RootCmdShortDescTemplData) Message() *i18n.Message

func (RootCmdShortDescTemplData) SourceID

func (td RootCmdShortDescTemplData) SourceID() string

type UsingConfigFileTemplData

type UsingConfigFileTemplData struct {
	ConfigFileName string
	// contains filtered or unexported fields
}

func (UsingConfigFileTemplData) Message

func (td UsingConfigFileTemplData) Message() *i18n.Message

func (UsingConfigFileTemplData) SourceID

func (td UsingConfigFileTemplData) SourceID() string

type WidgetCmdLongDescTemplData

type WidgetCmdLongDescTemplData struct {
	// contains filtered or unexported fields
}

🧊 WidgetCmdLongDesc

func (WidgetCmdLongDescTemplData) Message

func (td WidgetCmdLongDescTemplData) Message() *i18n.Message

func (WidgetCmdLongDescTemplData) SourceID

func (td WidgetCmdLongDescTemplData) SourceID() string

type WidgetCmdShortDescTemplData

type WidgetCmdShortDescTemplData struct {
	// contains filtered or unexported fields
}

🧊 WidgetCmdShortDesc

func (WidgetCmdShortDescTemplData) Message

func (WidgetCmdShortDescTemplData) SourceID

func (td WidgetCmdShortDescTemplData) SourceID() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL