/*
Load Transifex configuration from the usual paths:

- ~/.transifexrc for the root configuration

- ./.tx/config for the local configuration

If any of these files are missing, the relevant attribute will be set to nil.

TODO: Load local configuration from any parent folder's `.tx` folder.
*/
Load Transifex configuration from the usual paths.

~/.transifexrc for the root configuration

./.tx/config for the local configuration

If any of these files are missing, the relevant attribute will be set to nil.

Load local configuration from any parent folder's `.tx` folder.
/ * Load Transifex configuration from the usual paths : - ~ / . transifexrc for the root configuration - . / . tx / config for the local configuration If any of these files are missing the relevant attribute will be set to nil . TODO : Load local configuration from any parent folder ' s ` . tx ` folder . * /
func Load() (Config, error) {
	rootConfig, err := loadRootConfig()
	if err != nil {
		return Config{}, err
	}
	localConfig, err := loadLocalConfig()
	if err != nil {
		return Config{}, err
	}
	return Config{Root: rootConfig, Local: localConfig}, nil
}
func Load ( ) ( Config , error ) { rootConfig , err := loadRootConfig ( ) if err != nil { return Config { } , err } localConfig , err := loadLocalConfig ( ) if err != nil { return Config { } , err } return Config { Root : rootConfig , Local : localConfig } , nil }
Load Transifex configuration from the usual paths.
Load Transifex configuration from the usual paths .