services

package
v0.0.0-...-c423126 Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateMultiLanguageFilesFromTemplate

func GenerateMultiLanguageFilesFromTemplate(templatePath, outPath, fileName, ext string, languages []string, full bool) error

GenerateMultiLanguageFilesFromTemplate write multilanguage json files

func GenerateMultiLanguagesArbFilesFromJSONFiles

func GenerateMultiLanguagesArbFilesFromJSONFiles(dir, prefix, extFile, outExtFile string, full bool) error

GenerateMultiLanguagesArbFilesFromJSONFiles generate arb files from json files

func JSONMap

func JSONMap(data []byte) (*linkedhashmap.Map, error)

JSONMap convert json to arb

func Service

func Service(option string) error

Service service

func WriteDataDumpFiles

func WriteDataDumpFiles(csvFilePath string, jsonDirPath string, sheet string) error

WriteDataDumpFiles exported

func WriteFiles

func WriteFiles(csvFilePath string, config config.Config, cleanTagsDir, cleanTagsFileName string) error

WriteFiles Write files

func WriteLanguageFiles

func WriteLanguageFiles(csvFilePath string, jsonDirPath string, sheet string) error

WriteLanguageFiles exported

Types

type ArbAttr

type ArbAttr struct {
	Description  string            `json:"description"`
	Type         string            `json:"type"`
	Placeholders map[string]string `json:"placeholders"`
}

ArbAttr struct

type TomlFormat

type TomlFormat struct {
	Key    string
	Values [][]string
}

TomlFormat struct

type Translate

type Translate struct {
	Lang string
	// Words string
	Words []string
}

Translate struct

type TranslatedMaps

type TranslatedMaps struct {
	Langs []string
	Maps  []*linkedhashmap.Map
}

TranslatedMaps struct

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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