From e32be4accb75844002f856af7ba913d7b3c804c8 Mon Sep 17 00:00:00 2001 From: Aerex Date: Fri, 5 Jul 2024 19:12:43 -0400 Subject: [PATCH] chore: removed log statements --- i18n4go/cmds/create_translations.go | 2 -- i18n4go/i18n/init.go | 4 ---- 2 files changed, 6 deletions(-) diff --git a/i18n4go/cmds/create_translations.go b/i18n4go/cmds/create_translations.go index f765db8..529c3b6 100644 --- a/i18n4go/cmds/create_translations.go +++ b/i18n4go/cmds/create_translations.go @@ -221,8 +221,6 @@ func (ct *createTranslations) googleTranslate(translateString string, language s escapedTranslateString := url.QueryEscape(translateString) googleTranslateUrl := "https://www.googleapis.com/language/translate/v2?key=" + ct.options.GoogleTranslateApiKeyFlag + "&target=" + language + "&q=" + escapedTranslateString - // REMOVEME: Do not commit - fmt.Printf("\ngoogleTranslateUrl: %s\n", googleTranslateUrl) response, err := http.Get(googleTranslateUrl) if err != nil { ct.Println(i18n.T("i18n4go: ERROR invoking Google Translate: "), googleTranslateUrl) diff --git a/i18n4go/i18n/init.go b/i18n4go/i18n/init.go index 3d6bddb..f7bc654 100644 --- a/i18n4go/i18n/init.go +++ b/i18n4go/i18n/init.go @@ -99,10 +99,6 @@ func initWithUserLocale(packageName, i18nDirname string, assetFn AssetFunc) (str func mustLoadDefaultLocale(packageName, i18nDirname string, assetFn AssetFunc) string { userLocale := DEFAULT_LOCALE - // REMOVEME: Do not commit - fmt.Printf("\npackageName: %s\n", packageName) - // REMOVEME: Do not commit - fmt.Printf("\ni18nDirname: %s\n", i18nDirname) err := loadFromAsset(packageName, i18nDirname, DEFAULT_LOCALE, DEFAULT_LANGUAGE, assetFn) if err != nil { panic("Could not load en_US language files. God save the queen. " + err.Error())