locale

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertLocaleFile

func ConvertLocaleFile(infn, outfn string) error

Convert Locale Markdown file to JSON file

func PrintSearchedResult

func PrintSearchedResult(pairs []LangPair)

Print searched result

Types

type LangJSON

type LangJSON struct {
	Locale []LangPair `json:"locale"`
}

type LangPair

type LangPair struct {
	Lang string `json:"lang"`
	Code string `json:"code"`
}

Locale (lang/code pair) data

func SearchLocaleFile

func SearchLocaleFile(infn, lg, cd string) ([]LangPair, error)

Search Locale JSON file

Jump to

Keyboard shortcuts

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