localize

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: Apache-2.0 Imports: 16 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// optional string msg_key = 1208;
	E_MsgKey = &file_localize_i18n_proto_extTypes[0]
	// optional bool skip_locale = 1209;
	E_SkipLocale = &file_localize_i18n_proto_extTypes[1]
)

Extension fields to descriptorpb.EnumValueOptions.

View Source
var File_localize_i18n_proto protoreflect.FileDescriptor

Functions

func FromContext

func FromContext(ctx context.Context) *i18n.Localizer

FromContext resolve *i18n.Localizer from context. return nil if not found

func I18N

func I18N() middleware.Middleware

func RegisterFileBundle

func RegisterFileBundle(files ...FileBundle)

Types

type FileBundle

type FileBundle struct {
	Fs fs.FS
}

Jump to

Keyboard shortcuts

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