Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCodeForLocalizationFunctions ¶
func CheckCodeForLocalizationFunctions(mapLangToToml map[Language]TomlFile, path string) (errs []error)
CheckCodeForLocalizationFunctions is function for finding go files and recursive search in directories.
func LoadTomlFiles ¶
LoadTomlFiles loads toml files from given paths.
func TomlValidation ¶
TomlValidation is function for validating toml files. It checks for duplicate and missing messages. It also checks for missing description and other keys.
Types ¶
type Language ¶ added in v0.0.2
type Language string
Language is type for language. It is used as key in map. e.g. en, fa, ...
type MessageID ¶ added in v0.0.2
type MessageID string
MessageID is type for message id. message id is the main key in toml file. e.g. [NotFound]
Click to show internal directories.
Click to hide internal directories.