Documentation ¶
Index ¶
- func GenerateMultiLanguageFilesFromTemplate(templatePath, outPath, fileName, ext string, languages []string, full bool) error
- func GenerateMultiLanguagesArbFilesFromJSONFiles(dir, prefix, extFile, outExtFile string, full bool) error
- func JSONMap(data []byte) (*linkedhashmap.Map, error)
- func Service(option string) error
- func WriteDataDumpFiles(csvFilePath string, jsonDirPath string, sheet string) error
- func WriteFiles(csvFilePath string, config config.Config, ...) error
- func WriteLanguageFiles(csvFilePath string, jsonDirPath string, sheet string) error
- type ArbAttr
- type TomlFormat
- type Translate
- type TranslatedMaps
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 WriteDataDumpFiles ¶
WriteDataDumpFiles exported
Types ¶
type ArbAttr ¶
type ArbAttr struct { Description string `json:"description"` Type string `json:"type"` Placeholders map[string]string `json:"placeholders"` }
ArbAttr struct
type TranslatedMaps ¶
type TranslatedMaps struct { Langs []string Maps []*linkedhashmap.Map }
TranslatedMaps struct
Click to show internal directories.
Click to hide internal directories.