loader

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ModArchive

func ModArchive(storage Storage, source string) bool

ModArchive loads the locale files of a zipped mod. source is the path to the zip archive file.

func ModDirectory

func ModDirectory(storage Storage, source string) bool

ModDirectory loads the locale files of an already extracted mod. source is the mod directory, containing the info.json file.

Types

type Loader

type Loader = func(storage Storage, source string) bool

Loader is the type of functions able to load translation files. The function returns whether the provided source was successfully processed.

type Storage

type Storage interface {
	Set(locale, section, name, value string)
}

Jump to

Keyboard shortcuts

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