main v0.1
aitzol76 2022-10-16 16:38:38 +02:00
parent efa1197af3
commit e265e0b021
4 changed files with 0 additions and 30 deletions

3
go.mod
View File

@ -1,3 +0,0 @@
module po2json
go 1.19

27
main.go
View File

@ -1,27 +0,0 @@
package main
import (
"fmt"
"po2json/po2json"
"io/ioutil"
)
func main(){
//locales := []string{"en_UK", "eu_ES"}
locales := []string {}
domain := "base"
localedir := "locales"
files,_ := ioutil.ReadDir(localedir)
for _, f := range files {
if f.IsDir() {
fmt.Println(f.Name())
locales = append(locales, f.Name(),)
}
}
//fmt.Println(po2json.PO2JSON([]string{locales[0], locales[1]}, domain, localedir))
fmt.Println(po2json.PO2JSON(locales, domain, localedir))
}