locale

package
v0.58.3 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package locale 本地化相关的功能

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Locale

type Locale struct {
	Location *time.Location
	Catalog  *catalog.Builder
	Tag      language.Tag
	Printer  *message.Printer
}

func New

func New(loc *time.Location, tag language.Tag) *Locale

func (*Locale) LoadLocaleFiles

func (l *Locale) LoadLocaleFiles(fsys fs.FS, glob string, f *serialization.FS) error

func (*Locale) NewPrinter

func (l *Locale) NewPrinter(tag language.Tag) *message.Printer

Jump to

Keyboard shortcuts

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